You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.5 KiB

<Application x:Class="SparkClient.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SparkClient"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:baseWindow="clr-namespace:SparkClient.Views.BaseWindow"
xmlns:baseWindow1="clr-namespace:SparkClient.ViewModel.BaseWindow"
xmlns:views="clr-namespace:SparkClient.Views"
xmlns:configuration="clr-namespace:SparkClient.ViewModel.Configuration"
xmlns:configuration1="clr-namespace:SparkClient.Views.Configuration"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
<ResourceDictionary Source="/Language/en_US.xaml"/>
<ResourceDictionary Source="/Language/zh_CN.xaml"/>
</ResourceDictionary.MergedDictionaries>
<ResourceDictionary x:Key="zh-cn" Source="/Language/zh_CN.xaml"/>
<ResourceDictionary x:Key="en" Source="/Language/en_US.xaml"/>
<!-- V-VM全局映射 -->
<DataTemplate DataType="{x:Type baseWindow1:HomeWindowVM}">
<baseWindow:HomeWindow/>
</DataTemplate>
<DataTemplate DataType="{x:Type baseWindow1:BaseControlVM}">
<baseWindow:BaseControl/>
</DataTemplate>
<DataTemplate DataType="{x:Type baseWindow1:HelperPageVM}">
<views:HelperPage/>
</DataTemplate>
<DataTemplate DataType="{x:Type configuration:ConfigMenuPageVM}">
<configuration1:ConfigMenuPage/>
</DataTemplate>
<DataTemplate DataType="{x:Type configuration:LevelConfigVM}">
<configuration1:LevelConfigPage/>
</DataTemplate>
<DataTemplate DataType="{x:Type configuration:CutConfigVM}">
<configuration1:CutConfigPage/>
</DataTemplate>
<DataTemplate DataType="{x:Type configuration:AlgorithmConfigVM}">
<configuration1:AlgorithmConfigPage/>
</DataTemplate>
</ResourceDictionary>
</Application.Resources>
</Application>