summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-09-02 19:15:06 +0000
committersr55 <[email protected]>2014-09-02 19:15:06 +0000
commit58a5283b46d0d80644cb6e0ad9f7f39a7740da27 (patch)
tree9aa102943caecb2adf50885b9448c87df839d084 /win/CS/HandBrakeWPF/Views
parentfd4f78c041f7c5835050ae2e510d3d08367a32c2 (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/Views')
-rw-r--r--win/CS/HandBrakeWPF/Views/MainView.xaml28
1 files changed, 14 insertions, 14 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml
index f243ea6b0..d6365c5e5 100644
--- a/win/CS/HandBrakeWPF/Views/MainView.xaml
+++ b/win/CS/HandBrakeWPF/Views/MainView.xaml
@@ -180,7 +180,7 @@
KeyboardNavigation.TabNavigation="Continue"
>
- <Button Name="SelectSource"
+ <Button Name="SelectSource" x:Uid="Choose Source" AutomationProperties.Name="Choose Source"
Micro:Message.Attach="[Event Click] = [Action SelectSourceWindow]">
<StackPanel Orientation="Horizontal">
<Image Width="32"
@@ -196,7 +196,7 @@
<Separator />
- <Button Name="Start"
+ <Button Name="Start" AutomationProperties.Name="Start Encode"
Micro:Message.Attach="[Event Click] = [Action StartEncode]"
Visibility="{Binding IsEncoding,
Converter={StaticResource boolToVisConverter},
@@ -214,7 +214,7 @@
</StackPanel>
</Button>
- <Button Name="Stop"
+ <Button Name="Stop" AutomationProperties.Name="Stop Encode"
Micro:Message.Attach="[Event Click] = [Action StopEncode]"
Visibility="{Binding IsEncoding,
Converter={StaticResource boolToVisConverter},
@@ -233,7 +233,7 @@
</StackPanel>
</Button>
- <Button Name="Pause"
+ <Button Name="Pause" AutomationProperties.Name="Pause"
Micro:Message.Attach="[Event Click] = [Action PauseEncode]"
Visibility="{Binding CanPause,
Converter={StaticResource boolToVisConverter},
@@ -256,7 +256,7 @@
<MenuItem>
<MenuItem.Header>
<StackPanel Orientation="Horizontal">
- <Button Name="QueueDrop"
+ <Button Name="QueueDrop" AutomationProperties.Name="Add to Queue"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
@@ -305,12 +305,12 @@
/>
</StackPanel>
</MenuItem.Header>
- <MenuItem Header="Add All" Micro:Message.Attach="[Event Click] = [Action AddAllToQueue]" />
- <MenuItem Header="Add Selection" Micro:Message.Attach="[Event Click] = [Action AddSelectionToQueue]" />
+ <MenuItem Header="Add All" Micro:Message.Attach="[Event Click] = [Action AddAllToQueue]" AutomationProperties.Name="Add all to Queue" />
+ <MenuItem Header="Add Selection" Micro:Message.Attach="[Event Click] = [Action AddSelectionToQueue]" AutomationProperties.Name="Add Selection to Queue" />
</MenuItem>
</Menu>
- <Button Name="ShowQueue" Micro:Message.Attach="[Event Click] = [Action OpenQueueWindow]">
+ <Button Name="ShowQueue" AutomationProperties.Name="Show Queue" Micro:Message.Attach="[Event Click] = [Action OpenQueueWindow]">
<StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
@@ -326,7 +326,7 @@
<Separator />
- <Button Name="Preview" Micro:Message.Attach="[Event Click] = [Action OpenPreviewWindow]">
+ <Button Name="Preview" AutomationProperties.Name="Preview Encode" Micro:Message.Attach="[Event Click] = [Action OpenPreviewWindow]" >
<StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
@@ -340,7 +340,7 @@
</StackPanel>
</Button>
- <Button Name="ActivityWindow" Micro:Message.Attach="[Event Click] = [Action OpenLogWindow]">
+ <Button Name="ActivityWindow" AutomationProperties.Name="Activity Window" Micro:Message.Attach="[Event Click] = [Action OpenLogWindow]">
<StackPanel Orientation="Horizontal">
<Image Width="32"
Height="32"
@@ -556,7 +556,7 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
- <ListBox HorizontalAlignment="Stretch"
+ <ListBox HorizontalAlignment="Stretch" AutomationProperties.Name="Presets List"
VerticalAlignment="Stretch" ItemsSource="{Binding Source={StaticResource presetsCvs}}"
SelectedItem="{Binding SelectedPreset, Mode=TwoWay}" BorderThickness="0,0,0,1"
BorderBrush="LightGray"
@@ -586,7 +586,7 @@
Loaded="ToolBarLoaded"
KeyboardNavigation.TabNavigation="Continue"
>
- <Button Micro:Message.Attach="[Event Click] = [Action PresetAdd]" >
+ <Button Micro:Message.Attach="[Event Click] = [Action PresetAdd]" AutomationProperties.Name="Add Preset">
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Width="20"
@@ -601,7 +601,7 @@
</StackPanel>
</Button.Content>
</Button>
- <Button Micro:Message.Attach="[Event Click] = [Action PresetRemove]">
+ <Button Micro:Message.Attach="[Event Click] = [Action PresetRemove]" AutomationProperties.Name="Remove Preset">
<Button.Content>
<StackPanel Orientation="Horizontal">
<Image Width="20"
@@ -617,7 +617,7 @@
</StackPanel>
</Button.Content>
</Button>
- <Menu Background="Transparent">
+ <Menu Background="Transparent" AutomationProperties.Name="Preset Options Dropdown">
<MenuItem ToolBar.OverflowMode="Never">
<MenuItem.Header>
<StackPanel Orientation="Horizontal">