Skip to content

Commit

Permalink
chore(ProgressRing/Bar): add Fluent tab to sample page
Browse files Browse the repository at this point in the history
  • Loading branch information
Arieldelossantos committed Oct 19, 2023
1 parent dbfe644 commit d93c42b
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<local:SamplePageLayout>

<d:SamplePageLayout.FluentTemplate>
<local:SamplePageLayout.FluentTemplate>
<DataTemplate>
<StackPanel>

<!-- ProgressRing -->
<!-- skia: ProgressRing uses Lottie which isnt supported on skia yet -->
<StackPanel>
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Fluent" smtx:XamlDisplayExtensions.Header="ProgressRing">
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Fluent"
smtx:XamlDisplayExtensions.Header="ProgressRing">

<muxc:ProgressRing IsActive="True" HorizontalAlignment="Left" />
<muxc:ProgressRing IsActive="True"
HorizontalAlignment="Left" />

</smtx:XamlDisplay>
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Fluent_ProgressRingDeterminate"
Expand All @@ -37,7 +37,6 @@
Minimum="0"
Maximum="100"
IsIndeterminate="False" />

</StackPanel>
</smtx:XamlDisplay>
</StackPanel>
Expand Down Expand Up @@ -66,18 +65,19 @@
smtx:XamlDisplayExtensions.IgnorePath="XamlDisplay">
<muxc:ProgressBar IsIndeterminate="True" />
</smtx:XamlDisplay>

</StackPanel>
</DataTemplate>
</d:SamplePageLayout.FluentTemplate>
</local:SamplePageLayout.FluentTemplate>

<local:SamplePageLayout.MaterialTemplate>
<DataTemplate>
<StackPanel>

<!-- ProgressRing -->
<!-- skia: ProgressRing uses Lottie which isnt supported on skia yet -->
<StackPanel>
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Material_ProgressRingIndeterminate" smtx:XamlDisplayExtensions.Header="ProgressRing">
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Material_ProgressRingIndeterminate"
smtx:XamlDisplayExtensions.Header="ProgressRing">

<muxc:ProgressRing IsActive="True"
Style="{StaticResource MaterialProgressRingStyle}"
Expand Down Expand Up @@ -129,21 +129,24 @@
smtx:XamlDisplayExtensions.Header="Indeterminate ProgressBar"
smtx:XamlDisplayExtensions.IgnorePath="XamlDisplay">

<muxc:ProgressBar IsIndeterminate="True" Style="{StaticResource MaterialProgressBarStyle}" />
<muxc:ProgressBar IsIndeterminate="True"
Style="{StaticResource MaterialProgressBarStyle}" />

</smtx:XamlDisplay>

</StackPanel>
</DataTemplate>
</local:SamplePageLayout.MaterialTemplate>

<d:SamplePageLayout.CupertinoTemplate>
<DataTemplate>
<StackPanel>

<!-- ProgressRing -->
<!-- skia: ProgressRing uses Lottie which isnt supported on skia yet -->
<StackPanel>
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Cupertino_ProgressRingIndeterminate" smtx:XamlDisplayExtensions.Header="ProgressRing">
<smtx:XamlDisplay UniqueKey="ProgressSamplePage_Cupertino_ProgressRingIndeterminate"
smtx:XamlDisplayExtensions.Header="ProgressRing">

<muxc:ProgressRing IsActive="True"
Style="{StaticResource CupertinoProgressRingStyle}"
Expand Down Expand Up @@ -192,16 +195,17 @@

</StackPanel>
</smtx:XamlDisplay>
<smtx:XamlDisplay UniqueKey="Cupertino_ProgressBarSamplePage_PrimaryIndeterminate" smtx:XamlDisplayExtensions.Header="Indeterminate ProgressBar">
<smtx:XamlDisplay UniqueKey="Cupertino_ProgressBarSamplePage_PrimaryIndeterminate"
smtx:XamlDisplayExtensions.Header="Indeterminate ProgressBar">

<muxc:ProgressBar IsIndeterminate="True" Style="{StaticResource CupertinoProgressBarStyle}" />
<muxc:ProgressBar IsIndeterminate="True"
Style="{StaticResource CupertinoProgressBarStyle}" />

</smtx:XamlDisplay>

</StackPanel>
</DataTemplate>
</d:SamplePageLayout.CupertinoTemplate>

</local:SamplePageLayout>
</Grid>
</Page>

0 comments on commit d93c42b

Please sign in to comment.