Setting width of RadWindow from Code

2 posts, 0 answers
  1. ITC
    ITC avatar
    19 posts
    Member since:
    Nov 2010

    Posted 11 May 2012 Link to this post

    Hi 

    I am having issues setting the RadWindow.Alert window from Code. The method I tried is as follows:

    RadWindow.Confirm(
                    new DialogParameters
                        {
                            Content = new ContentControl { Width = 800, Height = 600, Content = editorView },
                            DialogStartupLocation = WindowStartupLocation.CenterScreen,
                            Closed = (sender, e) => this.AddChartSeriesGroupClosed(sender, e, newChartSeriesGroup),
                        });

    The window size using the above code seems to be 400x600 which is coincidental i.e. it is the size regardless of the Width and Height values used above. I have tried MinWidth and MinHeight as well.

    Any ideas?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 16 May 2012 Link to this post

    Hello Dirk,

    In order to change the Width of the Confirm window, you should create a custom style. The approach is explained in this article.

    Regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top