/App.xaml Secret
Created
February 12, 2016 04:56
MahAppsの適用について
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Application x:Class="LivetWPFApplication3.App" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
StartupUri="Views\MainWindow.xaml" | |
Startup="Application_Startup"> | |
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> | |
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! --> | |
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /> | |
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /> | |
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> | |
<!-- Accent and AppTheme setting --> | |
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" /> | |
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /> | |
</ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> | |
</Application.Resources> | |
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<metro:MetroWindow x:Class="LivetWPFApplication3.Views.MainWindow" | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
xmlns:metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" | |
xmlns:metrobe="clr-namespace:MahApps.Metro.Behaviours;assembly=MahApps.Metro"> | |
<i:Interaction.Behaviors> | |
<!-- これをしないと外側のウィンドウが表示されてしまう。 --> | |
<metrobe:BorderlessWindowBehavior/> | |
</i:Interaction.Behaviors> | |
</metro:MetroWindow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class MainWindow : MahApps.Metro.Controls.MetroWindow | |
{ | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment