Hi Team
I'm using XamDateTimeInput , I want to change the color of text displaying the date when i use the IsEnabled property and I'm using a MetroDark Theme.
Please provide a sample for this.
Hi Raj,
To change the color of the text you can use a trigger.
<ig:XamDateTimeInput.Style> <Style TargetType="{x:Type ig:XamDateTimeInput}" BasedOn="{StaticResource {x:Type ig:XamDateTimeInput}}"> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="Foreground" Value="Red"/> </Trigger> </Style.Triggers> </Style> </ig:XamDateTimeInput.Style>
Let me know if you have any further questions on this matter.