Click here to Skip to main content
Click here to Skip to main content
Go to top

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.");
};
 
confirmMessage.Show();
For more example code, please see the code section for the control.
 
Example Screenshot:
 

 

License

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

Share

About the Author

Zorayr Khalapyan

United States United States
No Biography provided

Comments and Discussions

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

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

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

| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 24 Feb 2011
Article Copyright 2011 by Zorayr Khalapyan
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid