|
<UserControl x:Class="MefBasic.ShellView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
xmlns:MefBasic="clr-namespace:MefBasic"
xmlns:Converters="clr-namespace:MefBasic.Converters"
>
<UserControl.Resources>
<Converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
</UserControl.Resources>
<Grid>
<DockPanel>
<Border DockPanel.Dock="Top">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.TopRegion}" ></ContentControl>
</Border>
<Border DockPanel.Dock="Bottom">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.BottomRegion}" ></ContentControl>
</Border>
<DockPanel DockPanel.Dock="Top">
<Border DockPanel.Dock="Left">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.LeftRegion}" ></ContentControl>
</Border>
<Border DockPanel.Dock="Right">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.RightRegion}" ></ContentControl>
</Border>
<Border DockPanel.Dock="Left">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.MiddleRegion}" ></ContentControl>
</Border>
</DockPanel>
</DockPanel>
<Border Background="{DynamicResource DisableBackgroundColor}" Opacity="0.3" Width="{Binding ShellWidth}" Height="{Binding ShellHeight}"
BorderThickness="0" CornerRadius="10,10,0,0"
Visibility="{Binding Disabled, Converter={StaticResource BoolToVisibilityConverter}}">
</Border>
</Grid>
<!--<Grid>
<Grid Width="{Binding ShellWidth}" Height="{Binding ShellHeight}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.TopRegion}" ></ContentControl>
</Border>
<Border Grid.Row="1" Grid.Column="0">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.LeftRegion}" ></ContentControl>
</Border>
<Border Grid.Row="1" Grid.Column="1">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.MiddleRegion}" ></ContentControl>
</Border>
<Border Grid.Row="1" Grid.Column="2">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.RightRegion}" ></ContentControl>
</Border>
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
<ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.BottomRegion}" ></ContentControl>
</Border>
</Grid>
<Border Background="{DynamicResource DisableBackgroundColor}" Opacity="0.3" Width="{Binding ShellWidth}" Height="{Binding ShellHeight}"
BorderThickness="0" CornerRadius="10,10,0,0"
Visibility="{Binding Disabled, Converter={StaticResource BoolToVisibilityConverter}}">
</Border>
</Grid>
</Grid>-->
</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.