2020-12-05 18:27:54 +08:00
|
|
|
<Application
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="clr-namespace:BililiveRecorder.WPF"
|
|
|
|
xmlns:ui="http://schemas.modernwpf.com/2019"
|
2021-01-15 17:40:34 +08:00
|
|
|
xmlns:l="https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension"
|
|
|
|
xmlns:m="clr-namespace:BililiveRecorder.WPF.Models"
|
2020-12-05 18:27:54 +08:00
|
|
|
x:Class="BililiveRecorder.WPF.App"
|
|
|
|
Startup="CheckUpdate"
|
|
|
|
SessionEnding="Application_SessionEnding"
|
|
|
|
StartupUri="NewMainWindow.xaml">
|
2020-11-27 18:51:02 +08:00
|
|
|
<Application.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ui:ThemeResources />
|
|
|
|
<ui:XamlControlsResources />
|
|
|
|
<!-- Other merged dictionaries here -->
|
2020-12-10 17:02:56 +08:00
|
|
|
<ResourceDictionary Source="Resources/IconResources.xaml" />
|
|
|
|
<ResourceDictionary Source="Resources/ConverterResources.xaml" />
|
2020-11-27 18:51:02 +08:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- Other app resources here -->
|
2020-11-28 13:02:57 +08:00
|
|
|
<FontFamily x:Key="ContentControlThemeFontFamily">Microsoft YaHei</FontFamily>
|
2021-01-15 17:40:34 +08:00
|
|
|
<ContextMenu x:Key="CopyTextContextMenu" DataContext="{Binding RelativeSource={RelativeSource Mode=Self},Path=PlacementTarget}"
|
|
|
|
l:ResxLocalizationProvider.DefaultDictionary="Strings">
|
|
|
|
<MenuItem Header="{l:Loc Global_Copy}" Command="{x:Static m:Commands.Copy}" CommandParameter="{Binding Text}"/>
|
|
|
|
</ContextMenu>
|
2020-11-27 18:51:02 +08:00
|
|
|
</ResourceDictionary>
|
|
|
|
</Application.Resources>
|
|
|
|
</Application>
|