Is there any way to indent XamComboEditor I am facing the problem?
Please help me. If you didn't get the question i will descibe it again.
thanks in advance.
Hello,
You can create a style for the ComboBoxDataItem and bind to its value property with a DataTrigger and set the FontSize,FontWeight or Margin to indent.
Hope this helps.
Means to say this item should not get highlight in XamComboEditor.
Thanks Alex it is woking .
Is there any way so that when user do Mouse Over on this item User could not select this item only?
Amit,
FontWeight property is the one you are looking for, not FontStyle.
Thankyou very much Alex,
It is Working fine. I changed the code like this
<Style TargetType="{x:Type ComboBoxItem}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=RefGeneralValueId}" Value="-1">
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontStyle" Value="Bold" />
<Setter Property="Foreground" Value="Gray"/>
</DataTrigger>
</Style.Triggers>
</Style>
when I changed the FontStyle to "Italic" it is working fine but when i Changed FontStyle to "Bold" I got two Error I don't know the reason
And
I Don't What did i do Wrong.
thanks
Amit mittal
Hello,You can use this style in order for an item inside the ComboBox to appear indented, when its value is Name 1:
<DataTrigger Binding="{Binding Path=Name}" Value="Name 1">
<Setter Property="Margin" Value="10,0,0,0"/>