File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ using Avalonia . Automation ;
2
+ using Avalonia . Automation . Peers ;
3
+
4
+ namespace Avalonia . Controls . Automation . Peers ;
5
+
6
+ public class UserControlAutomationPeer : ControlAutomationPeer
7
+ {
8
+ public UserControlAutomationPeer ( UserControl owner )
9
+ : base ( owner )
10
+ {
11
+ }
12
+
13
+ protected override AutomationControlType GetAutomationControlTypeCore ( ) => AutomationControlType . Custom ;
14
+ }
Original file line number Diff line number Diff line change
1
+ using Avalonia . Automation . Peers ;
2
+ using Avalonia . Controls . Automation . Peers ;
1
3
using Avalonia . Styling ;
2
4
3
5
namespace Avalonia . Controls
@@ -7,6 +9,6 @@ namespace Avalonia.Controls
7
9
/// </summary>
8
10
public class UserControl : ContentControl
9
11
{
10
-
12
+ protected override AutomationPeer OnCreateAutomationPeer ( ) => new UserControlAutomationPeer ( this ) ;
11
13
}
12
14
}
You can’t perform that action at this time.
0 commit comments