Hide title bar on WPF User Control -
i looking see if possible hide title bar , close button on wpf user control window.
i cannot use windowstyle="none" relates window , not user control.
any ideas?
to turn off title bar of window on user control resides, can add code of user control:
// walk tree parent window frameworkelement parent = this.parent; while(parent != null && !parent window) { parent = parent.parent; } // if window found, set style if(parent != null && parent window) { parent.windowstyle = windowstyle.none; }
Comments
Post a Comment