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
2045
grid cell using calendar
posted

I have grid cell using calendar. when I pick date from calendar, CellExitedEditMode fired and show value.

When I type date, event fires, but value is empty. Is there property to change that behavior?

Still using v9.2.

I use windows resources to create calendar:

<Style x:Key="WideCalendarStyle" TargetType="controls:Calendar">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFD3DEE8"
Offset="0" />
<GradientStop Color="#FFD3DEE8"
Offset="0.16" />
<GradientStop Color="#FFFCFCFD"
Offset="0.16" />
<GradientStop Color="#FFFFFFFF"
Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFA3AEB9"
Offset="0" />
<GradientStop Color="#FF8399A9"
Offset="0.375" />
<GradientStop Color="#FF718597"
Offset="0.375" />
<GradientStop Color="#FF617584"
Offset="1" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:Calendar">
<Grid x:Name="Root"
HorizontalAlignment="Center">
<Grid.RenderTransform>
<ScaleTransform ScaleX="1.15" ScaleY="1.15"/>
</Grid.RenderTransform>
<System_Windows_Controls_Primitives:CalendarItem x:Name="CalendarItem" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">
</System_Windows_Controls_Primitives:CalendarItem>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

Thanks