Does WPF support MDI ?
No. WPF from version 1 does not include support for MDI. If there is a need for MDI in your application, you can use the windows forms interop or create a custom child window manager.
How do I host Windows Forms control in a WPF Window ?
Windows forms can be hosted using the WindowsFormsHost markup extension of the ‘windowsformsintegration.dll’. References for ‘windowsformsintegration.dll’ and ‘System.Windows.Forms.dll’ have to be added. The following code snippet is used to add a control to the Windows Forms. Note: windowsformsintegration.dll will be available in the following location, Program files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll. [XAML] <WindowsFormsHost> <wf:MaskedTextBox x:Name=’mtxamt’ Mask=’00000.00’/> </WindowsFormsHost>
How do I create a child window in WPF ?
In WPF, any of the windows can be designated as child windows. A child window is like any other window but it gets minimized or closed when the parent is minimized or closed respectively. This type of window is called modeless dialog. To make a window a child of another window, the ‘Owner’ property of the child window has to be set as the parent window but only after the parent window is shown. Child windows of a window can be enumerated using the ‘OwnedWindows’ read-only property.
How launch conditions are useful and how to add one to a setup project ?
Launch conditions are used to pre-validate the target machine on some conditions before the installation of the setup project is started. Validations can include software requirements, registry entries, memory or component search etc. If the validation fails, error messages can be displayed. A launch condition can be added to the launch condition editor in the setup project. The Condition and it’s corresponding error message can be added using the Properties window.
How do I deploy shared components ?
Shared Components such as dlls, controls and resources can be installed using the merge modules (.msm) files. Using merge modules, shared components are packaged and shipped along with the application. On the File menu, point to Add, and then choose New Project. In the Add New Project dialog box, select Setup and Deployment Projects in the Project Type pane, and then choose Merge Module Project in the Templates pane. In the Name box, type Sample. Click OK to close the dialog box. In the File System Editor, select the Module Retargetable Folder. On the Action menu, point to Add and then choose Project Output. In the Add Project Output Group dialog box, select the Primary Output of the class library (dll) project. Click OK to close the dialog box. In the Build menu, choose Build Sample to build the merge module.