Welcome to foxlearn
In this tutorial, I'll show you how to design a message box using the material skin.
As you know, Material Skin is an open source library that helps you to design an awesome UI
To create a material form, you need to change the inheritance from your window form to the material form
then set the skin for the material form
Now, We will create a YesNo MessageBox form, then set the skin for the YesNo MessageBox form
You can create a message property to update or get the message content from your material message box
You can also copy the Yes No MessageBox form into the Ok MessageBox form
then edit the layout for the Ok MessageBox form
You can create a material message box to display the YesNo MessageBox or Ok MessageBox
To display the message box correctly, you just need to check the MessageBoxButton
then open the form corresponding to the condition
From your visual studio toolbox, drag a material button to your material form
then change the button title to YesNo, the same for the OK button
As you can see, using a material messagebox is similar to using a messagebox in window form
Thank you for watching this video