source: trunk/CrypPlugins/KeySearcher/Presentation/Controls/OpenCLPresentation.xaml @ 2158

Last change on this file since 2158 was 2158, checked in by Sven Rech, 11 years ago

keysearcher presentation changes

File size: 2.7 KB
Line 
1<UserControl x:Class="KeySearcherPresentation.Controls.OpenCLPresentation"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
4    <UserControl.Resources>
5        <RotateTransform x:Key="HeaderRotate" Angle="270" />
6        <Style x:Key="ValueRow1">
7            <Setter Property="Label.Margin" Value="80,0,0,0" />
8        </Style>
9        <Style x:Key="ValueRow2">
10            <Setter Property="Label.Margin" Value="110,0,0,0" />
11        </Style>
12    </UserControl.Resources>
13    <Viewbox>
14        <StackPanel Width="646">
15            <Border BorderBrush="Silver" BorderThickness="2,2,2,2">
16                <Grid Height="78" Background="#AF73B7A6">
17                    <Grid.ColumnDefinitions>
18                        <ColumnDefinition Width="26" />
19                        <ColumnDefinition Width="200*" />
20                        <ColumnDefinition Width="200*" />
21                    </Grid.ColumnDefinitions>
22                    <Grid.RowDefinitions>
23                        <RowDefinition Height="26" />
24                        <RowDefinition Height="26" />
25                        <RowDefinition Height="26" />
26                    </Grid.RowDefinitions>
27                    <Border BorderThickness="1" BorderBrush="Black" LayoutTransform="{StaticResource HeaderRotate}" Background="#FF3B8EA4" Grid.Column="0" Grid.RowSpan="3">
28                        <Label Content="OpenCL" FontSize="11" HorizontalAlignment="Center" Foreground="White" />
29                    </Border>
30                   
31                    <Label Content="Keys/sec (OpenCL):" Grid.Column="1" Grid.Row="0" />
32                    <Label Name="keysPerSecondOpenCL" Style="{StaticResource ValueRow2}" Grid.Column="1" Grid.Row="0" />
33                    <Label Content="Keys/sec (CPU):" Grid.Column="2" Grid.Row="0" />
34                    <Label Name="keysPerSecondCPU" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="0" />
35                   
36                    <Label Content="Devices:" Grid.Column="1" Grid.Row="1" />
37                    <Label Name="devices" Style="{StaticResource ValueRow2}" Grid.Column="1" Grid.Row="1" />
38                   
39                    <Label Content="Work Items:" Grid.Column="2" Grid.Row="1" />
40                    <Label Name="workItems" Style="{StaticResource ValueRow2}" Grid.Column="2" Grid.Row="1" />
41                   
42                    <Label Content="Ratio:" Grid.Column="1" Grid.Row="2" />
43                    <Label Name="ratio" Style="{StaticResource ValueRow2}" Grid.Column="1" Grid.Row="2" />
44                </Grid>
45            </Border>           
46        </StackPanel>
47    </Viewbox>
48</UserControl>
Note: See TracBrowser for help on using the repository browser.