├── Previews ├── Dark.png ├── Light.png └── Original.png ├── ModernWpf.MessageBox ├── Extensions │ ├── SymbolGlyphExtensions.cs │ ├── SymbolExtensions.cs │ └── MessageBoxImageExtensions.cs ├── AssemblyInfo.cs ├── LocalizedDialogCommands.cs ├── ModernWpf.MessageBox.csproj ├── MessageBoxWindow.xaml.cs ├── MessageBoxWindow.xaml ├── MessageBox.cs └── SymbolGlyph.cs ├── ModernWpf.MessageBox.Test ├── ModernWpf.MessageBox.Test.csproj ├── AssemblyInfo.cs ├── App.xaml └── App.xaml.cs ├── README.md ├── LICENSE ├── ModernWpf.MessageBox.sln └── .gitignore /Previews/Dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lixkote/FluentMsgBox/HEAD/Previews/Dark.png -------------------------------------------------------------------------------- /Previews/Light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lixkote/FluentMsgBox/HEAD/Previews/Light.png -------------------------------------------------------------------------------- /Previews/Original.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lixkote/FluentMsgBox/HEAD/Previews/Original.png -------------------------------------------------------------------------------- /ModernWpf.MessageBox/Extensions/SymbolGlyphExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace ModernWpf.Extensions { 2 | internal static class SymbolGlyphExtensions { 3 | public static string ToGlyph(this SymbolGlyph symbol) => 4 | char.ConvertFromUtf32((int)symbol); 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/Extensions/SymbolExtensions.cs: -------------------------------------------------------------------------------- 1 | using ModernWpf.Controls; 2 | 3 | namespace ModernWpf.Extensions { 4 | internal static class SymbolExtensions { 5 | public static string ToGlyph(this Symbol symbol) => 6 | char.ConvertFromUtf32((int)symbol); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox.Test/ModernWpf.MessageBox.Test.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WinExe 5 | True 6 | 7 | net462;net472;netcoreapp31;net7.0-windows10.0.19041.0 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FluentMsgBox 2 | Drop-In replacement for WPF MessageBox. 3 | Has Windows 11/WinUi3 Styles applied to it. 4 | Made for Startify. 5 | Based on: https://github.com/OpenByteDev/ModernWpf.MessageBox 6 | 7 | ## Previews: 8 | ![MsgBox Screenshot](https://github.com/Lixkote/FluentMsgBox/blob/main/Previews/Dark.png) 9 | ![MsgBox Screenshot](https://github.com/Lixkote/FluentMsgBox/blob/main/Previews/Light.png) 10 | 11 | ## Original WPF MessageBox for reference 12 | ![MsgBox Screenshot](https://github.com/Lixkote/FluentMsgBox/blob/main/Previews/Original.png) 13 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox.Test/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 5 | //(used if a resource is not found in the page, 6 | // or application resource dictionaries) 7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 8 | //(used if a resource is not found in the page, 9 | // app, or any theme specific resource dictionaries) 10 | )] 11 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/Extensions/MessageBoxImageExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | 4 | namespace ModernWpf.Extensions { 5 | internal static class MessageBoxImageExtensions { 6 | public static SymbolGlyph ToSymbol(this MessageBoxImage image) { 7 | return image switch { 8 | MessageBoxImage.Error => SymbolGlyph.Error, 9 | MessageBoxImage.Information => SymbolGlyph.Info, 10 | MessageBoxImage.Warning => SymbolGlyph.Warning, 11 | MessageBoxImage.Question => SymbolGlyph.StatusCircleQuestionMark, 12 | MessageBoxImage.None => (SymbolGlyph)0x2007, 13 | _ => throw new NotSupportedException(), 14 | }; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox.Test/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Lixkote 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 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/LocalizedDialogCommands.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace ModernWpf { 5 | internal static class LocalizedDialogCommands { 6 | public static string GetString(DialogBoxCommand command) { 7 | return Marshal.PtrToStringAuto(MB_GetString((int)command))?.TrimStart('&')!; 8 | } 9 | 10 | /// 11 | /// Returns strings for standard message box buttons. 12 | /// 13 | /// The id of the string to return. These are identified by the ID* values assigned to the predefined buttons. 14 | /// The string, or NULL if not found 15 | [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 16 | private static extern IntPtr MB_GetString(int strId); 17 | 18 | /// 19 | /// Represents possible dialogbox command id values by the MB_GetString function. 20 | /// 21 | public enum DialogBoxCommand : int { 22 | IDOK = 0, 23 | IDCANCEL = 1, 24 | IDABORT = 2, 25 | IDRETRY = 3, 26 | IDIGNORE = 4, 27 | IDYES = 5, 28 | IDNO = 6, 29 | IDCLOSE = 7, 30 | IDHELP = 8, 31 | IDTRYAGAIN = 9, 32 | IDCONTINUE = 10 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30524.135 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernWpf.MessageBox", "ModernWpf.MessageBox\ModernWpf.MessageBox.csproj", "{35816B23-A5DE-4F89-987C-8E544712C8F1}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModernWpf.MessageBox.Test", "ModernWpf.MessageBox.Test\ModernWpf.MessageBox.Test.csproj", "{4C7B25D1-91CC-438B-AF6A-5C7FCB94AB84}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {35816B23-A5DE-4F89-987C-8E544712C8F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {35816B23-A5DE-4F89-987C-8E544712C8F1}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {35816B23-A5DE-4F89-987C-8E544712C8F1}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {35816B23-A5DE-4F89-987C-8E544712C8F1}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {4C7B25D1-91CC-438B-AF6A-5C7FCB94AB84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {4C7B25D1-91CC-438B-AF6A-5C7FCB94AB84}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {4C7B25D1-91CC-438B-AF6A-5C7FCB94AB84}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {4C7B25D1-91CC-438B-AF6A-5C7FCB94AB84}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {08E9DC5C-D9CB-41CE-B19E-DF0C2F512D43} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox.Test/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | using ModernWpf; 3 | using ModernWpf.Controls; 4 | 5 | namespace ModernWpfMessageBox.Test { 6 | public partial class App : Application { 7 | protected override void OnStartup(StartupEventArgs e) { 8 | base.OnStartup(e); 9 | 10 | var title = "Some title"; 11 | var message = "This is a looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong test text!"; 12 | 13 | // MessageBox.Show(message, title, MessageBoxButton.YesNoCancel, MessageBoxImage.Question); 14 | // MessageBox.Show("adawdawda", title, MessageBoxButton.YesNoCancel, MessageBoxImage.Question); 15 | ShutdownMode = ShutdownMode.OnExplicitShutdown; 16 | // ModernWpf.MessageBox.Show("This is a test text!", "Some title", MessageBoxButton.YesNoCancel, MessageBoxImage.Question); 17 | // ModernWpf.MessageBox.Show(message, title, MessageBoxButton.YesNoCancel, MessageBoxImage.Question); 18 | ModernWpf.MessageBox.Show("redadwada", null, MessageBoxButton.OK, Symbol.Admin); 19 | ModernWpf.MessageBox.Show("redadwada", null, MessageBoxButton.OK, SymbolGlyph.Airplane); 20 | ModernWpf.MessageBox.Show("redadwada", null, MessageBoxButton.OK, SymbolGlyph.Airplane, MessageBoxResult.OK); 21 | ModernWpf.MessageBox.ShowAsync(message, title, MessageBoxButton.YesNoCancel, MessageBoxImage.Question).GetAwaiter().GetResult(); 22 | ModernWpf.MessageBox.ShowAsync(message, title, MessageBoxButton.YesNoCancel, MessageBoxImage.Hand, MessageBoxResult.Cancel).GetAwaiter().GetResult(); 23 | ModernWpf.MessageBox.EnableLocalization = false; 24 | ModernWpf.MessageBox.ShowAsync("Press Alt and you should see underscores!", null, MessageBoxButton.YesNoCancel, MessageBoxImage.Hand).GetAwaiter().GetResult(); 25 | Shutdown(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/ModernWpf.MessageBox.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | OpenByte 5 | OpenByte 6 | ModernWpf.MessageBox 7 | ModernWpf.MessageBox 8 | An alternative to System.Windows.MessageBox using ModernWpfUI windows. 9 | MIT 10 | https://github.com/OpenByteDev/ModernWpf.MessageBox 11 | https://github.com/OpenByteDev/ModernWpf.MessageBox 12 | git 13 | WPF XAML UI Theme Controls Fluent Modern Metro WinUI 14 | 0.5.1 15 | 16 | 17 | 18 | ModernWpf 19 | Library 20 | net462;net472;netcoreapp31;net7.0-windows10.0.19041.0 21 | 9.0 22 | en-US 23 | True 24 | True 25 | Enable 26 | True 27 | True 28 | Preview 29 | 30 | 31 | 32 | True 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 2.1.0 43 | 44 | 45 | 46 | 47 | 48 | 2.1.0 49 | 50 | 51 | 52 | 53 | 54 | 2.1.0 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/MessageBoxWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows; 3 | using MicaWPF.Controls; 4 | using DialogBoxCommand = ModernWpf.LocalizedDialogCommands.DialogBoxCommand; 5 | 6 | namespace ModernWpf { 7 | public partial class MessageBoxWindow : Window { 8 | public MessageBoxResult? Result = null; 9 | public MessageBoxWindow(string messageBoxText, string caption, MessageBoxButton button, string? symbolGlyph) { 10 | InitializeComponent(); 11 | messageText.Text = messageBoxText; 12 | Title = caption; 13 | TitleBlock.Text = caption; 14 | 15 | switch (button) { 16 | case MessageBoxButton.OK: 17 | okButton.Visibility = Visibility.Visible; 18 | 19 | if (MessageBox.EnableLocalization) { 20 | okButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDOK); 21 | } 22 | 23 | okButton.Focus(); 24 | break; 25 | case MessageBoxButton.OKCancel: 26 | okButton.Visibility = Visibility.Visible; 27 | cancelButton.Visibility = Visibility.Visible; 28 | cancelButton.IsCancel = true; 29 | 30 | if (MessageBox.EnableLocalization) { 31 | okButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDOK); 32 | cancelButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDCANCEL); 33 | } 34 | 35 | okButton.Focus(); 36 | break; 37 | case MessageBoxButton.YesNo: 38 | yesButton.Visibility = Visibility.Visible; 39 | noButton.Visibility = Visibility.Visible; 40 | 41 | if (MessageBox.EnableLocalization) { 42 | yesButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDYES); 43 | noButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDNO); 44 | } 45 | 46 | yesButton.Focus(); 47 | break; 48 | case MessageBoxButton.YesNoCancel: 49 | yesButton.Visibility = Visibility.Visible; 50 | noButton.Visibility = Visibility.Visible; 51 | cancelButton.Visibility = Visibility.Visible; 52 | cancelButton.IsCancel = true; 53 | 54 | if (MessageBox.EnableLocalization) { 55 | yesButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDYES); 56 | noButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDNO); 57 | cancelButton.Content = LocalizedDialogCommands.GetString(DialogBoxCommand.IDCANCEL); 58 | } 59 | 60 | yesButton.Focus(); 61 | break; 62 | } 63 | 64 | okButton.Click += OkButton_Click; 65 | cancelButton.Click += CancelButton_Click; 66 | yesButton.Click += YesButton_Click; 67 | noButton.Click += NoButton_Click; 68 | 69 | if (symbolGlyph is string glyph) { 70 | symbolIcon.Visibility = Visibility.Visible; 71 | symbolIcon.Glyph = glyph; 72 | } 73 | } 74 | 75 | private void OkButton_Click(object sender, RoutedEventArgs e) => Close(MessageBoxResult.OK); 76 | private void CancelButton_Click(object sender, RoutedEventArgs e) => Close(MessageBoxResult.Cancel); 77 | private void YesButton_Click(object sender, RoutedEventArgs e) => Close(MessageBoxResult.Yes); 78 | private void NoButton_Click(object sender, RoutedEventArgs e) => Close(MessageBoxResult.No); 79 | 80 | public void Close(MessageBoxResult result) { 81 | Result = result; 82 | Close(); 83 | } 84 | 85 | protected override void OnSourceInitialized(EventArgs e) { 86 | base.OnSourceInitialized(e); 87 | 88 | InvalidateMeasure(); 89 | } 90 | 91 | private void CustomTitleBar_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) 92 | { 93 | this.DragMove(); 94 | } 95 | 96 | private void CustomTitleBar_Loaded(object sender, RoutedEventArgs e) 97 | { 98 | this.MouseLeftButtonDown += delegate { DragMove(); }; 99 | } 100 | 101 | private void TitlebarCloseButton_Click(object sender, RoutedEventArgs e) 102 | { 103 | this.Close(); 104 | } 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /.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 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.vspscc 94 | *.vssscc 95 | .builds 96 | *.pidb 97 | *.svclog 98 | *.scc 99 | 100 | # Chutzpah Test files 101 | _Chutzpah* 102 | 103 | # Visual C++ cache files 104 | ipch/ 105 | *.aps 106 | *.ncb 107 | *.opendb 108 | *.opensdf 109 | *.sdf 110 | *.cachefile 111 | *.VC.db 112 | *.VC.VC.opendb 113 | 114 | # Visual Studio profiler 115 | *.psess 116 | *.vsp 117 | *.vspx 118 | *.sap 119 | 120 | # Visual Studio Trace Files 121 | *.e2e 122 | 123 | # TFS 2012 Local Workspace 124 | $tf/ 125 | 126 | # Guidance Automation Toolkit 127 | *.gpState 128 | 129 | # ReSharper is a .NET coding add-in 130 | _ReSharper*/ 131 | *.[Rr]e[Ss]harper 132 | *.DotSettings.user 133 | 134 | # TeamCity is a build add-in 135 | _TeamCity* 136 | 137 | # DotCover is a Code Coverage Tool 138 | *.dotCover 139 | 140 | # AxoCover is a Code Coverage Tool 141 | .axoCover/* 142 | !.axoCover/settings.json 143 | 144 | # Coverlet is a free, cross platform Code Coverage Tool 145 | coverage*.json 146 | coverage*.xml 147 | coverage*.info 148 | 149 | # Visual Studio code coverage results 150 | *.coverage 151 | *.coveragexml 152 | 153 | # NCrunch 154 | _NCrunch_* 155 | .*crunch*.local.xml 156 | nCrunchTemp_* 157 | 158 | # MightyMoose 159 | *.mm.* 160 | AutoTest.Net/ 161 | 162 | # Web workbench (sass) 163 | .sass-cache/ 164 | 165 | # Installshield output folder 166 | [Ee]xpress/ 167 | 168 | # DocProject is a documentation generator add-in 169 | DocProject/buildhelp/ 170 | DocProject/Help/*.HxT 171 | DocProject/Help/*.HxC 172 | DocProject/Help/*.hhc 173 | DocProject/Help/*.hhk 174 | DocProject/Help/*.hhp 175 | DocProject/Help/Html2 176 | DocProject/Help/html 177 | 178 | # Click-Once directory 179 | publish/ 180 | 181 | # Publish Web Output 182 | *.[Pp]ublish.xml 183 | *.azurePubxml 184 | # Note: Comment the next line if you want to checkin your web deploy settings, 185 | # but database connection strings (with potential passwords) will be unencrypted 186 | *.pubxml 187 | *.publishproj 188 | 189 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 190 | # checkin your Azure Web App publish settings, but sensitive information contained 191 | # in these scripts will be unencrypted 192 | PublishScripts/ 193 | 194 | # NuGet Packages 195 | *.nupkg 196 | # NuGet Symbol Packages 197 | *.snupkg 198 | # The packages folder can be ignored because of Package Restore 199 | **/[Pp]ackages/* 200 | # except build/, which is used as an MSBuild target. 201 | !**/[Pp]ackages/build/ 202 | # Uncomment if necessary however generally it will be regenerated when needed 203 | #!**/[Pp]ackages/repositories.config 204 | # NuGet v3's project.json files produces more ignorable files 205 | *.nuget.props 206 | *.nuget.targets 207 | 208 | # Microsoft Azure Build Output 209 | csx/ 210 | *.build.csdef 211 | 212 | # Microsoft Azure Emulator 213 | ecf/ 214 | rcf/ 215 | 216 | # Windows Store app package directories and files 217 | AppPackages/ 218 | BundleArtifacts/ 219 | Package.StoreAssociation.xml 220 | _pkginfo.txt 221 | *.appx 222 | *.appxbundle 223 | *.appxupload 224 | 225 | # Visual Studio cache files 226 | # files ending in .cache can be ignored 227 | *.[Cc]ache 228 | # but keep track of directories ending in .cache 229 | !?*.[Cc]ache/ 230 | 231 | # Others 232 | ClientBin/ 233 | ~$* 234 | *~ 235 | *.dbmdl 236 | *.dbproj.schemaview 237 | *.jfm 238 | *.pfx 239 | *.publishsettings 240 | orleans.codegen.cs 241 | 242 | # Including strong name files can present a security risk 243 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 244 | #*.snk 245 | 246 | # Since there are multiple workflows, uncomment next line to ignore bower_components 247 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 248 | #bower_components/ 249 | 250 | # RIA/Silverlight projects 251 | Generated_Code/ 252 | 253 | # Backup & report files from converting an old project file 254 | # to a newer Visual Studio version. Backup files are not needed, 255 | # because we have git ;-) 256 | _UpgradeReport_Files/ 257 | Backup*/ 258 | UpgradeLog*.XML 259 | UpgradeLog*.htm 260 | ServiceFabricBackup/ 261 | *.rptproj.bak 262 | 263 | # SQL Server files 264 | *.mdf 265 | *.ldf 266 | *.ndf 267 | 268 | # Business Intelligence projects 269 | *.rdl.data 270 | *.bim.layout 271 | *.bim_*.settings 272 | *.rptproj.rsuser 273 | *- [Bb]ackup.rdl 274 | *- [Bb]ackup ([0-9]).rdl 275 | *- [Bb]ackup ([0-9][0-9]).rdl 276 | 277 | # Microsoft Fakes 278 | FakesAssemblies/ 279 | 280 | # GhostDoc plugin setting file 281 | *.GhostDoc.xml 282 | 283 | # Node.js Tools for Visual Studio 284 | .ntvs_analysis.dat 285 | node_modules/ 286 | 287 | # Visual Studio 6 build log 288 | *.plg 289 | 290 | # Visual Studio 6 workspace options file 291 | *.opt 292 | 293 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 294 | *.vbw 295 | 296 | # Visual Studio LightSwitch build output 297 | **/*.HTMLClient/GeneratedArtifacts 298 | **/*.DesktopClient/GeneratedArtifacts 299 | **/*.DesktopClient/ModelManifest.xml 300 | **/*.Server/GeneratedArtifacts 301 | **/*.Server/ModelManifest.xml 302 | _Pvt_Extensions 303 | 304 | # Paket dependency manager 305 | .paket/paket.exe 306 | paket-files/ 307 | 308 | # FAKE - F# Make 309 | .fake/ 310 | 311 | # CodeRush personal settings 312 | .cr/personal 313 | 314 | # Python Tools for Visual Studio (PTVS) 315 | __pycache__/ 316 | *.pyc 317 | 318 | # Cake - Uncomment if you are using it 319 | # tools/** 320 | # !tools/packages.config 321 | 322 | # Tabs Studio 323 | *.tss 324 | 325 | # Telerik's JustMock configuration file 326 | *.jmconfig 327 | 328 | # BizTalk build output 329 | *.btp.cs 330 | *.btm.cs 331 | *.odx.cs 332 | *.xsd.cs 333 | 334 | # OpenCover UI analysis results 335 | OpenCover/ 336 | 337 | # Azure Stream Analytics local run output 338 | ASALocalRun/ 339 | 340 | # MSBuild Binary and Structured Log 341 | *.binlog 342 | 343 | # NVidia Nsight GPU debugger configuration file 344 | *.nvuser 345 | 346 | # MFractors (Xamarin productivity tool) working folder 347 | .mfractor/ 348 | 349 | # Local History for Visual Studio 350 | .localhistory/ 351 | 352 | # BeatPulse healthcheck temp database 353 | healthchecksdb 354 | 355 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 356 | MigrationBackup/ 357 | 358 | # Ionide (cross platform F# VS Code tools) working folder 359 | .ionide/ 360 | 361 | # Fody - auto-generated XML schema 362 | FodyWeavers.xsd 363 | -------------------------------------------------------------------------------- /ModernWpf.MessageBox/MessageBoxWindow.xaml: -------------------------------------------------------------------------------- 1 | 18 | 19 | 20 | 21 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 37 | 38 | 39 | 40 | 42 | 44 | 46 | 48 | 50 | 52 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 |