Browse Source
Simple peers which only change the accessibility view or control type can now use the new `AutomationProperties`.ui-automation-test
16 changed files with 20 additions and 192 deletions
@ -1,19 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class CheckBoxAutomationPeer : ToggleButtonAutomationPeer |
|||
{ |
|||
public CheckBoxAutomationPeer(CheckBox owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.CheckBox; |
|||
} |
|||
} |
|||
} |
|||
@ -1,23 +0,0 @@ |
|||
using System; |
|||
using Avalonia.Automation.Provider; |
|||
using Avalonia.Controls; |
|||
using Avalonia.Controls.Primitives; |
|||
using Avalonia.Controls.Selection; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class ComboBoxItemAutomationPeer : ListItemAutomationPeer |
|||
{ |
|||
public ComboBoxItemAutomationPeer(ComboBoxItem owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.ComboBoxItem; |
|||
} |
|||
} |
|||
} |
|||
@ -1,21 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class ContextMenuAutomationPeer : ControlAutomationPeer |
|||
{ |
|||
public ContextMenuAutomationPeer(ContextMenu owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Menu; |
|||
} |
|||
|
|||
protected override bool IsContentElementCore() => false; |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class ImageAutomationPeer : ControlAutomationPeer |
|||
{ |
|||
public ImageAutomationPeer(Control owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Image; |
|||
} |
|||
} |
|||
} |
|||
@ -1,21 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class MenuAutomationPeer : ControlAutomationPeer |
|||
{ |
|||
public MenuAutomationPeer(Menu owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Menu; |
|||
} |
|||
|
|||
protected override bool IsContentElementCore() => false; |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class SliderAutomationPeer : RangeBaseAutomationPeer |
|||
{ |
|||
public SliderAutomationPeer(Slider owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Slider; |
|||
} |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
#nullable enable |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class TabControlAutomationPeer : SelectingItemsControlAutomationPeer |
|||
{ |
|||
public TabControlAutomationPeer(TabControl owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Tab; |
|||
} |
|||
} |
|||
} |
|||
@ -1,17 +0,0 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
namespace Avalonia.Automation.Peers |
|||
{ |
|||
public class TabItemAutomationPeer : ListItemAutomationPeer |
|||
{ |
|||
public TabItemAutomationPeer(TabItem owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.TabItem; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue