Hi,
I have a dockmanager with 3 panes. Few styles are applied to all the panes for controls like XamtextEditor, XamCombo.
But on the first pane which is opened in default view, Styles have not been applied, which are written in UserControl.Resources. But If I go to other pane and come back, those are applies.
I tried different ways but styles are not applied on default pane. But if I pace style at each control level to the first pane its working.
For example :
This code is not working
<UserControl.Resources>
<Style x:Key="ValueEditorReadOnly" TargetType="igEditors:ValueEditor">
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=Root, Path=DataContext.FormIsReadOnly}" Value="True">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="Background" Value="#E3D8D9" />
<!-- <Setter Property="Focusable" Value="False"/> -->
</DataTrigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
If I set the same style at XAMTextEditor level as below its working.
<igWPF:XamTextEditor FontSize="10"
Grid.Row="1"
Grid.ColumnSpan="2"
/>
Please suggest
Regards,
Pranitha.
Hello Pranitha,
Thank you for your post.
I have done an initial investigation on this issue, but I believe I will need a small piece of information from you on this matter before I can proceed with further tests of this behavior. Could you please provide some more detail on how you are applying your styles? From the code you have provided, it does not appear that your ValueEditor style is implicit, as it has an x:Key applied to it. Could you please mention whether you are using this style as a DynamicResource or a StaticResource as well?
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support