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

29 lines
1.2 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:m="using:WinWARP.Core.Models.Entities"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="0" Command="{x:Bind ViewModel.AddSubscriptionCommand}" Content="Add Subscription" />
<TextBox Grid.Row="1" Text="{x:Bind ViewModel.NewSubscriptionLink, Mode=TwoWay}" />
<ListBox Grid.Row="2" ItemsSource="{x:Bind ViewModel.Subscriptions}">
<ListBox.ItemTemplate>
<DataTemplate x:DataType="m:Subscription">
<TextBlock Text="{x:Bind Link}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Page>