Click here to Skip to main content
13,042,819 members (63,662 online)
Click here to Skip to main content
Add your own
alternative version


5 bookmarked
Posted 24 Feb 2011

Using Silverlight Message Boxes with Icons - Error, Info, Confirm, Text, and Combo Input

, 24 Feb 2011
Rate this:
Please Sign up or sign in to vote.
Tutorial of easy to use Silverlight message boxes hosted on CodePlex.
If you ever tried to make custom Silverlight message boxes that look cooler and more presentable than the default message box support that ships with Silverlight, you know what a hassle it is. Below I will give you a tutorial of how to use Simple but Cool Silverlight Message Boxes to add production quality message boxes to your Silverlight application.

Step-by-Step Instructions: How to Integrate with an Existing Project

Please follow the below steps to correctly utilize the Silverlight Message Boxes in your project:

  1. Download the .DLL library file from Releases.
  2. Once saved on a local computer, right click on the .DLL file and select properties. Here click on Unblock option.
  3. Now at your Silverlight project, right click on references and select Add Reference
  4. Go to the Browse tab, and locate the downloaded and unblocked .DLL file.
  5. Once the library file was successfully referenced in the project, put using SilverlightMessageBoxLibrary; statement on top of each class where the message boxes will be used.
  6. Follow the code samples at Example Code for further instructions.

//Info Message.
Message.InfoMessage("Hello! I am here to help you!");
//Error Message.
Message.ErrorMessage("Darn! Something went wrong.");
//Confirmation with handlers.
CustomMessage confirmMessage = new CustomMessage("Do you like me?", CustomMessage.MessageType.Confirm);
confirmMessage.OKButton.Click += (obj, args) =>
    Message.InfoMessage("Thanks. You make me blush.");

For more example code, please see the code section for the control.

Example Screenshot:


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Zorayr Khalapyan
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralRe: True, true... Pin
DrABELL24-Feb-11 14:02
memberDrABELL24-Feb-11 14:02 
GeneralconfirmMessage.OKButton.Click, the click event is not availa... Pin
vikas45645616-Dec-11 5:14
membervikas45645616-Dec-11 5:14 
GeneralReason for my vote of 5 I like this Silverlight solution! Pin
DrABELL24-Feb-11 13:05
memberDrABELL24-Feb-11 13:05 
GeneralRe: Yes. If you look in the web, there are multiple tutorials on... Pin
Zorayr Khalapyan24-Feb-11 13:08
memberZorayr Khalapyan24-Feb-11 13:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170713.1 | Last Updated 24 Feb 2011
Article Copyright 2011 by Zorayr Khalapyan
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid