mjj38
- ago
Hi Guys,
Quick question regarding the ChildWindow class. I checked the documentation but I'm stumped as to why the rendering difference between deriving from ChildWindow versus Window. See below code and pics.

CODE:
<wwpf:ChildWindow x:Class="WealthLab.Custom.Extensions.PortfolioBuilderWindow" xmlns="<a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" target="_blank">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a>" xmlns:x="<a href="http://schemas.microsoft.com/winfx/2006/xaml" target="_blank">http://schemas.microsoft.com/winfx/2006/xaml</a>" xmlns:d="<a href="http://schemas.microsoft.com/expression/blend/2008" target="_blank">http://schemas.microsoft.com/expression/blend/2008</a>" xmlns:mc="<a href="http://schemas.openxmlformats.org/markup-compatibility/2006" target="_blank">http://schemas.openxmlformats.org/markup-compatibility/2006</a>" xmlns:wwpf="clr-namespace:WealthLab.WPF;assembly=WealthLab.WPF" xmlns:local="clr-namespace:WealthLab.Custom.Extensions" mc:Ignorable="d"> <DockPanel LastChildFill="True"> <ToolBarTray DockPanel.Dock="Top"> <ToolBar> <Button Content="Run"></Button> </ToolBar> </ToolBarTray> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <TabControl> <TabItem Header="Portfolio One"></TabItem> </TabControl> </Grid> </DockPanel> </wwpf:ChildWindow>





CODE:
<Window x:Class="WealthLab.Custom.Extensions.PortfolioView" xmlns="<a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" target="_blank">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a>" xmlns:x="<a href="http://schemas.microsoft.com/winfx/2006/xaml" target="_blank">http://schemas.microsoft.com/winfx/2006/xaml</a>" xmlns:d="<a href="http://schemas.microsoft.com/expression/blend/2008" target="_blank">http://schemas.microsoft.com/expression/blend/2008</a>" xmlns:mc="<a href="http://schemas.openxmlformats.org/markup-compatibility/2006" target="_blank">http://schemas.openxmlformats.org/markup-compatibility/2006</a>" xmlns:local="clr-namespace:WealthLab.Custom.Extensions" mc:Ignorable="d" Title="PortfolioView" Height="450" Width="800"> <DockPanel LastChildFill="True"> <ToolBarTray DockPanel.Dock="Top"> <ToolBar> <Button Content="Run"></Button> </ToolBar> </ToolBarTray> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="*"></RowDefinition> </Grid.RowDefinitions> <TabControl> <TabItem Header="Portfolio One"></TabItem> </TabControl> </Grid> </DockPanel> </Window>


0
358
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 7.35% )
- ago
#1
ChildWindow is a class defined in WealthLab.WPF, and it's derived from UserControl. It contains special properties and methods required to interface with WL7, and can be used by Extensions that want to create their own WL7 tool windows.

Window is a WPF class representing a plain vanilla window.
0

Reply

Bookmark

Sort