├── sourceCode.zip ├── CosmopolitanWpf ├── Resources │ └── page01.jpg ├── app.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── App.xaml.cs ├── SampleData │ └── SampleDataSource │ │ ├── ItemCollection.cs │ │ ├── SampleDataSource.cs │ │ ├── SampleDataSource.xaml │ │ └── Item.cs ├── Views │ ├── Core.xaml.cs │ ├── Home.xaml.cs │ ├── Sdk.xaml.cs │ ├── Home.xaml │ ├── Sdk.xaml │ └── Core.xaml ├── App.xaml ├── Assets │ ├── Fonts.xaml │ ├── Brushes.xaml │ └── Styles.xaml ├── MainWindow.xaml ├── MainWindow.xaml.cs └── CosmopolitanWpf.csproj ├── CosmopolitanWpf.sln ├── .gitattributes ├── BuildProcessTemplates ├── UpgradeTemplate.xaml ├── LabDefaultTemplate.11.xaml └── DefaultTemplate.11.1.xaml └── .gitignore /sourceCode.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/sourceCode/HEAD/sourceCode.zip -------------------------------------------------------------------------------- /CosmopolitanWpf/Resources/page01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/sourceCode/HEAD/CosmopolitanWpf/Resources/page01.jpg -------------------------------------------------------------------------------- /CosmopolitanWpf/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /CosmopolitanWpf/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace CosmopolitanWpf 4 | { 5 | /// 6 | /// Interaction logic for App.xaml 7 | /// 8 | public partial class App : Application 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /CosmopolitanWpf/SampleData/SampleDataSource/ItemCollection.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | 3 | namespace CosmopolitanWpf.SampleData.SampleDataSource 4 | { 5 | /// 6 | /// This represent an OnservableCollection of Item. 7 | /// 8 | public class ItemCollection : ObservableCollection 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Core.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace CosmopolitanWpf.Views 4 | { 5 | /// 6 | /// Interaction logic for Core.xaml 7 | /// 8 | public partial class Core : UserControl 9 | { 10 | /// 11 | /// Initializes a new instance of the Core class. 12 | /// 13 | public Core() 14 | { 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Home.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace CosmopolitanWpf.Views 4 | { 5 | /// 6 | /// Interaction logic for Home.xaml 7 | /// 8 | public partial class Home : UserControl 9 | { 10 | /// 11 | /// Initializes a new instance of the Home class. 12 | /// 13 | public Home() 14 | { 15 | InitializeComponent(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Sdk.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows.Controls; 2 | 3 | namespace CosmopolitanWpf.Views 4 | { 5 | /// 6 | /// Interaction logic for Sdk.xaml 7 | /// 8 | public partial class Sdk : UserControl 9 | { 10 | /// 11 | /// Initializes a new instance of the Sdk class. 12 | /// 13 | public Sdk() 14 | { 15 | InitializeComponent(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CosmopolitanWpf/App.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.450 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CosmopolitanWpf.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Assets/Fonts.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | Segoe UI Light, Lucida Sans Unicode, Verdana 11 | Segoe UI, Lucida Sans Unicode, Verdana 12 | 13 | 50 14 | 21.333 15 | 28 16 | 17 | 14 18 | 14 19 | 12 20 | 16 21 | 18 22 | 10 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CosmopolitanWpf.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CosmopolitanWpf", "CosmopolitanWpf\CosmopolitanWpf.csproj", "{DFCFFECC-8704-4768-8F5C-7E484555258B}" 5 | EndProject 6 | Global 7 | GlobalSection(TeamFoundationVersionControl) = preSolution 8 | SccNumberOfProjects = 2 9 | SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} 10 | SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs14 11 | SccLocalPath0 = . 12 | SccProjectUniqueName1 = CosmopolitanWpf\\CosmopolitanWpf.csproj 13 | SccProjectName1 = CosmopolitanWpf 14 | SccLocalPath1 = CosmopolitanWpf 15 | EndGlobalSection 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|x86 = Debug|x86 18 | Release|x86 = Release|x86 19 | EndGlobalSection 20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 21 | {DFCFFECC-8704-4768-8F5C-7E484555258B}.Debug|x86.ActiveCfg = Debug|x86 22 | {DFCFFECC-8704-4768-8F5C-7E484555258B}.Debug|x86.Build.0 = Debug|x86 23 | {DFCFFECC-8704-4768-8F5C-7E484555258B}.Release|x86.ActiveCfg = Release|x86 24 | {DFCFFECC-8704-4768-8F5C-7E484555258B}.Release|x86.Build.0 = Release|x86 25 | EndGlobalSection 26 | GlobalSection(SolutionProperties) = preSolution 27 | HideSolutionNode = FALSE 28 | EndGlobalSection 29 | EndGlobal 30 | -------------------------------------------------------------------------------- /CosmopolitanWpf/SampleData/SampleDataSource/SampleDataSource.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Windows; 4 | 5 | namespace CosmopolitanWpf.SampleData.SampleDataSource 6 | { 7 | /// 8 | /// This class allow to download fake data from SampleDataSource.xaml. 9 | /// 10 | public class SampleDataSource : INotifyPropertyChanged 11 | { 12 | /// 13 | /// The Item Collection. 14 | /// 15 | private ItemCollection collection = new ItemCollection(); 16 | 17 | /// 18 | /// Event PropertyChanged. 19 | /// 20 | public event PropertyChangedEventHandler PropertyChanged; 21 | 22 | /// 23 | /// Gets the item collection. 24 | /// 25 | public ItemCollection Collection 26 | { 27 | get 28 | { 29 | return this.collection; 30 | } 31 | } 32 | 33 | /// 34 | /// On Property changed. 35 | /// 36 | /// The Property Name. 37 | protected virtual void OnPropertyChanged(string propertyName) 38 | { 39 | if (this.PropertyChanged != null) 40 | { 41 | this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName)); 42 | } 43 | } 44 | 45 | /// 46 | /// Initializes a new instance of the SampleDataSource class. 47 | /// 48 | public SampleDataSource() 49 | { 50 | try 51 | { 52 | Uri uri = new Uri("/CosmopolitanWpf;component/SampleData/SampleDataSource/SampleDataSource.xaml", UriKind.Relative); 53 | if (Application.GetResourceStream(uri) != null) 54 | { 55 | Application.LoadComponent(this, uri); 56 | } 57 | } 58 | catch (Exception) 59 | { 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("CosmopolitanWpf")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("Sébastien Alves")] 14 | [assembly: AssemblyProduct("CosmopolitanWpf")] 15 | [assembly: AssemblyCopyright("Copyright © sebastien-alves.fr 2011")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | //In order to begin building localizable applications, set 25 | //CultureYouAreCodingWith in your .csproj file 26 | //inside a . For example, if you are using US english 27 | //in your source files, set the to en-US. Then uncomment 28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in 29 | //the line below to match the UICulture setting in the project file. 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 36 | //(used if a resource is not found in the page, 37 | // or application resource dictionaries) 38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 39 | //(used if a resource is not found in the page, 40 | // app, or any theme specific resource dictionaries) 41 | )] 42 | 43 | 44 | // Version information for an assembly consists of the following four values: 45 | // 46 | // Major Version 47 | // Minor Version 48 | // Build Number 49 | // Revision 50 | // 51 | // You can specify all the values or you can default the Build and Revision Numbers 52 | // by using the '*' as shown below: 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | -------------------------------------------------------------------------------- /CosmopolitanWpf/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 21 | 23 | 24 | 27 | 28 | 29 | 30 | 32 | 34 | 38 | 42 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /CosmopolitanWpf/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using CosmopolitanWpf.Views; 4 | 5 | namespace CosmopolitanWpf 6 | { 7 | /// 8 | /// Interaction logic for MainWindow.xaml 9 | /// 10 | public partial class MainWindow : Window 11 | { 12 | /// 13 | /// The homePage. 14 | /// 15 | private Lazy homePage = new Lazy(() => new Home()); 16 | 17 | /// 18 | /// The corePage. 19 | /// 20 | private Lazy corePage = new Lazy(() => new Core()); 21 | 22 | /// 23 | /// The sdkPage. 24 | /// 25 | private Lazy sdkPage = new Lazy(() => new Sdk()); 26 | 27 | /// 28 | /// Initializes a new instance of the MainWindow class. 29 | /// 30 | public MainWindow() 31 | { 32 | InitializeComponent(); 33 | ContentFrame.Content = homePage.Value; 34 | ButtonHome.IsChecked = true; 35 | } 36 | 37 | /// 38 | /// On ButtonHome Click, set homePage to ContentFrame. 39 | /// 40 | /// The Sender. 41 | /// The RoutedEventArgs. 42 | private void ButtonHome_Click(object sender, RoutedEventArgs e) 43 | { 44 | if (ContentFrame.Content != homePage.Value) 45 | ContentFrame.Content = homePage.Value; 46 | 47 | ButtonCore.IsChecked = false; 48 | ButtonSDK.IsChecked = false; 49 | 50 | } 51 | 52 | /// 53 | /// On ButtonCore Click, set corePage to ContentFrame. 54 | /// 55 | /// The Sender. 56 | /// The RoutedEventArgs. 57 | private void ButtonCore_Click(object sender, RoutedEventArgs e) 58 | { 59 | if (ContentFrame.Content != corePage.Value) 60 | ContentFrame.Content = corePage.Value; 61 | 62 | ButtonHome.IsChecked = false; 63 | ButtonSDK.IsChecked = false; 64 | } 65 | 66 | /// 67 | /// On ButtonSDK Click, set sdkPage to ContentFrame. 68 | /// 69 | /// The Sender. 70 | /// The RoutedEventArgs. 71 | private void ButtonSDK_Click(object sender, RoutedEventArgs e) 72 | { 73 | if (ContentFrame.Content != sdkPage.Value) 74 | ContentFrame.Content = sdkPage.Value; 75 | 76 | ButtonHome.IsChecked = false; 77 | ButtonCore.IsChecked = false; 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Home.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 22 | 23 | 24 | 25 | 27 | 28 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 42 | 43 | 44 | Click navigation links above to see the look and feel for this theme. 45 | 46 | 47 | 48 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.450 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CosmopolitanWpf.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CosmopolitanWpf.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /CosmopolitanWpf/SampleData/SampleDataSource/SampleDataSource.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /CosmopolitanWpf/SampleData/SampleDataSource/Item.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel; 2 | 3 | namespace CosmopolitanWpf.SampleData.SampleDataSource 4 | { 5 | /// 6 | /// This class is use to simulate fake data. 7 | /// 8 | public class Item : INotifyPropertyChanged 9 | { 10 | /// 11 | /// The property1. 12 | /// 13 | private string property1 = string.Empty; 14 | 15 | /// 16 | /// the property2. 17 | /// 18 | private bool property2 = false; 19 | 20 | /// 21 | /// the property3. 22 | /// 23 | private string property3 = string.Empty; 24 | 25 | /// 26 | /// the property4. 27 | /// 28 | private string property4 = string.Empty; 29 | 30 | /// 31 | /// the property5. 32 | /// 33 | private string property5 = string.Empty; 34 | 35 | /// 36 | /// the property6. 37 | /// 38 | private string property6 = string.Empty; 39 | 40 | /// 41 | /// The Event PropertyChanged. 42 | /// 43 | public event PropertyChangedEventHandler PropertyChanged; 44 | 45 | /// 46 | /// Gets or sets Property1. 47 | /// 48 | public string Property1 49 | { 50 | get 51 | { 52 | return this.property1; 53 | } 54 | set 55 | { 56 | if (this.property1 != value) 57 | { 58 | this.property1 = value; 59 | this.OnPropertyChanged("Property1"); 60 | } 61 | } 62 | } 63 | 64 | /// 65 | /// Gets or sets Property2. 66 | /// 67 | public bool Property2 68 | { 69 | get 70 | { 71 | return this.property2; 72 | } 73 | set 74 | { 75 | if (this.property2 != value) 76 | { 77 | this.property2 = value; 78 | this.OnPropertyChanged("Property2"); 79 | } 80 | } 81 | } 82 | 83 | /// 84 | /// Gets or sets Property3. 85 | /// 86 | public string Property3 87 | { 88 | get 89 | { 90 | return this.property3; 91 | } 92 | set 93 | { 94 | if (this.property3 != value) 95 | { 96 | this.property3 = value; 97 | this.OnPropertyChanged("Property3"); 98 | } 99 | } 100 | } 101 | 102 | /// 103 | /// Gets or sets Property4. 104 | /// 105 | public string Property4 106 | { 107 | get 108 | { 109 | return this.property4; 110 | } 111 | set 112 | { 113 | if (this.property4 != value) 114 | { 115 | this.property4 = value; 116 | this.OnPropertyChanged("Property4"); 117 | } 118 | } 119 | } 120 | 121 | /// 122 | /// Gets or sets Property5. 123 | /// 124 | public string Property5 125 | { 126 | get 127 | { 128 | return this.property5; 129 | } 130 | set 131 | { 132 | if (this.property5 != value) 133 | { 134 | this.property5 = value; 135 | this.OnPropertyChanged("Property5"); 136 | } 137 | } 138 | } 139 | 140 | /// 141 | /// Gets or sets Property6. 142 | /// 143 | public string Property6 144 | { 145 | get 146 | { 147 | return this.property6; 148 | } 149 | set 150 | { 151 | if (this.property6 != value) 152 | { 153 | this.property6 = value; 154 | this.OnPropertyChanged("Property6"); 155 | } 156 | } 157 | } 158 | 159 | /// 160 | /// On Property changed. 161 | /// 162 | /// The Property Name. 163 | protected virtual void OnPropertyChanged(string propertyName) 164 | { 165 | if (this.PropertyChanged != null) 166 | { 167 | this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName)); 168 | } 169 | } 170 | } 171 | } 172 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /CosmopolitanWpf/CosmopolitanWpf.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {DFCFFECC-8704-4768-8F5C-7E484555258B} 9 | WinExe 10 | Properties 11 | CosmopolitanWpf 12 | CosmopolitanWpf 13 | v4.0 14 | 15 | 16 | 512 17 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 18 | 4 19 | SAK 20 | SAK 21 | SAK 22 | SAK 23 | 24 | 25 | x86 26 | true 27 | full 28 | false 29 | bin\Debug\ 30 | DEBUG;TRACE 31 | prompt 32 | 4 33 | 34 | 35 | x86 36 | pdbonly 37 | true 38 | bin\Release\ 39 | TRACE 40 | prompt 41 | 4 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 4.0 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | MSBuild:Compile 62 | Designer 63 | 64 | 65 | 66 | 67 | 68 | Core.xaml 69 | Code 70 | 71 | 72 | Home.xaml 73 | 74 | 75 | Sdk.xaml 76 | 77 | 78 | MSBuild:Compile 79 | Designer 80 | 81 | 82 | MSBuild:Compile 83 | Designer 84 | 85 | 86 | MSBuild:Compile 87 | Designer 88 | 89 | 90 | MSBuild:Compile 91 | Designer 92 | 93 | 94 | MSBuild:Compile 95 | Designer 96 | 97 | 98 | MSBuild:Compile 99 | Designer 100 | 101 | 102 | App.xaml 103 | Code 104 | 105 | 106 | MainWindow.xaml 107 | Code 108 | 109 | 110 | MSBuild:Compile 111 | Designer 112 | 113 | 114 | Designer 115 | MSBuild:Compile 116 | 117 | 118 | MSBuild:Compile 119 | Designer 120 | 121 | 122 | MSBuild:Compile 123 | Designer 124 | 125 | 126 | 127 | 128 | Code 129 | 130 | 131 | True 132 | True 133 | Resources.resx 134 | 135 | 136 | True 137 | Settings.settings 138 | True 139 | 140 | 141 | ResXFileCodeGenerator 142 | Resources.Designer.cs 143 | 144 | 145 | 146 | SettingsSingleFileGenerator 147 | Settings.Designer.cs 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 163 | -------------------------------------------------------------------------------- /BuildProcessTemplates/UpgradeTemplate.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | [New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }] 21 | 22 | 23 | 24 | [Microsoft.TeamFoundation.Build.Workflow.Activities.ToolPlatform.Auto] 25 | [False] 26 | [False] 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | [Microsoft.TeamFoundation.VersionControl.Client.RecursionType.OneLevel] 37 | [Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal] 38 | 39 | 40 | 41 | All 42 | Assembly references and imported namespaces serialized as XML namespaces 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | 235 | # RIA/Silverlight projects 236 | Generated_Code/ 237 | 238 | # Backup & report files from converting an old project file 239 | # to a newer Visual Studio version. Backup files are not needed, 240 | # because we have git ;-) 241 | _UpgradeReport_Files/ 242 | Backup*/ 243 | UpgradeLog*.XML 244 | UpgradeLog*.htm 245 | ServiceFabricBackup/ 246 | *.rptproj.bak 247 | 248 | # SQL Server files 249 | *.mdf 250 | *.ldf 251 | *.ndf 252 | 253 | # Business Intelligence projects 254 | *.rdl.data 255 | *.bim.layout 256 | *.bim_*.settings 257 | *.rptproj.rsuser 258 | *- Backup*.rdl 259 | 260 | # Microsoft Fakes 261 | FakesAssemblies/ 262 | 263 | # GhostDoc plugin setting file 264 | *.GhostDoc.xml 265 | 266 | # Node.js Tools for Visual Studio 267 | .ntvs_analysis.dat 268 | node_modules/ 269 | 270 | # Visual Studio 6 build log 271 | *.plg 272 | 273 | # Visual Studio 6 workspace options file 274 | *.opt 275 | 276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 277 | *.vbw 278 | 279 | # Visual Studio LightSwitch build output 280 | **/*.HTMLClient/GeneratedArtifacts 281 | **/*.DesktopClient/GeneratedArtifacts 282 | **/*.DesktopClient/ModelManifest.xml 283 | **/*.Server/GeneratedArtifacts 284 | **/*.Server/ModelManifest.xml 285 | _Pvt_Extensions 286 | 287 | # Paket dependency manager 288 | .paket/paket.exe 289 | paket-files/ 290 | 291 | # FAKE - F# Make 292 | .fake/ 293 | 294 | # JetBrains Rider 295 | .idea/ 296 | *.sln.iml 297 | 298 | # CodeRush personal settings 299 | .cr/personal 300 | 301 | # Python Tools for Visual Studio (PTVS) 302 | __pycache__/ 303 | *.pyc 304 | 305 | # Cake - Uncomment if you are using it 306 | # tools/** 307 | # !tools/packages.config 308 | 309 | # Tabs Studio 310 | *.tss 311 | 312 | # Telerik's JustMock configuration file 313 | *.jmconfig 314 | 315 | # BizTalk build output 316 | *.btp.cs 317 | *.btm.cs 318 | *.odx.cs 319 | *.xsd.cs 320 | 321 | # OpenCover UI analysis results 322 | OpenCover/ 323 | 324 | # Azure Stream Analytics local run output 325 | ASALocalRun/ 326 | 327 | # MSBuild Binary and Structured Log 328 | *.binlog 329 | 330 | # NVidia Nsight GPU debugger configuration file 331 | *.nvuser 332 | 333 | # MFractors (Xamarin productivity tool) working folder 334 | .mfractor/ 335 | 336 | # Local History for Visual Studio 337 | .localhistory/ 338 | 339 | # BeatPulse healthcheck temp database 340 | healthchecksdb -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Sdk.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 37 | 44 | 45 | 47 | 49 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 62 | 65 | 67 | 68 | 69 | 70 | 71 | 76 | 77 | 78 | 81 | 85 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 107 | 108 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 131 | 132 | 136 | 154 | 156 | 160 | 161 | 165 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /CosmopolitanWpf/Views/Core.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 10 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 30 | 33 | 37 | 42 | 43 | 44 | 49 | 53 | 55 | 56 | 57 | 58 | 59 |