├── App.xaml ├── App.xaml.cs ├── Fonts ├── BarlowCondensed-Regular.ttf └── Roboto-Regular.ttf ├── Images ├── closed.png ├── open.png ├── shutdown_def.png └── shutdown_mo.png ├── LICENSE ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── README.md ├── Services ├── IWindowService.cs └── WindowService.cs ├── Source Code └── MVVM Window App.rar ├── Utilities └── RelayCommand.cs ├── View ├── NewWindow.xaml └── NewWindow.xaml.cs └── ViewModel └── MainViewModel.cs /App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 12 | 13 | 16 | 17 | 70 | 71 | 124 | 125 | 144 | 145 | 164 | 165 | 185 | 186 | 204 | 205 | 224 | 225 | 244 | 245 | 246 | 247 | 250 | 251 | 254 | 255 | 308 | 309 | 310 | 311 | 312 | -------------------------------------------------------------------------------- /App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace MVVM_Window_App 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Fonts/BarlowCondensed-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Fonts/BarlowCondensed-Regular.ttf -------------------------------------------------------------------------------- /Fonts/Roboto-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Fonts/Roboto-Regular.ttf -------------------------------------------------------------------------------- /Images/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Images/closed.png -------------------------------------------------------------------------------- /Images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Images/open.png -------------------------------------------------------------------------------- /Images/shutdown_def.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Images/shutdown_def.png -------------------------------------------------------------------------------- /Images/shutdown_mo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CSharpDesignPro/WPF---Open-a-New-Window-in-MVVM/8336191d3065c6c6d04f85b653af2ddb2bdfc1d6/Images/shutdown_mo.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Arun Mutharasu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |