- compositewpfapp_src.zip
- CompositeWpfApp
- Common
- CWA.Infrastructure
- CWA.ResourceLibrary
- CWA.UIControls
- Composite Application Library
- Microsoft.Practices.Composite.dll
- Microsoft.Practices.Composite.Presentation.dll
- Microsoft.Practices.Composite.UnityExtensions.dll
- Microsoft.Practices.ObjectBuilder2.dll
- Microsoft.Practices.ServiceLocation.dll
- Microsoft.Practices.Unity.dll
- CompositeWpfApp.gpState
- CompositeWpfApp.sln
- CompositeWpfApp.suo
- CompositeWpfApp
- Modules
- CWA.Module.DefaultModule
- CWA.Module.Documents
- CWA.Module.ModuleSelector
- CWA.Module.Security
- CWA.Module.ServerSelector
- CWA.Module.StatusArea
- CWA.Module.Users
|
<UserControl x:Class="CWA.Module.ServerSelector.ServerSelectorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctl="clr-namespace:CWA.UIControls;assembly=CWA.UIControls"
xmlns:inf="clr-namespace:CWA.Infrastructure;assembly=CWA.Infrastructure"
xmlns:local="clr-namespace:CWA.Module.ServerSelector"
Height="Auto" Width="Auto">
<!-- Uncomment it for debug purposes
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/CWA.ResourceLibrary;component/Skins/Default/DefaultSkin.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
-->
<UserControl.CommandBindings>
<CommandBinding Command="inf:UICommands.CloseTabCommand" Executed="CloseTabCommand_Executed" />
</UserControl.CommandBindings>
<Border Background="{DynamicResource ServerSelectorBackgroundBrush}" BorderThickness="0,1,0,0"
BorderBrush="{DynamicResource ServerSelectorBorderBrush}">
<Grid Margin="0,5,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1000*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<DockPanel Grid.Column="0" SnapsToDevicePixels="True">
<Border BorderBrush="{DynamicResource ItemBorderBrush}" SnapsToDevicePixels="True"
BorderThickness="0,0,0,1" MinWidth="4" />
<TabControl x:Name="tabServers" Padding="0" Style="{DynamicResource TabControlStyle}"
SelectionChanged="tabServers_SelectionChanged">
<!-- Example of XAML declaration:
<ctl:TabItemClosable Header="Server 1" Name="tabItem1" />
<ctl:TabItemClosable Header="Server 2" Name="tabItem2" CanClose="True" />
<ctl:TabItemClosable Header="Server 3" Name="tabItem3" />
-->
</TabControl>
<Border BorderThickness="0,0,0,1" BorderBrush="{DynamicResource ItemBorderBrush}" SnapsToDevicePixels="True" />
</DockPanel>
<!--Button opening a drop-down menu with Tab names-->
<StackPanel Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right">
<!--Space around the button-->
<Border BorderBrush="{DynamicResource ItemBorderBrush}" SnapsToDevicePixels="True"
BorderThickness="0,0,0,1" Padding="5,0,5,3">
<Button Name="btnOpenMenu" Style="{DynamicResource DropDownButtonStyle}"
Click="btnOpenMenu_Click" ContextMenuOpening="btnOpenMenu_ContextMenuOpening">
<Button.ContextMenu>
<ContextMenu Name="cmTabs" Placement="Bottom" MenuItem.Click="cmTabs_Click" />
</Button.ContextMenu>
</Button>
</Border>
</StackPanel>
</Grid>
</Border>
</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.
Jevgenij lives in Riga, Latvia. He started his programmer's career in 1983 developing software for radio equipment CAD systems. Created computer graphics for TV. Developed Internet credit card processing systems for banks.
Now he is System Analyst in Accenture.