-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ProgressRing): Add DeterminateSource/IndeterminateSource to MUXC…
… ProgressRing
- Loading branch information
Showing
9 changed files
with
155 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...Tests.Shared/Microsoft_UI_Xaml_Controls/ProgressRing/WinUIProgressRing_CustomSources.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<Page | ||
x:Class="UITests.Microsoft_UI_Xaml_Controls.ProgressRing.WinUIProgressRing_CustomSources" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Microsoft_UI_Xaml_Controls.ProgressRing" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls" | ||
xmlns:lottie="using:Microsoft.Toolkit.Uwp.UI.Lottie" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<Page.Resources> | ||
<lottie:LottieVisualSource UriSource="ms-appx:///Assets/Animations/squirrel.json" x:Key="SquirrelAnimation"/> | ||
<lottie:LottieVisualSource UriSource="ms-appx:///Assets/Animations/acrobat.json" x:Key="AcrobatAnimation"/> | ||
</Page.Resources> | ||
<StackPanel Margin="50"> | ||
<TextBlock Text="Indeterminate"/> | ||
<muxc:ProgressRing IsActive="True" | ||
IndeterminateSource="{StaticResource SquirrelAnimation}"/> | ||
<muxc:ProgressRing IsActive="True" | ||
IndeterminateSource="{StaticResource AcrobatAnimation}"/> | ||
<TextBlock Text="Determinate"/> | ||
<muxc:ProgressRing IsIndeterminate="False" | ||
IsActive="True" | ||
DeterminateSource="{StaticResource SquirrelAnimation}" | ||
Value="{Binding Value, ElementName=progressSlider}" | ||
Minimum="0" | ||
Maximum="100"/> | ||
<muxc:ProgressRing IsIndeterminate="False" | ||
IsActive="True" | ||
DeterminateSource="{StaticResource AcrobatAnimation}" | ||
Value="{Binding Value, ElementName=progressSlider}" | ||
Minimum="0" | ||
Maximum="100"/> | ||
<Slider x:Name="progressSlider" | ||
Minimum="0" | ||
Maximum="100" | ||
HorizontalAlignment="Left" | ||
Width="250" | ||
Margin="0,10" /> | ||
</StackPanel> | ||
</Page> |
22 changes: 22 additions & 0 deletions
22
...ts.Shared/Microsoft_UI_Xaml_Controls/ProgressRing/WinUIProgressRing_CustomSources.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Uno.UI.Samples.Controls; | ||
|
||
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238 | ||
|
||
namespace UITests.Microsoft_UI_Xaml_Controls.ProgressRing | ||
{ | ||
/// <summary> | ||
/// An empty page that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
[Sample("Progress", "WinUI")] | ||
public sealed partial class WinUIProgressRing_CustomSources : Page | ||
{ | ||
public WinUIProgressRing_CustomSources() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters