c# - How to remove the System Menu in WPF? -


according msdn page, if using window, disable control box in top left hand corner setting false. this: this.controlbox = false;

the controlbox has maximize, minimize, restore , close options
i want disable box in own application

but since i'm using ribbonwindow instead of window, how disable control box in situation?

this question related, i'm looking disable systemmenu time, not prevent alt+space. because (i think) action listener systemmenu in top left hand corner blocks clickable ui element in xaml.

i should note not problem windows server 2003, when application opened in windows 7, systemmenu/controlbox interferes ui element in top left corner.

additionally, i've found interfering system menu results in buttons in top right hand corner of application being deactivated, don't want happen.

thanks link eammonn. think person trying disable [x] button in top right hand corner, not menu in top left hand corner, wrong. reason don't think it'll work they're using <window x:class= , i'm using <dc:ribbonwindow x:class=. make difference?

the wpf window not system.windows.forms object, this.controlbox = false not work anyway. there no explicit property in wpf see article

http://winsharp93.wordpress.com/2009/07/21/wpf-hide-the-window-buttons-minimize-restore-and-close-and-the-icon-of-a-window/

it describes how can remove wpf version of control box.

wpf controls derived system.windows.controls , not system.windows.forms


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -