Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

jens_gebert@amat.com
jens_gebert@amat.com
Dialog with Yes No Buttons Posted: Apr 01, 2010
 

Hi,


I tried to generate a Dialog with confirmation buttons yes and no, but the

enum only permitts one button.

I succeeded to have two buttons, if I put buttons in the xaml code of the dialog,

but this is not very useful.

Is there a possibility to set the buttons with c# code and

how do I get the information, what button the user have pressed?

 

myDialog.ButtonsVisibility = Visibility.Visible;

myDialog.Buttons = DialogButtons.Yes;


Thank for help!


Regards

Jens

 
 
dan
dan
RE: Dialog with Yes No Buttons Posted: Apr 10, 2010
 

Hi,


To enable more than one button you can use the | operator, such as:


myDialog.Buttons = DialogButtons.Yes | DialogButtons.No;


To determine which button was clicked use the myDialog.Result property.


Thanks!