Is there a standard message box in WPF, like WinForms' System.Windows.Forms.MessageBox.Show()
, or should I use the WinForms message box?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
If you want to have your own nice looking wpf MessageBox: Create new Wpf Windows
here is xaml :
for cs of this file :
then create a class to use this :
now you can create your message box like this:
copy this to App.xaml inside
-------------------------------
My Refrence : https://www.red-gate.com/simple-talk/dotnet/net-development/using-c-to-create-powershell-cmdlets-the-basics/
for logic how can i make my own messagebox
In WPF it seems this code,
is replaced with:
The WPF equivalent would be the
System.Windows.MessageBox
. It has a quite similar interface, but uses other enumerations for parameters and return value.