initial load

This commit is contained in:
2022-08-22 15:56:12 +02:00
commit d3b7ff17be
62 changed files with 2694 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<Window x:Class="YouTubeViewers.WPF.MainWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:YouTubeViewers.WPF"
xmlns:vms ="clr-namespace:YouTubeViewers.WPF.ViewModels"
xmlns:views="clr-namespace:YouTubeViewers.WPF.Views"
xmlns:viewmodels="clr-namespace:YouTubeViewers.WPF.ViewModels"
xmlns:custom="clr-namespace:ModalControl;assembly=ModalControl"
mc:Ignorable="d"
Title="YouTube Viewers"
Height="450"
Width="800"
FontSize="14"
WindowStartupLocation="CenterScreen">
<Window.Resources>
<DataTemplate DataType="{x:Type vms:AddYouTubeViewerViewModel}">
<views:AddYouTubeViewerView/>
</DataTemplate>
<DataTemplate DataType="{x:Type vms:EditYouTubeViewerViewModel}">
<views:EditYouTubeViewerView/>
</DataTemplate>
</Window.Resources>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<Grid >
<custom:Modal Panel.ZIndex="1" IsOpen="{Binding IsModalOpen}">
<ContentControl Margin="50 25" Content="{Binding CurrentModalViewModel}"/>
</custom:Modal>
<views:YouTubeViewersView Margin="25" DataContext="{Binding YouTubeViewersViewModel}" />
</Grid>
</ScrollViewer>
</Window>