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
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
it describes how can remove wpf version of control box.
wpf controls derived system.windows.controls , not system.windows.forms
Comments
Post a Comment