Skip to content

Commit

Permalink
fix: Force fluent style for DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jul 23, 2024
1 parent 4d9c032 commit 0ade936
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,22 @@
<smtx:XamlDisplay UniqueKey="DatePickerSamplePage_Fluent"
smtx:XamlDisplayExtensions.Header="Default"
smtx:XamlDisplayExtensions.Description=" The DatePicker uses the Fluent style for the text button as well as the flyout picker (with UseNativeStyle set to False)."
smtx:XamlDisplayExtensions.IgnorePath="XamlDisplay\StackPanel">
<StackPanel Spacing="20">
smtx:XamlDisplayExtensions.IgnorePath="XamlDisplay\Grid\StackPanel">
<Grid>
<Grid.Resources>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</ResourceDictionary.MergedDictionaries>
</Grid.Resources>
<StackPanel Spacing="20">

<DatePicker not_win:UseNativeStyle="False" />
<DatePicker Header="DatePicker Disabled"
<DatePicker not_win:UseNativeStyle="False" />
<DatePicker Header="DatePicker Disabled"
IsEnabled="False"
not_win:UseNativeStyle="False" />

</StackPanel>
</StackPanel>
</Grid>
</smtx:XamlDisplay>
</DataTemplate>
</local:SamplePageLayout.FluentTemplate>
Expand Down

0 comments on commit 0ade936

Please sign in to comment.