However, after loading the plugin, the actual window size displayed in Rhino is always according to the window size that was last opened in Rhino (so if the user drags the window / makes it bigger, smaller, the window size is according to past user “drags”, not according to the dimensions set in the xaml).
How can I force the window to have the dimensions in the xaml only (user cannot change), and how can I specify that on first load the dimensions in the xaml are used for the window size?
Hi Richard, thanks for your suggestion.
I tried this and the Rhino window size dimensions is still “changeable”.
I suspect freezing the window size is a property of the Rhino.UI.Panels class or similar?
Like others have said, since you are creating a UserControl and not a Window, you have no way to dictate your “parent windows” size. If you want complete control you should have your plugin create it’s own Window.