74 lines
3.7 KiB
XML
74 lines
3.7 KiB
XML
<UserControl x:Class="YouTubeViewers.WPF.Components.YouTubeViewersDetails"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:YouTubeViewers.WPF.Components"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid>
|
|
<Border Padding="20" BorderBrush="{StaticResource BorderPrimary}"
|
|
BorderThickness="1" CornerRadius="5"
|
|
SnapsToDevicePixels="True">
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.Style>
|
|
<Style TargetType="Grid">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding HasSelectedYouTubeViewer}" Value="false">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Grid.Style>
|
|
<TextBlock Grid.Row="0"
|
|
Text="Please select a YouTube Viewer to see their details." />
|
|
</Grid>
|
|
<Grid Grid.IsSharedSizeScope="True">
|
|
<Grid.Style>
|
|
<Style TargetType="Grid">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding HasSelectedYouTubeViewer}" Value="True">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Grid.Style>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0"
|
|
FontSize="24"
|
|
Text="{Binding UserName}" />
|
|
|
|
<Grid Grid.Row="1" Margin="0 20 0 0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" SharedSizeGroup="Label"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="Is Subscribed?" FontWeight="Bold" />
|
|
<TextBlock Margin="20 0 0 0"
|
|
Grid.Column="1"
|
|
Text="{Binding IsSubScribedDisplay}" />
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="2" Margin="0 20 0 0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto" SharedSizeGroup="Label"/>
|
|
<ColumnDefinition Width="auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Text="Is Member?" FontWeight="Bold" />
|
|
<TextBlock Margin="20 0 0 0"
|
|
Grid.Column="1"
|
|
Text="{Binding IsMemberDisplay}" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|