Hi,
I have a xamDataGrid with an editable cell, when I double click a 'textbox' appear.
I have try to change the style of the caret and the text like this, but it doesn't work :
<Style TargetType="{x:Type igEditors:XamMaskedEditor}"> <Setter Property="Background" Value="{DynamicResource VOColor10}" /> <Setter Property="Foreground" Value="{DynamicResource VOColor1A}" /> <Setter Property="BorderBrush" Value="{DynamicResource VOColor1C}" /> </Style>
<Style TargetType="{x:Type igEditors:CaretElement}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igEditors:CaretElement}"> <Rectangle Fill="{DynamicResource VOColor1A}" Width="{x:Static SystemParameters.CaretWidth}" /> <ControlTemplate.Triggers> <EventTrigger RoutedEvent="FrameworkElement.Loaded"> <EventTrigger.Actions> <BeginStoryboard Name="BlinkStoryboard"> <Storyboard> <BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="BlinkVisibility" Duration="{x:Static igEditors:CaretElement.CaretBlinkDuration}" RepeatBehavior="Forever"> <DiscreteBooleanKeyFrame Value="True" KeyTime="0%" /> <DiscreteBooleanKeyFrame Value="False" KeyTime="50%" /> <!--We need the third key frame in case caret blink duration is 0--> <DiscreteBooleanKeyFrame Value="True" KeyTime="100%" /> </BooleanAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger.Actions> </EventTrigger> <EventTrigger RoutedEvent="igEditors:CaretElement.ResetBlinking"> <EventTrigger.Actions> <SeekStoryboard BeginStoryboardName="BlinkStoryboard" Origin="BeginTime" /> </EventTrigger.Actions> </EventTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>
Thanks for the help
Sorry,
It is "XamTextEditor" that I must update. But the Carret still remain in Black ! (Over a black background)