This file contains hidden or 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
| <CollectionView ItemsSource="{Binding Users}" | |
| RemainingItemsThresholdReachedCommand="{Binding LoadMoreCommand}" | |
| RemainingItemsThreshold="{Binding ItemThreshold}"> | |
| <CollectionView.Footer> | |
| <StackLayout BindableLayout.ItemTemplate="{DynamicResource EmptyUserTemplate}" | |
| IsVisible="{Binding IsLoadingMore}"> | |
| <BindableLayout.ItemsSource> | |
| <x:Array Type="{x:Type x:Int32}"> | |
| <x:Int32>0</x:Int32> | |
| </x:Array> |
This file contains hidden or 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
| <StackLayout xct:StateLayout.CurrentState="{Binding CurrentState}" | |
| xct:StateLayout.AnimateStateChanges="False"> | |
| <xct:StateLayout.StateViews> | |
| <xct:StateView StateKey="Loading" | |
| RepeatCount="8" | |
| Template="{StaticResource EmptyUserTemplate}"> | |
| </xct:StateView> | |
| </xct:StateLayout.StateViews> | |
| </StackLayout> |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="StateLayoutSample.MainPage" | |
| xmlns:xct="http://xamarin.com/schemas/2020/toolkit" | |
| xmlns:controls="clr-namespace:StateLayoutSample.Controls" | |
| Title="Users"> | |
| <ContentPage.Resources> | |
| <ResourceDictionary> | |
| <Style TargetType="controls:SkeletonView"> |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="StateLayoutSample.MainPage" | |
| xmlns:xct="http://xamarin.com/schemas/2020/toolkit"> | |
| <StackLayout xct:StateLayout.CurrentState="{Binding CurrentState}" | |
| xct:StateLayout.AnimateStateChanges="False"> | |
| <CollectionView ItemsSource="{Binding Users}"> | |
| <CollectionView.ItemTemplate> | |
| <DataTemplate> |
This file contains hidden or 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
| public class SkeletonView : BoxView | |
| { | |
| public SkeletonView() | |
| { | |
| Device.StartTimer(TimeSpan.FromSeconds(1.5), () => | |
| { | |
| this.FadeTo(0.5, 750, Easing.CubicInOut).ContinueWith((x) => | |
| { | |
| this.FadeTo(1, 750, Easing.CubicInOut); | |
| }); |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="StateLayoutSample.MainPage" | |
| xmlns:xct="http://xamarin.com/schemas/2020/toolkit" | |
| xmlns:controls="clr-namespace:StateLayoutSample.Controls" | |
| Title="Users"> | |
| <ContentPage.Resources> | |
| <ResourceDictionary> | |
| <Style TargetType="controls:SkeletonView"> |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="StateLayoutSample.MainPage" | |
| xmlns:xct="http://xamarin.com/schemas/2020/toolkit" | |
| xmlns:controls="clr-namespace:StateLayoutSample.Controls" | |
| Title="Users"> | |
| <StackLayout xct:StateLayout.CurrentState="{Binding CurrentState}" | |
| xct:StateLayout.AnimateStateChanges="False"> |
This file contains hidden or 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
| <StackLayout xct:StateLayout.CurrentState="{Binding CurrentState}" | |
| xct:StateLayout.AnimateStateChanges="False"> | |
| </StackLayout> |
This file contains hidden or 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
| <ContentPage.Resources> | |
| <xct:StateToBooleanConverter x:Key="StateToBooleanConverter" /> | |
| </ContentPage.Resources> | |
| <ActivityIndicator IsRunning="{Binding CurrentState, Converter={StaticResource StateToBooleanConverter}, | |
| ConverterParameter={x:Static xct:LayoutState.Loading}}" /> | |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="StateLayoutSample.MainPage" | |
| xmlns:xct="http://xamarin.com/schemas/2020/toolkit" | |
| xmlns:controls="clr-namespace:StateLayoutSample.Controls"> | |
| <ContentPage.Resources> | |
| <xct:StateToBooleanConverter x:Key="StateToBooleanConverter" /> | |
| </ContentPage.Resources> |