-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
34 lines (33 loc) · 1.06 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<Window
x:Class="WPFTodo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFTodo.UserControls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFTodo"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:views="clr-namespace:WPFTodo.Views"
xmlns:vms="clr-namespace:WPFTodo.ViewModels"
Title="MainWindow"
Width="900"
Height="1185"
mc:Ignorable="d">
<Grid d:DataContext="{d:DesignInstance vms:MainViewModel}">
<Grid.Resources>
<DataTemplate DataType="{x:Type vms:HomeViewModel}">
<views:HomeView />
</DataTemplate>
</Grid.Resources>
<ContentControl>
<ContentControl.Content>
<Binding Path="CurrentViewModel">
<Binding.TargetNullValue>
<Grid Background="{StaticResource BrushBgDefault}">
<controls:LoadingSpinner />
</Grid>
</Binding.TargetNullValue>
</Binding>
</ContentControl.Content>
</ContentControl>
</Grid>
</Window>