Best approach for an MDI application in WPF?

I am developing a WPF application for a store.

So, I have MainWindow, and everything else will be Child.

This is the best that can be used as a children's window.

  • Window
  • Usercontrol

The window will be fine, it will be on top of the MainWindow, and if its UserControl is in the MainWindow canvas.

So can someone suggest me which is the best to use of the two.

+5
source share
6 answers

I would recommend using UserControls for your child windows. This allows you to configure all the "parent" controls in the main window, and children will not override them.

Caliburn Micro. WPF .

UserControl , ContentControl :

<ContentControl x:Name="ViewWindow" Margin="10" />

, .

+5
+4

: :)

    • / ,

, ...

+2

, , .

WPF silverlight,

:

  • - .
  • , .
  • , , .

, , , , .

, :).

+1

, MDIContainer. , MDI WPF, , MDIChild, - .

+1
source

All Articles