Share:

MessageBox API | WPF | C# | Saatody | Amit Padhiyar

MessageBox Class API

Standard message box for normal, error, warning, and success types with some options OK, OKCancel, YesNo, YesNoCancel and some results None, Ok, Yes, No, Cancel. 

Constructure 

This is one and default constructor.

Syntax

public MessageBox()

Properties

Syntax

public MessageBoxTypes Type {set; get;}
public string Description {set; get;}
public string Code {set; get;}
public MessageBoxOptions Option {set; get;}
public MessageBoxResults Result {set; get;}

Methods

System

public static MessageBoxResults Show(MessageBox MessageBox)
public static MessageBoxResults Show(Window Owner, string Title, MessageBoxTypes Type, string Description, string Code, MessageBoxOptions Option)
public static MessageBoxResults Show(Window Owner, MessageModel Model, MessageBoxOptions Option)

MessageBoxOptions enum API

MessageBoxResults enum API

MessageBoxTypes enum API

MessageModel Class API

Properties

Syntax

public string Title = null;
public MessageTypes Type = MessageTypes.Normal;
public string Description = null;
public string Code = null;

MessageTypes enum API

Example of MessageBox

GUI.MessageBox.Show(OwnerWindow, new MessageModel()
{
Title = "",
Type = MessageTypes.Error,
Description = "",
Code = "C000029"
}, GUI.MessageBoxOptions.OK);

 

Comments

Popular posts from this blog

Get Color From Pixel C# WPF | Saatody | Amit Padhiyar

Basic Audio Operations With MP3 And Wave Files Using NAudio C#

Create Drag And Drop Operation Between DevExpress GridControl And Custom WPF UI | Saatody | Amit Padhiyar