|
<UserControl x:Class="WPFMwiWindows.Controls.MwiWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:WPFMwiWindows.Controls"
MinHeight="28"
>
<UserControl.Resources>
<!--ContextMenu x:Key="MyContextMenu" >
<MenuItem Header="New Window" Click="NewWindow" />
</ContextMenu-->
<ItemsPanelTemplate x:Key="MyItemsPanelTemplate" >
<Controls:DragCanvas Background="Transparent" />
</ItemsPanelTemplate>
<ItemsPanelTemplate x:Key="MyMinItemsPanelTemplate" >
<WrapPanel Orientation="Horizontal" Background="Transparent" VerticalAlignment="Top" >
<WrapPanel.LayoutTransform>
<ScaleTransform ScaleX="1" ScaleY="-1" />
</WrapPanel.LayoutTransform>
</WrapPanel>
</ItemsPanelTemplate>
</UserControl.Resources>
<DockPanel Background="Gray" x:Name="MwiGrid" >
<ItemsControl Background="Transparent" ItemsSource="{Binding Path=MinChildren}"
ItemsPanel="{StaticResource MyMinItemsPanelTemplate}"
DockPanel.Dock="Bottom" />
<ItemsControl Background="Transparent" ItemsSource="{Binding Path=Children}"
ItemsPanel="{StaticResource MyItemsPanelTemplate}"
DockPanel.Dock="Top" />
</DockPanel>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.