This is a migrated thread and some comments may be shown as answers.

Confirm with yes no buttons

1 Answer 154 Views
Window
This is a migrated thread and some comments may be shown as answers.
normalham2
Top achievements
Rank 1
normalham2 asked on 03 Sep 2009, 09:22 PM

I'm sure this has been asked a million times, but I did a yes no search and got nothing.  Anyway, I'm sorry.

I just want the buttons to be Yes and No buttons, and of course the header and content as simple text.  But I'm still getting OK and Cancel buttons with the following code:

Telerik.Windows.Controls.

DialogParameters dp = new Telerik.Windows.Controls.DialogParameters

 

{

Header = headerText,

Content = message,

OkButtonContent =

"Yes",

 

CancelButtonContent =

"No",

 

};

 

RadWindow.Confirm(dp,

 


Do I really need to add a template to get this to work as in the following article? 

http://www.telerik.com/support/kb/silverlight/window/how-to-modify-confirm-prompt-alert-window-s-template.aspx

Thanks,
Todd

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 04 Sep 2009, 11:05 AM
Hi normalham2,

This should work fine. This is what I have in my test case:
- I show the confirm with this code:
RadWindow.Confirm(new DialogParameters 
    OkButtonContent = "Yes"
    CancelButtonContent = "No"
    Theme = new Theme(new Uri("/DockingTestApp;component/theme.xaml", UriKind.RelativeOrAbsolute)) 
}); 

- the file theme.xaml is attached to the post. I contains the default theme of the RadConfirm. You can skip the Theme property if you don't need to customize the RadConfirm more than just changing the labels of the buttons.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
normalham2
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or