From 8b1d4f10f8bd5e82b80203b4d9a51cdb76d4952b Mon Sep 17 00:00:00 2001 From: arbitrarybytes Date: Sat, 20 Apr 2019 07:59:02 +0530 Subject: [PATCH] Updated MahApps.Metro, code clean up --- .gitignore | 16 ++++++++++ EasyHosts/EasyHosts.csproj | 11 +++++-- EasyHosts/Properties/AssemblyInfo.cs | 6 ++-- EasyHosts/Shell.xaml | 18 +++-------- EasyHosts/ViewModels/HostsEntryViewModel.cs | 9 ------ EasyHosts/Views/Hosts.xaml.cs | 35 +-------------------- EasyHosts/packages.config | 3 +- 7 files changed, 35 insertions(+), 63 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5d39281 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/.vs +/EasyHosts/obj/Debug/App.baml +/EasyHosts/obj/Debug/App.g.cs +/EasyHosts/obj/Debug/App.g.i.cs +/EasyHosts/obj/Release/EasyHosts.csproj.CoreCompileInputs.cache +/EasyHosts/obj/Release/App.g.cs +/EasyHosts/obj/Release/App.baml +/EasyHosts/obj/Debug/EasyHosts.csprojAssemblyReference.cache +/EasyHosts/obj/Debug/EasyHosts.csproj.CoreCompileInputs.cache +/Deploy +/EasyHosts/obj +/packages diff --git a/EasyHosts/EasyHosts.csproj b/EasyHosts/EasyHosts.csproj index 75ad3a7..38276df 100644 --- a/EasyHosts/EasyHosts.csproj +++ b/EasyHosts/EasyHosts.csproj @@ -69,13 +69,15 @@ Properties\app.manifest + + ..\packages\ControlzEx.3.0.2.4\lib\net45\ControlzEx.dll + False ..\packages\AvalonEdit.4.4.2.9744\lib\Net40\ICSharpCode.AvalonEdit.dll - - False - ..\packages\MahApps.Metro.0.14.0-ALPHA98\lib\net45\MahApps.Metro.dll + + ..\packages\MahApps.Metro.1.6.5\lib\net45\MahApps.Metro.dll ..\packages\Prism.Mvvm.1.0.0\lib\net45\Microsoft.Practices.Prism.Mvvm.dll @@ -85,6 +87,9 @@ + + ..\packages\ControlzEx.3.0.2.4\lib\net45\System.Windows.Interactivity.dll + diff --git a/EasyHosts/Properties/AssemblyInfo.cs b/EasyHosts/Properties/AssemblyInfo.cs index b5ea7cf..ffa6314 100644 --- a/EasyHosts/Properties/AssemblyInfo.cs +++ b/EasyHosts/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Vaibhav Sharma")] [assembly: AssemblyProduct("Easy Hosts")] -[assembly: AssemblyCopyright("Copyright © Vaibhav Sharma 2018")] +[assembly: AssemblyCopyright("Copyright © Vaibhav Sharma 2019")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -49,5 +49,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.2015.0308.0")] -[assembly: AssemblyFileVersion("2.2015.0308.0")] +[assembly: AssemblyVersion("2.2019.320.0")] +[assembly: AssemblyFileVersion("2.2019.320.0")] diff --git a/EasyHosts/Shell.xaml b/EasyHosts/Shell.xaml index cd47cb0..7d90472 100644 --- a/EasyHosts/Shell.xaml +++ b/EasyHosts/Shell.xaml @@ -6,7 +6,8 @@ xmlns:viewModels="clr-namespace:EasyHosts.ViewModels" WindowStartupLocation="CenterScreen" WindowState="Maximized" WindowTransitionsEnabled="True" ShowIconOnTitleBar="False" - ShowWindowCommandsOnTop="False" GlowBrush="{DynamicResource AccentColorBrush}" + RightWindowCommandsOverlayBehavior="Always" + GlowBrush="{DynamicResource AccentColorBrush}" ResizeMode="CanResizeWithGrip" MinHeight="480" MinWidth="760" TitleCaps="True" Title="EASY HOSTS" Icon="eh.ico" > @@ -166,14 +167,6 @@ - - @@ -185,7 +178,7 @@ Content=" CREATE " /> + Text="Just the file name (we'll manage the extensions)."/> @@ -194,12 +187,12 @@ - +