Skip to content

Commit 32b015d

Browse files
committed
Removed GetAutomationIdCore implementation from CarouselItem and BladeItem automation peers
1 parent 79ea866 commit 32b015d

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Layout/BladeView/BladeItemAutomationPeer.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,6 @@ protected override string GetNameCore()
9494
return string.Empty;
9595
}
9696

97-
/// <summary>
98-
/// Called by GetAutomationId that gets the **AutomationId** of the element that is associated with the automation peer.
99-
/// </summary>
100-
/// <returns>
101-
/// The string that contains the automation ID.
102-
/// </returns>
103-
protected override string GetAutomationIdCore()
104-
{
105-
string automationId = base.GetAutomationIdCore();
106-
if (!string.IsNullOrEmpty(automationId))
107-
{
108-
return automationId;
109-
}
110-
111-
if (this.OwnerBladeItem != null)
112-
{
113-
return this.GetNameCore();
114-
}
115-
116-
return string.Empty;
117-
}
118-
11997
/// <summary>
12098
/// Returns the size of the set where the element that is associated with the automation peer is located.
12199
/// </summary>

Microsoft.Toolkit.Uwp.UI.Controls.Layout/Carousel/CarouselItemAutomationPeer.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -126,28 +126,6 @@ protected override string GetNameCore()
126126
return base.GetNameCore();
127127
}
128128

129-
/// <summary>
130-
/// Called by GetAutomationId that gets the **AutomationId** of the element that is associated with the automation peer.
131-
/// </summary>
132-
/// <returns>
133-
/// The string that contains the automation ID.
134-
/// </returns>
135-
protected override string GetAutomationIdCore()
136-
{
137-
var automationId = base.GetAutomationIdCore();
138-
if (!string.IsNullOrEmpty(automationId))
139-
{
140-
return automationId;
141-
}
142-
143-
if (this.OwnerCarouselItem != null)
144-
{
145-
return this.GetNameCore();
146-
}
147-
148-
return string.Empty;
149-
}
150-
151129
/// <summary>
152130
/// Gets the control pattern that is associated with the specified Windows.UI.Xaml.Automation.Peers.PatternInterface.
153131
/// </summary>

0 commit comments

Comments
 (0)