How to set the window title?

2 posts, 0 answers
  1. Rick Glos
    Rick Glos avatar
    70 posts
    Member since:
    Mar 2009

    Posted 25 Mar 2009 Link to this post

    Hi there,

    I'm using a RadWindow for a dialog and therefore creating and setting the content in code.

            private void About_Click(object sender, RoutedEventArgs e) 
            { 
                Telerik.Windows.Controls.RadWindow radWindow = new Telerik.Windows.Controls.RadWindow(); 
                radWindow.Content = new AboutDialog(); 
                radWindow.HorizontalAlignment = HorizontalAlignment.Center; 
                radWindow.ResizeMode = Telerik.Windows.Controls.ResizeMode.NoResize; 
                radWindow.ShowDialog(); 
            } 

    I was hoping for a simple Title property on the RadWindow object but I don't see one.

    How do I change the window title?  It's currently displaying RadWindow.

    Thanks!
  2. Rick Glos
    Rick Glos avatar
    70 posts
    Member since:
    Mar 2009

    Posted 25 Mar 2009 Link to this post

    Ah, nevermind.

    I see you access it through the Header property.

            private void About_Click(object sender, RoutedEventArgs e) 
            { 
                Telerik.Windows.Controls.RadWindow radWindow = new Telerik.Windows.Controls.RadWindow(); 
                radWindow.Content = new AboutDialog(); 
                radWindow.HorizontalAlignment = HorizontalAlignment.Center; 
                radWindow.ResizeMode = Telerik.Windows.Controls.ResizeMode.NoResize; 
                radWindow.Header = "Title Here"
                radWindow.ShowDialog(); 
            } 

  3. DevCraft banner
Back to Top