-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPanel.xaml
53 lines (53 loc) · 2.62 KB
/
MainPanel.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<UserControl x:Class="SuperSocket.ServerManager.Client.MainPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="600">
<UserControl.Resources>
<ResourceDictionary Source="NodeTemplates.xaml"></ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Background="{StaticResource TopBackground}" HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Image Grid.Column="0" Margin="10 0 5 0" Source="Resources/SS(32).png"></Image>
<TextBlock Grid.Column="1" Grid.Row="0"
Style="{StaticResource MainTitle}"
Text="Server manager Client"></TextBlock>
<Button Content="Configure" Grid.Column="3"
Margin="5"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Click="Configure_Click"
Width="100"></Button>
<Rectangle Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4"
Fill="#FFDACEEC" Height="5" VerticalAlignment="Bottom"></Rectangle>
</Grid>
<Border Grid.Row="1" VerticalAlignment="Stretch" Background="AliceBlue">
<ItemsControl
ItemsSource="{Binding Nodes}"
ItemTemplate="{StaticResource NodeContainerTemplate}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical">
</StackPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
</Border>
</Grid>
</UserControl>