All Books 93 Stack Overflow 82 Daily Thoughts 78 Ionic 61 Miscellaneou$ 60 Quick tips 43 CodeProject 36 NodeJS 27 Programming 22 JavaScript 18

Custom YES/NO dialog with DialogResult in WPF

A simple example of how to make a custom YES/NO dialog with DialogResult in WPF. Freely (as in beer) available code is on Github: https://github.com/Hitman666/CustomYesNoDialogWPF. The breakdown is that you…

How to build a font viewer application in WPF without writing any C# code

TL;DR You can download from Github the demo application (zipped exe) or the whole source code project (Visual Studio project solution), or continue reading to see how it…

Maximizing WPF Window to second monitor

So, if you have this in the code behind: if (System.Windows.Forms.Screen.AllScreens.Length >= Config.ScreenNumber) { System.Drawing.Rectangle screenBounds = System.Windows.Forms.Screen.AllScreens[Config.ScreenNumber – 1].Bounds; this.Left = screenBounds.Left; this.Top = screenBounds.Top; } And…