<Window.Resources> <DataTemplate x:Key=dtProducts> <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width=3*/> <ColumnDefinition Width=*/> </Grid.ColumnDefinitions> </Grid> </DataTemplate> </Window.Resources> <TabControl TabStripPlacement=Top> <!-- Part 1 - Inheritance Tab --> <TabItem Header=Inheritance d:IsHidden=True> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=60*/> <ColumnDefinition Width=40*/> </Grid.ColumnDefinitions> <ListBox x:Name=lbxDisplay Grid.Column=0 SelectionChanged=lbxDisplay_SelectionChanged/> <StackPanel Grid.Column=1 Background=White> <!-- Label demonstrating resource style--> <Label Content=Bill /> <!-- Textblock demonstrating inline style --> <TextBlock x:Name=tblkBillTotal Text=€000.00 Background=SkyBlue Foreground=White FontSize=40 HorizontalAlignment=Center Margin=10/> </StackPanel> </Grid> </TabItem> </TabControl> <TabControl TabStripPlacement=Top> <TabItem Header=Inheritance d:IsHidden=True> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width=60*/> <ColumnDefinition Width=40*/> </Grid.ColumnDefinitions> <ListBox x:Name=lbxDisplay Grid.Column=0 SelectionChanged=lbxDisplay_SelectionChanged/> <StackPanel Grid.Column=1 Background=White> <!-- Label demonstrating resource style--> <Label Content=Bill /> <!-- Textblock demonstrating inline style --> <TextBlock x:Name=tblkBillTotal Text=€000.00 Background=SkyBlue Foreground=White FontSize=40 HorizontalAlignment=Center Margin=10/> </StackPanel> </Grid> </TabItem>
©