diff options
author | sr55 <[email protected]> | 2014-09-02 19:15:06 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-09-02 19:15:06 +0000 |
commit | 58a5283b46d0d80644cb6e0ad9f7f39a7740da27 (patch) | |
tree | 9aa102943caecb2adf50885b9448c87df839d084 /win/CS/HandBrakeWPF/Controls | |
parent | fd4f78c041f7c5835050ae2e510d3d08367a32c2 (diff) |
WinGui: Add UIAutomation Names to some of the key controls on the main window. If this works as described, will roll out on an extended basis.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6388 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls')
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/NumberBox.xaml | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Controls/SourceSelection.xaml | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/NumberBox.xaml b/win/CS/HandBrakeWPF/Controls/NumberBox.xaml index d8248d4e1..1a9dbe6af 100644 --- a/win/CS/HandBrakeWPF/Controls/NumberBox.xaml +++ b/win/CS/HandBrakeWPF/Controls/NumberBox.xaml @@ -150,7 +150,7 @@ <RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
- <Button
+ <Button AutomationProperties.Name="Increase Number"
Style="{StaticResource UpButton}"
Grid.Row="0"
FontSize="4"
@@ -160,7 +160,7 @@ Style="{StaticResource Arrow}"
Points="4,0 0,4 8,4" />
</Button>
- <Button
+ <Button AutomationProperties.Name="Decrease Number"
Style="{StaticResource DownButton}"
Grid.Row="1"
FontSize="4"
diff --git a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml index 7385f9102..dde18c292 100644 --- a/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml +++ b/win/CS/HandBrakeWPF/Controls/SourceSelection.xaml @@ -36,7 +36,7 @@ <StackPanel Grid.Row="2" Orientation="Vertical" HorizontalAlignment="Left" Margin="5,5,0,0">
<!-- Ctrl + R -->
- <Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FolderScan]"
+ <Button AutomationProperties.Name="Choose Folder to Scan" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FolderScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" MinWidth="100">
@@ -49,7 +49,7 @@ </Button>
<!--Ctrl + F-->
- <Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FileScan]"
+ <Button AutomationProperties.Name="Choose File to Scan" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" cal:Message.Attach="[Event Click] = [Action FileScan]"
Margin="0,0,0,7" Padding="8" HorizontalAlignment="Left">
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/File32.png" Width="32" />
@@ -66,7 +66,7 @@ <Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
cal:Message.Attach="[Event Click] = [Action ProcessDrive($this.Tag)]"
Margin="0,0,0,10" Padding="8" HorizontalAlignment="Left"
- Tag="{Binding}">
+ Tag="{Binding}" AutomationProperties.Name="Choose Disc to Scan">
<StackPanel Orientation="Horizontal" MinWidth="100">
<Image Source="../Views/Images/Disc.png" Width="32" />
<StackPanel Orientation="Vertical">
|