Hey, i can change the style of the ToggleButton like that
<igWPF:XamDateTimeEditor.DropDownButtonStyle> <Style TargetType="{x:Type ToggleButton}"> <Setter Property="Background" Value="Red"/> <Setter Property="Width" Value="100"/> </Style></igWPF:XamDateTimeEditor.DropDownButtonStyle>
However the color is changed but not the color...
I am happy with the default style, i just want to make the DropDownButton wider to make it more comfortable on touch devices.
Hello Martin,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. The Width of the ToggleButton is set via code and this is why when you set it through Style it doesn’t work as you want. Basically I copied the default Style of the ToggleButton and set the width of two Grids from its Template to be bound to the ToggleButton’s Width. I also handled the ToggleButton’s Loaded event in order to be able to set its Width. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.