Create Custom Dialog Box In WPF | Saatody | Amit Padhiyar
Making a custom dialog box in WPF which is too easy. It is secure and can't focusable its own window until it opend. MainWindow.xaml <Window x:Class="WpfApp10.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:WpfApp10" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Grid> <Button Content="Button" HorizontalAlignment="Left" Margin="459,85,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/> </Grid> </Window> MainWindow.xaml.cs using System; using System