source: trunk/CrypPlugins/PeerToPeerManager_NEW/P2PManagerPresentation.xaml @ 1173

Last change on this file since 1173 was 1173, checked in by arnold, 12 years ago

some bug fixes.

File size: 8.3 KB
Line 
1<UserControl x:Class="Cryptool.Plugins.PeerToPeer.P2PManagerPresentation"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    HorizontalAlignment="Stretch"
5    VerticalAlignment="Stretch"
6    Name="MngrMain"
7    Background="LightBlue"
8    MinHeight="150" MinWidth="100"
9    Height="Auto" Width="Auto">
10
11    <Canvas Name="Canvas" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
12        <Grid Name="Grid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
13            <Grid.RowDefinitions>
14                <RowDefinition Height="Auto"/>
15                <RowDefinition Height="Auto"/>
16                <RowDefinition Height="Auto"/>
17            </Grid.RowDefinitions>
18            <Grid.ColumnDefinitions>
19                <ColumnDefinition Width="14*"/>
20                <ColumnDefinition Width="139.16*" />
21            </Grid.ColumnDefinitions>
22
23            <Expander Name="Expander_JobStatus" Header="Job Status Info" IsExpanded="True" FontSize="10">
24                <Grid Name="JobGrid">
25                    <Grid.RowDefinitions>
26                        <RowDefinition/>
27                        <RowDefinition/>
28                        <RowDefinition/>
29                        <RowDefinition/>
30                    </Grid.RowDefinitions>
31                    <Grid.ColumnDefinitions>
32                        <ColumnDefinition Width="Auto"/>
33                        <ColumnDefinition MinWidth="20" Width="Auto"/>
34                        <ColumnDefinition Width="Auto"/>
35                    </Grid.ColumnDefinitions>
36
37                    <Grid Grid.Row="0" Grid.Column="2" Grid.RowSpan="4">
38                        <Grid.RowDefinitions>
39                            <RowDefinition/>
40                            <RowDefinition/>
41                            <RowDefinition/>
42                            <RowDefinition/>
43                        </Grid.RowDefinitions>
44                        <Grid.ColumnDefinitions>
45                            <ColumnDefinition/>
46                        </Grid.ColumnDefinitions>
47
48                        <Label Grid.Row="0" Grid.Column="0" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Bottom"
49                           VerticalAlignment="Top" HorizontalContentAlignment="Center" >Total Progress:</Label>
50                        <TextBox Name="txtProgressInPercent" Grid.Row="1" Grid.Column="0" TextAlignment="Center"
51                             IsReadOnly="True" TextWrapping="WrapWithOverflow" FontSize="8" FontWeight="Bold"
52                             BorderThickness="0" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Background="Transparent"/>
53                        <!--<Label Name="txtProgressInPercent" Grid.Row="1" Grid.Column="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Top"
54                               VerticalAlignment="Top" FontWeight="Bold" FontSize="8">0,00%</Label>-->
55
56                        <Label Grid.Row="2" Grid.Column="0" FontSize="10" FontWeight="Bold" FontStyle="Italic" VerticalContentAlignment="Bottom"
57                           VerticalAlignment="Top" HorizontalContentAlignment="Center" >Estimated end time:</Label>
58                        <TextBox Name="txtEstimatedEndTime" Text="no finished jobs" Grid.Row="3" Grid.Column="0" TextAlignment="Center"
59                             IsReadOnly="True" TextWrapping="WrapWithOverflow" FontSize="8" FontWeight="Bold"
60                             BorderThickness="0" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Background="Transparent"/>
61                    </Grid>
62
63                    <Label Grid.Row="0" Grid.Column="0" FontSize="8" FontWeight="Bold" VerticalAlignment="Top" Height="23" Width="AUTO">Total:</Label>
64                    <TextBox Name="txtTotal" Grid.Row="0" Grid.Column="1" TextAlignment="Left"
65                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
66                     Height="23" FontSize="8" FontWeight="Bold" BorderThickness="1" Background="Transparent" />
67
68                    <Label Grid.Row="1" Grid.Column="0" FontSize="8" Background="LightGray" VerticalAlignment="Top" Height="23" Width="AUTO">In Progress:</Label>
69                    <TextBox Name="txtInProgress" Grid.Row="1" Grid.Column="1" TextAlignment="Left"
70                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Bottom"
71                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray"/>
72
73                    <Label Grid.Row="2" Grid.Column="0" FontSize="8" VerticalAlignment="Top" Height="23" Width="AUTO">Left:</Label>
74                    <TextBox Name="txtLeft" Grid.Row="2" Grid.Column="1" TextAlignment="Left"
75                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
76                     Height="23" FontSize="8" BorderThickness="1" Background="Transparent" />
77
78                    <Label Grid.Row="3" Grid.Column="0" FontSize="8" FontWeight="Bold" Background="LightGray" VerticalAlignment="Top" Height="23" Width="AUTO">Finished:</Label>
79                    <TextBox Name="txtFinished" Grid.Row="3" Grid.Column="1" TextAlignment="Left"
80                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Bottom"
81                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray" />
82
83                </Grid>
84            </Expander>
85
86            <Expander Name="Expander_List" Header="Global Top 10 List" IsExpanded="True" FontSize="10" Grid.Row="1">
87                <ListView Name="ListView" ItemsSource="{Binding}" ScrollViewer.HorizontalScrollBarVisibility="Auto"  ScrollViewer.VerticalScrollBarVisibility="Auto" FontSize="7" MaxWidth="200">
88                    <ListView.View>
89                        <GridView>
90                            <GridViewColumn Header="Ranking" DisplayMemberBinding="{Binding Path=Ranking}"></GridViewColumn>
91                            <GridViewColumn Header="Value" DisplayMemberBinding="{Binding Path=Value}"></GridViewColumn>
92                            <GridViewColumn Header="Key" DisplayMemberBinding="{Binding Path=Key}"></GridViewColumn>
93                            <GridViewColumn Header="Text" DisplayMemberBinding="{Binding Path=Text}" ></GridViewColumn>
94                        </GridView>
95                    </ListView.View>
96                </ListView>
97            </Expander>
98
99            <Expander Name="Expander_WorkerInfo" Header="Worker Info" IsExpanded="False" FontSize="10" Grid.Row="2">
100                <Grid Name="WorkerGrid">
101                    <Grid.RowDefinitions>
102                        <RowDefinition/>
103                        <RowDefinition/>
104                        <RowDefinition/>
105                    </Grid.RowDefinitions>
106                    <Grid.ColumnDefinitions>
107                        <ColumnDefinition Width="75"/>
108                        <ColumnDefinition Width="50"/>
109                    </Grid.ColumnDefinitions>
110
111                    <Label Grid.Row="0" Grid.Column="0" FontSize="8" Height="23" FontWeight="Bold">Total Amount:</Label>
112                    <TextBox Name="txtTotalWorker" Grid.Row="0" Grid.Column="1" TextAlignment="Left"
113                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
114                     Height="23" FontSize="8" BorderThickness="1" FontWeight="Bold" Background="Transparent"/>
115
116                    <Label Grid.Row="1" Grid.Column="0" FontSize="8" Height="23" Background="LightGray">Free:</Label>
117                    <TextBox Name="txtFreeWorker" Grid.Row="1" Grid.Column="1" TextAlignment="Left"
118                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
119                     Height="23" FontSize="8" BorderThickness="1" Background="LightGray"/>
120
121                    <Label Grid.Row="2" Grid.Column="0" FontSize="8" Height="23">Busy:</Label>
122                    <TextBox Name="txtBusyWorker" Grid.Row="2" Grid.Column="1" TextAlignment="Left"
123                     IsReadOnly="True" TextWrapping="WrapWithOverflow" VerticalAlignment="Top"
124                     Height="23" FontSize="8" BorderThickness="1" Background="Transparent"/>
125                </Grid>
126            </Expander>
127        </Grid>
128    </Canvas>
129</UserControl>
Note: See TracBrowser for help on using the repository browser.