Hi,
I have a XamDataGrid with Theme="Metro"
However, I find that the default FontSize of the Metro theme is too big, I would like to have a smaller FontSize but at the same time would like to maintain the Metro theme.
I've tried setting a BasedOn style in the XamDataGrid's resources, but it is not working, the FontSize remains the same.
<igDP:XamDataGrid Name="xamDataGrid1" Grid.Row="1" Grid.Column="0" DataSource="{Binding dt}" Theme="Metro" HorizontalAlignment="Left" AllowDrop="True" BorderBrush="Black" Visibility="{Binding GridVisi}">
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:XamDataGrid}" BasedOn="{x:Static igThemes:DataPresenterMetro.XamDataGrid}"> <Setter Property="FontSize" Value="5" /> </Style> </igDP:XamDataGrid.Resources> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings/> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowLabelVirtualization="True" AllowRecordFiltering="True"/> </igDP:XamDataGrid.FieldSettings> <igDP:XamDataGrid.ViewSettings> <igDP:GridViewSettings Orientation="Vertical" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Visible"/> </igDP:XamDataGrid.ViewSettings>
</igDP:XamDataGrid>
Please can you describe how to use this fix that has been made available?
I've tried many things. I would like to use one of the themes but the font size just isn't any good for desktop applications
The fix for this issue is available in the latest Service Release on our web site.
Hello,
I have logged this behavior with our developers in our tracking system, with an issue ID of 130191. I have also created a support ticket on your behalf with number CAS-107652-B5J4W7 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.