Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1435
XamCalendar Error Provider
posted

Hello,

I have created this style in XamCalendar Resources. I have the SelectedDate property binds two to a business Object that conducts validations on this property.

The error provider is not appearing when the property in the error state.

Please note, I have used the same style on a XamDataGrid and it works properly.

Thank you

<igDP:XamDataGrid.Resources>
<Style x:Key="{x:Static igDP:DataPresenterBase.DataErrorIconStyleKey}" TargetType="{x:Type Control}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Control}">
<DockPanel>
<Border Background="Red" Width="25" Height="25" CornerRadius="10">
<TextBlock Text="!" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" Foreground="White" />
</Border>
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>


Parents Reply Children