Files
WinWARP/WinWARP.Ui/Views/SubsSettingsPage.xaml
T

35 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="WinWARP.Ui.Views.SubsSettingsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:WinWARP.Ui.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:c="using:WinWARP.Ui.Views.Components"
xmlns:vm="using:WinWARP.Core.ViewModels"
mc:Ignorable="d">
<ScrollView>
<StackPanel>
<Button Command="{x:Bind ViewModel.AddSubscriptionCommand}" Content="Add Subscription"/>
<GridView ItemsSource="{x:Bind ViewModel.Servers}" SelectionMode="None">
<GridView.ItemContainerStyle>
<Style TargetType="GridViewItem" BasedOn="{StaticResource DefaultGridViewItemStyle}">
<Setter Property="Margin" Value="6"/>
</Style>
</GridView.ItemContainerStyle>
<GridView.ItemTemplate>
<DataTemplate x:DataType="vm:ServerItemViewModel">
<c:ServerListElement ServerData="{x:Bind}"/>
</DataTemplate>
</GridView.ItemTemplate>
</GridView>
<ProgressRing IsActive="{x:Bind ViewModel.ShowLoadingIndicator, Mode=OneWay}"/>
</StackPanel>
</ScrollView>
</Page>