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

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

Prepared KeySearcher for Localization

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="{Loc 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="{Loc 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="{Loc Devices_}" Grid.Column="1" Grid.Row="1" />
37                    <Label Name="devices" Style="{StaticResource ValueRow2}" Grid.Column="1" Grid.Row="1" />
38
39                    <Label Content="{Loc 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="{Loc Ration_}" 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.