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

RADWINDOW and Maximising with button

0 Answers 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hicham
Top achievements
Rank 1
Hicham asked on 04 Sep 2012, 10:57 AM
Hi,
I have an issue with the RADWINDOW when i want to maximise it with the button Maximize, the window doesn't take the full screen mode and the borders disappears(image in attachement) but when i double click on the task bar, it works correctly

below the code i use :
public static void NavigateToModal<T>(OpraViewName name, ParameterizedMessage message = null) where T : UIElement, new()
        {
            _message = message;
  
            object view = null;
            int Width =0, Height =0 ;
  
  
            switch (name)
            {
                case OpraViewName.AboutView:
                    view = new AboutView();
                    Width = 1000;
                    Height = 600;
                    break;
                case OpraViewName.ArticlePickerView:
                    view = new ArticlePickerView();
                    Width = 1000;
                    Height = 600;
                    break;
                case OpraViewName.ArticleLoaderView:
                    view = new ArticleLoaderView();
                    Width =  700;
                    Height = 600;
                    break;
                default:
                    break;
            }
  
             
  
            RadWindow modalWindows = new RadWindow();
            modalWindows.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            modalWindows.MinHeight = Height;
            modalWindows.MinWidth = Width;
            modalWindows.Header = name.GetStringValue();
            modalWindows.Content = view;//The view is the user control i use
            modalWindows.ShowDialog();
             
        }

thanks.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Hicham
Top achievements
Rank 1
Share this question
or