Description: In WPF, the principle is very simple simulation of the effect ChildWindow, ChildWindow key point is how to define the dynamic styles and use a DataTemplate to display control, attention here is not explicitly defined Content ItemTemplate, it will default application resources in the DataTemplate to define, by binding to DialogViewModel, DataTemplate DataType of the type according to DialogViewModel choose to display different sub-forms, while the child form' s DataContext will be automatically associated with the types of entities that DialogViewModel
To Search:
File list (Check if you may need any files):
SimpleWindowChrome
..................\CustomControl
..................\.............\bin
..................\.............\...\Debug
..................\.............\CaptionButton.cs
..................\.............\CloseButton.cs
..................\.............\CustomChromeWindow.cs
..................\.............\CustomControl.csproj
..................\.............\CustomControl.csproj.user
..................\.............\HelpButton.cs
..................\.............\Images
..................\.............\......\close.png
..................\.............\......\maximize.png
..................\.............\......\minimize.jpg
..................\.............\......\restore.png
..................\.............\MaximizeButton.cs
..................\.............\MinimizeButton.cs
..................\.............\obj
..................\.............\...\Debug
..................\.............\...\.....\CaptionButtons.g.i.cs
..................\.............\...\.....\CaptionButtonsWithHelp.g.i.cs
..................\.............\...\.....\CustomChormeWindow.g.i.cs
..................\.............\...\.....\CustomControl_MarkupCompile.i.cache
..................\.............\...\.....\CustomControl_MarkupCompile.i.lref
..................\.............\...\.....\DesignTimeResolveAssemblyReferences.cache
..................\.............\...\.....\DesignTimeResolveAssemblyReferencesInput.cache
..................\.............\...\.....\GeneratedInternalTypeHelper.g.i.cs
..................\.............\...\.....\TempPE
..................\.............\...\.....\......\Properties.Resources.Designer.cs.dll
..................\.............\...\.....\Themes
..................\.............\Properties
..................\.............\..........\AssemblyInfo.cs
..................\.............\..........\Resources.Designer.cs
..................\.............\..........\Resources.resx
..................\.............\..........\Settings.Designer.cs
..................\.............\..........\Settings.settings
..................\.............\Themes
..................\.............\......\CustomWindowGeneric.xaml
..................\.............\......\Generic.xaml
..................\SimpleWindowChrome
..................\SimpleWindowChrome.sln
..................\SimpleWindowChrome.suo
..................\..................\App.xaml
..................\..................\App.xaml.cs
..................\..................\bin
..................\..................\...\Debug
..................\..................\...\.....\SimpleWindowChrome.vshost.exe
..................\..................\...\.....\SimpleWindowChrome.vshost.exe.manifest
..................\..................\MainWindow.xaml
..................\..................\MainWindow.xaml.cs
..................\..................\obj
..................\..................\...\x86
..................\..................\...\...\Debug
..................\..................\...\...\.....\App.g.i.cs
..................\..................\...\...\.....\DesignTimeResolveAssemblyReferences.cache
..................\..................\...\...\.....\DesignTimeResolveAssemblyReferencesInput.cache
..................\..................\...\...\.....\MainWindow.g.i.cs
..................\..................\...\...\.....\SimpleWindowChrome_MarkupCompile.i.cache
..................\..................\...\...\.....\TempPE
..................\..................\...\...\.....\......\Properties.Resources.Designer.cs.dll
..................\..................\...\...\.....\Window1.g.i.cs
..................\..................\...\...\.....\Window2.g.i.cs
..................\..................\...\...\.....\Window3.g.i.cs
..................\..................\Properties
..................\..................\..........\AssemblyInfo.cs
..................\..................\..........\Resources.Designer.cs
..................\..................\..........\Resources.resx
..................\..................\..........\Settings.Designer.cs
..................\..................\..........\Settings.settings
.................