Confirm with yes no buttons

2 posts, 0 answers
  1. normalham2
    normalham2 avatar
    14 posts
    Member since:
    Nov 2006

    Posted 03 Sep 2009 Link to this post

    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:


    DialogParameters dp = new Telerik.Windows.Controls.DialogParameters



    Header = headerText,

    Content = message,

    OkButtonContent =



    CancelButtonContent =







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

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Sep 2009 Link to this post

    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.

    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.
Back to Top