From c01f46fa77aa6efbfa2518b6af6d615d55b3b094 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Tue, 6 May 2014 10:39:36 -0400 Subject: [PATCH] Add appearance button to window caption --- .../FloatingStatusWindow.cs | 3 +- FloatingStatusWindowLibrary/MainWindow.xaml | 53 +++++++++++++++---- .../MainWindow.xaml.cs | 6 +++ 3 files changed, 49 insertions(+), 13 deletions(-) diff --git a/FloatingStatusWindowLibrary/FloatingStatusWindow.cs b/FloatingStatusWindowLibrary/FloatingStatusWindow.cs index c3431df..ed9abc3 100644 --- a/FloatingStatusWindowLibrary/FloatingStatusWindow.cs +++ b/FloatingStatusWindowLibrary/FloatingStatusWindow.cs @@ -1,5 +1,4 @@ -using Common.Native; -using FloatingStatusWindowLibrary.Properties; +using FloatingStatusWindowLibrary.Properties; using Hardcodet.Wpf.TaskbarNotification; using System; using System.Windows; diff --git a/FloatingStatusWindowLibrary/MainWindow.xaml b/FloatingStatusWindowLibrary/MainWindow.xaml index a88e345..f84c55c 100644 --- a/FloatingStatusWindowLibrary/MainWindow.xaml +++ b/FloatingStatusWindowLibrary/MainWindow.xaml @@ -1,21 +1,52 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:htmlLabelControl="clr-namespace:Common.Wpf.HtmlLabelControl;assembly=Common.Wpf" + xmlns:windows="clr-namespace:Common.Wpf.Windows;assembly=Common.Wpf" + windows:ControlBox.HasMaximizeButton="False" + windows:ControlBox.HasMinimizeButton="False" + windows:ControlBox.HasSystemMenu="False" + Title="FloatingStatusWindow" + Height="250" + Width="400" + WindowStyle="None" + AllowsTransparency="True" + ResizeMode="CanResize" + Background="Transparent" + ShowInTaskbar="False" + x:ClassModifier="internal"> - + - + - - + diff --git a/FloatingStatusWindowLibrary/MainWindow.xaml.cs b/FloatingStatusWindowLibrary/MainWindow.xaml.cs index 53921ae..d30db50 100644 --- a/FloatingStatusWindowLibrary/MainWindow.xaml.cs +++ b/FloatingStatusWindowLibrary/MainWindow.xaml.cs @@ -122,5 +122,11 @@ namespace FloatingStatusWindowLibrary return WindowManager.GetWindowList(windowHandle); } } + + private void HandleChangeAppearanceClick(object sender, RoutedEventArgs e) + { + var appearanceWindow = new AppearanceWindow(WindowSettings); + appearanceWindow.ShowDialog(); + } } }