initial load
This commit is contained in:
34
YouTubeViewers.WPF/MainWindow.xaml
Normal file
34
YouTubeViewers.WPF/MainWindow.xaml
Normal 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>
|
||||
Reference in New Issue
Block a user