In our themes, the Control.BackgroundProperty is defined by several elements with different colors, gradients, margins, paddings and corner rounding. You can't specify this complex functionality with only the Control.BackgroundProperty property. You can implement your own template using the TextEditThemeKey key ({dxet:TextEditThemeKey ResourceKey=BorderTemplate}). Also, you need to bind to the Background property.
Question Comments
Added By: Drew Noakes at: 8/19/2015 3:58:07 AM
Is it a problem that the control template's binding references TextEdit, yet is also used in DateEdit and ComboBoxEdit?
Added By: Alexander Ch (DevExpress Support) at: 8/19/2015 7:43:57 AMHi Drew,
Since DateEdit and ComboBoxEdit are TextEdit descendants, the binding will resolve the correct editor properly.
Thanks,
Alex
Added By: mag ahmed at: 7/26/2016 3:39:13 AM Hello Sir, Can you add Xaml code for how to make a CheckEdit control transparent in wpf devexpress?Added By: Elliot (DevExpress Support) at: 7/26/2016 5:45:45 AMHello,
I've created a separate ticket on your behalf (T407637: How to make a CheckEdit control transparent in wpf devexpress?). It has been placed in our processing queue and will be answered shortly.
[C#]<Window.Resources><common:DebugConverterx:Key="debugConverter"/><ControlTemplatex:Key="ChkEditControlTransparency"TargetType="{x:Type ContentControl}"><BorderBorderBrush="Blue"BorderThickness="0"CornerRadius="0"Background="{Binding Path=Background, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type dxe:CheckEdit}}}"><ContentPresenter/></Border></ControlTemplate><Window.Resources><Gridx:Name="grdContainer"Margin="0,20,0,2"><Grid.Background><ImageBrushx:Name="imgBackgroundCheque"ImageSource="/Salyex.CommonUI;component/Images/ChequeVouchers/VOC_BBK.jpg"></ImageBrush></Grid.Background><dxe:CheckEditx:Name="chkEditBBKCheque"VerticalAlignment="Center"Margin="29,368,639,224"BorderTemplate="{StaticResource ChkEditControlTransparency}"/></Grid>
Added By: Elliot (DevExpress Support) at: 7/26/2016 12:48:10 PM Hello,
Thank you for your clarification. I have added this comment in the How to make a CheckEdit control transparent in wpf devexpress? ticket.
Thanks,
Elliot