-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Renaming ProgressRingExtensions to ProgressExtensions and incl…
…ude ProgressBar
- Loading branch information
1 parent
b59f084
commit 86d4c6f
Showing
4 changed files
with
74 additions
and
67 deletions.
There are no files selected for viewing
106 changes: 53 additions & 53 deletions
106
...es/Uno.Toolkit.Samples/Uno.Toolkit.Samples.Shared/Content/Controls/LoadingViewSample.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 |
---|---|---|
@@ -1,60 +1,60 @@ | ||
<Page x:Class="Uno.Toolkit.Samples.Content.Controls.LoadingViewSample" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Uno.Toolkit.Samples.Content.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:utu="using:Uno.Toolkit.UI" | ||
xmlns:sample="using:Uno.Toolkit.Samples" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<Page | ||
x:Class="Uno.Toolkit.Samples.Content.Controls.LoadingViewSample" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:Uno.Toolkit.Samples.Content.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:sample="using:Uno.Toolkit.Samples" | ||
xmlns:utu="using:Uno.Toolkit.UI" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | ||
mc:Ignorable="d"> | ||
|
||
<sample:SamplePageLayout x:Name="SamplePageLayout" | ||
IsDesignAgnostic="True"> | ||
<sample:SamplePageLayout.DesignAgnosticTemplate> | ||
<DataTemplate> | ||
<StackPanel> | ||
<utu:LoadingView DataContext="{Binding Data}" | ||
LoadingContent="Loading...." | ||
x:Name="LoadingView"> | ||
<utu:LoadingView.Source> | ||
<utu:CompositeLoadableSource> | ||
<utu:LoadableSource Source="{Binding LoadContent0Command}" /> | ||
<utu:LoadableSource Source="{Binding LoadContent1Command}" /> | ||
</utu:CompositeLoadableSource> | ||
</utu:LoadingView.Source> | ||
<sample:SamplePageLayout x:Name="SamplePageLayout" IsDesignAgnostic="True"> | ||
<sample:SamplePageLayout.DesignAgnosticTemplate> | ||
<DataTemplate> | ||
<StackPanel> | ||
<utu:LoadingView | ||
x:Name="LoadingView" | ||
DataContext="{Binding Data}" | ||
LoadingContent="Loading...."> | ||
<utu:LoadingView.Source> | ||
<utu:CompositeLoadableSource> | ||
<utu:LoadableSource Source="{Binding LoadContent0Command}" /> | ||
<utu:LoadableSource Source="{Binding LoadContent1Command}" /> | ||
</utu:CompositeLoadableSource> | ||
</utu:LoadingView.Source> | ||
|
||
<StackPanel x:Name="TestPanel"> | ||
<TextBlock Text="{Binding Text}" /> | ||
<ListView ItemsSource="{Binding Source}" /> | ||
<StackPanel x:Name="TestPanel"> | ||
<TextBlock Text="{Binding Text}" /> | ||
<ListView ItemsSource="{Binding Source}" /> | ||
|
||
<Button Content="Reload Text" | ||
Command="{Binding LoadContent0Command}" /> | ||
<Button Content="Reload List" | ||
Command="{Binding LoadContent1Command}" /> | ||
</StackPanel> | ||
<Button Command="{Binding LoadContent0Command}" Content="Reload Text" /> | ||
<Button Command="{Binding LoadContent1Command}" Content="Reload List" /> | ||
</StackPanel> | ||
|
||
|
||
<utu:LoadingView.LoadingContentTemplate> | ||
<DataTemplate> | ||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> | ||
<ProgressRing /> | ||
<TextBlock Text="{Binding}" /> | ||
</StackPanel> | ||
</DataTemplate> | ||
</utu:LoadingView.LoadingContentTemplate> | ||
</utu:LoadingView> | ||
<ToggleSwitch IsOn="{Binding UseTransitions, ElementName=LoadingView, Mode=TwoWay}"> | ||
<ToggleSwitch.OnContent> | ||
<TextBlock Text="Transitions enabled" /> | ||
</ToggleSwitch.OnContent> | ||
<ToggleSwitch.OffContent> | ||
<TextBlock Text="Transitions disabled" /> | ||
</ToggleSwitch.OffContent> | ||
</ToggleSwitch> | ||
</StackPanel> | ||
</DataTemplate> | ||
</sample:SamplePageLayout.DesignAgnosticTemplate> | ||
</sample:SamplePageLayout> | ||
<utu:LoadingView.LoadingContentTemplate> | ||
<DataTemplate> | ||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> | ||
<ProgressRing /> | ||
<ProgressBar Width="200" /> | ||
<TextBlock Text="{Binding}" /> | ||
</StackPanel> | ||
</DataTemplate> | ||
</utu:LoadingView.LoadingContentTemplate> | ||
</utu:LoadingView> | ||
<ToggleSwitch IsOn="{Binding UseTransitions, ElementName=LoadingView, Mode=TwoWay}"> | ||
<ToggleSwitch.OnContent> | ||
<TextBlock Text="Transitions enabled" /> | ||
</ToggleSwitch.OnContent> | ||
<ToggleSwitch.OffContent> | ||
<TextBlock Text="Transitions disabled" /> | ||
</ToggleSwitch.OffContent> | ||
</ToggleSwitch> | ||
</StackPanel> | ||
</DataTemplate> | ||
</sample:SamplePageLayout.DesignAgnosticTemplate> | ||
</sample:SamplePageLayout> | ||
|
||
</Page> |
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