I have applied update 10.1.20101.2018 and the Infragistic controls are now right aligned rather than picking up the global styles I have defined in Application.xaml. They used to be correctly left aligned as per my styles.
The TextBlock and Combo styles below work fine, and I have changed them to right align to make sure they are being picked up. However, the DateTimeEditor and MaskEditor and probably all Infragistic targets are not applying these styles.
Any ideas?
Bold styles not working.
<!-- ============================= Style TextBlock --> <Style TargetType="{x:Type TextBlock}"> <Setter Property="Margin" Value="2,0,2,0" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="HorizontalAlignment" Value="Left" /> </Style> <!-- ============================= Style ComboBox --> <Style TargetType="{x:Type ComboBox}"> <Setter Property="Margin" Value="2,0,2,0" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="HorizontalAlignment" Value="Left" /> </Style> <!-- ============================= Style XamDateTimeEditor --> <Style TargetType="{x:Type igEditors:XamDateTimeEditor}"> <Setter Property="Margin" Value="2,0,2,0" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="HorizontalAlignment" Value="Left" /> </Style> <!-- ============================= Style XamMaskEditor --> <Style TargetType="{x:Type igEditors:XamMaskedEditor}"> <Setter Property="Margin" Value="2,0,2,0" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="HorizontalAlignment" Value="Left" /> </Style>
Well I have snooped the visual tree and it is picking up the System.Windows default style, whatever that might be, so yes it is not targeting that control. And I state again, its all the Infragistic controls that are not picking up their styling from the Application.xaml file.
If I name the style with a key and then point my control at it, it styles correctly, but naturally that's a lot of effort.
<igEditors:XamDateTimeEditor Grid.Row="3" Grid.Column="1" x:Name="editorDevelopmentStartDate" Style="{StaticResource DateTimeEditorStyle}" Mask="dd/mm/yyyy" Text="{Binding DevelopmentStartDate, Converter={StaticResource IdentityConverter}, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" MinWidth="80" Width="100" IsAlwaysInEditMode="True" DisplayMode="IncludeBoth"/>
In my Application.xaml....
I'll look at knocking up a small demo in the meantime.
Hello,
These styles looks perfect and should be working correctly. Can you please provide a sample project that reproduces the issue. There must be something else on your end to cause the issue. I have them working correctly on my end.