From e83b9fb90f2fafe55ce1d5aa0827498d8c5991d9 Mon Sep 17 00:00:00 2001 From: Callon Campbell Date: Wed, 20 Jun 2018 12:23:09 -0400 Subject: [PATCH] Add project files. --- WpfHamburgerMenuApp.sln | 25 ++++ WpfHamburgerMenuApp/App.config | 6 + WpfHamburgerMenuApp/App.xaml | 16 +++ WpfHamburgerMenuApp/App.xaml.cs | 17 +++ WpfHamburgerMenuApp/MainWindow.xaml | 123 ++++++++++++++++++ WpfHamburgerMenuApp/MainWindow.xaml.cs | 71 ++++++++++ .../Properties/AssemblyInfo.cs | 55 ++++++++ .../Properties/Resources.Designer.cs | 63 +++++++++ WpfHamburgerMenuApp/Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 26 ++++ .../Properties/Settings.settings | 7 + .../WpfHamburgerMenuApp.csproj | 105 +++++++++++++++ WpfHamburgerMenuApp/packages.config | 5 + 13 files changed, 636 insertions(+) create mode 100644 WpfHamburgerMenuApp.sln create mode 100644 WpfHamburgerMenuApp/App.config create mode 100644 WpfHamburgerMenuApp/App.xaml create mode 100644 WpfHamburgerMenuApp/App.xaml.cs create mode 100644 WpfHamburgerMenuApp/MainWindow.xaml create mode 100644 WpfHamburgerMenuApp/MainWindow.xaml.cs create mode 100644 WpfHamburgerMenuApp/Properties/AssemblyInfo.cs create mode 100644 WpfHamburgerMenuApp/Properties/Resources.Designer.cs create mode 100644 WpfHamburgerMenuApp/Properties/Resources.resx create mode 100644 WpfHamburgerMenuApp/Properties/Settings.Designer.cs create mode 100644 WpfHamburgerMenuApp/Properties/Settings.settings create mode 100644 WpfHamburgerMenuApp/WpfHamburgerMenuApp.csproj create mode 100644 WpfHamburgerMenuApp/packages.config diff --git a/WpfHamburgerMenuApp.sln b/WpfHamburgerMenuApp.sln new file mode 100644 index 0000000..9b51616 --- /dev/null +++ b/WpfHamburgerMenuApp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2035 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfHamburgerMenuApp", "WpfHamburgerMenuApp\WpfHamburgerMenuApp.csproj", "{50F68246-31E6-4130-BF2D-C88973E01F5D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {50F68246-31E6-4130-BF2D-C88973E01F5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50F68246-31E6-4130-BF2D-C88973E01F5D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50F68246-31E6-4130-BF2D-C88973E01F5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50F68246-31E6-4130-BF2D-C88973E01F5D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F25858C6-8601-460E-9BBA-D5F6AFCD988D} + EndGlobalSection +EndGlobal diff --git a/WpfHamburgerMenuApp/App.config b/WpfHamburgerMenuApp/App.config new file mode 100644 index 0000000..9d2c7ad --- /dev/null +++ b/WpfHamburgerMenuApp/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/WpfHamburgerMenuApp/App.xaml b/WpfHamburgerMenuApp/App.xaml new file mode 100644 index 0000000..95b82ff --- /dev/null +++ b/WpfHamburgerMenuApp/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + diff --git a/WpfHamburgerMenuApp/App.xaml.cs b/WpfHamburgerMenuApp/App.xaml.cs new file mode 100644 index 0000000..2ec9615 --- /dev/null +++ b/WpfHamburgerMenuApp/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace WpfHamburgerMenuApp +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/WpfHamburgerMenuApp/MainWindow.xaml b/WpfHamburgerMenuApp/MainWindow.xaml new file mode 100644 index 0000000..9aafafb --- /dev/null +++ b/WpfHamburgerMenuApp/MainWindow.xaml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WpfHamburgerMenuApp/MainWindow.xaml.cs b/WpfHamburgerMenuApp/MainWindow.xaml.cs new file mode 100644 index 0000000..5872ff1 --- /dev/null +++ b/WpfHamburgerMenuApp/MainWindow.xaml.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace WpfHamburgerMenuApp +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + + private void ButtonOpenMenu_Click(object sender, RoutedEventArgs e) + { + ButtonCloseMenu.Visibility = Visibility.Visible; + ButtonOpenMenu.Visibility = Visibility.Collapsed; + } + + private void ButtonCloseMenu_Click(object sender, RoutedEventArgs e) + { + ButtonCloseMenu.Visibility = Visibility.Collapsed; + ButtonOpenMenu.Visibility = Visibility.Visible; + } + + private void ListViewMenu_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + //TODO + //UserControl usc = null; + //GridMain.Children.Clear(); + + //switch (((ListViewItem)((ListView)sender).SelectedItem).Name) + //{ + // case "ItemHome": + // usc = new UserControlHome(); + // GridMain.Children.Add(usc); + // break; + // case "ItemCreate": + // usc = new UserControlCreate(); + // GridMain.Children.Add(usc); + // break; + // default: + // break; + //} + } + + private void ButtonOpenSettings_Click(object sender, RoutedEventArgs e) + { + + } + + private void ButtonOpenHelp_Click(object sender, RoutedEventArgs e) + { + + } + } +} diff --git a/WpfHamburgerMenuApp/Properties/AssemblyInfo.cs b/WpfHamburgerMenuApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8e0f0d0 --- /dev/null +++ b/WpfHamburgerMenuApp/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WpfHamburgerMenuApp2")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WpfHamburgerMenuApp2")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// 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("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WpfHamburgerMenuApp/Properties/Resources.Designer.cs b/WpfHamburgerMenuApp/Properties/Resources.Designer.cs new file mode 100644 index 0000000..ab36050 --- /dev/null +++ b/WpfHamburgerMenuApp/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WpfHamburgerMenuApp.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WpfHamburgerMenuApp.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/WpfHamburgerMenuApp/Properties/Resources.resx b/WpfHamburgerMenuApp/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/WpfHamburgerMenuApp/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WpfHamburgerMenuApp/Properties/Settings.Designer.cs b/WpfHamburgerMenuApp/Properties/Settings.Designer.cs new file mode 100644 index 0000000..1c184fb --- /dev/null +++ b/WpfHamburgerMenuApp/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WpfHamburgerMenuApp.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/WpfHamburgerMenuApp/Properties/Settings.settings b/WpfHamburgerMenuApp/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/WpfHamburgerMenuApp/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/WpfHamburgerMenuApp/WpfHamburgerMenuApp.csproj b/WpfHamburgerMenuApp/WpfHamburgerMenuApp.csproj new file mode 100644 index 0000000..eef5967 --- /dev/null +++ b/WpfHamburgerMenuApp/WpfHamburgerMenuApp.csproj @@ -0,0 +1,105 @@ + + + + + Debug + AnyCPU + {50F68246-31E6-4130-BF2D-C88973E01F5D} + WinExe + WpfHamburgerMenuApp + WpfHamburgerMenuApp + v4.7 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll + + + ..\packages\MaterialDesignThemes.2.4.0.1044\lib\net45\MaterialDesignThemes.Wpf.dll + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + \ No newline at end of file diff --git a/WpfHamburgerMenuApp/packages.config b/WpfHamburgerMenuApp/packages.config new file mode 100644 index 0000000..9bbf793 --- /dev/null +++ b/WpfHamburgerMenuApp/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file