It is a window that allows customization of the non-client area, has a kiosk mode and has a mechanism for displaying modal content
|
|
|
|
Markup code in CustomWindowSample.xaml
![Custom Window V2 Markup Code](CustomWindow-WPF/Images/CustomWindow%20v2%20markup%20code.png)
Code behind
public partial class CustomWindowSample : CustomWindow
{
public CustomWindowSample()
{
InitializeComponent();
}
private void LikeButton_Click(object sender, RoutedEventArgs e)
{
if (sender is Button button)
{
button.Content = button.Content.ToString() == "\uE00B"
? "\uE006"
: "\uE00B";
}
}
}