-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml
More file actions
29 lines (25 loc) · 1.19 KB
/
App.xaml
File metadata and controls
29 lines (25 loc) · 1.19 KB
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
<Application x:Class="Monitoring.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Monitoring"
xmlns:viewModel="clr-namespace:Monitoring.MVVM.ViewModel"
xmlns:view="clr-namespace:Monitoring.MVVM.View"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Theme/MenuButtonTheme.xaml"/>
<ResourceDictionary Source="Theme/TextBoxTheme.xaml"/>
</ResourceDictionary.MergedDictionaries>
<DataTemplate DataType="{x:Type viewModel:HomeViewModel}">
<view:HomeView/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:InfoViewModel}">
<view:InfoView/>
</DataTemplate>
<DataTemplate DataType="{x:Type viewModel:WeatherViewModel}">
<view:WeatherView/>
</DataTemplate>
</ResourceDictionary>
</Application.Resources>
</Application>