.net - WPF:Enclose controls within a child window chrome which has a close button -


i'm c++ programmer , i've started side project teach me wpf. i've started making desktop app browse images , retouch them, paint.net.

i want enclose controls(e.g. see image below) within child window chrome has close button. mdi, not quite.
alt text

the simplest way now, thought, enclose within <window></window>, seems wpf doesn't this. gives runtime exception.

is there simpler way of doing it. couldn't find links explained similar.

to use window need create new window class in separate file can instantiate , show main window's code.

var childwindow = new mychildwindow(); childwindow.show(); 

to simplified window chrome set windowstyle = windowstyle.toolwindow in mychildwindow.

if you're trying create contained simulated window inside main window needs use normal non-window control. silverlight includes childwindow class it's not built wpf. create similar can use headeredcontentcontrol you'll have style tool window modifying controltemplate. you'll need create behaviors drag, resize , close on control best handled making custom control.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -