-
Notifications
You must be signed in to change notification settings - Fork 1k
Adding ListView control UIA accessibility #3224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Runtime.InteropServices; | ||
|
||
internal static partial class Interop | ||
{ | ||
internal static partial class UiaCore | ||
{ | ||
[ComImport] | ||
[Guid("6278cab1-b556-4a1a-b4e0-418acc523201")] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
public interface IMultipleViewProvider | ||
{ | ||
string? GetViewName(int viewId); | ||
|
||
void SetCurrentView(int viewId); | ||
|
||
int CurrentView { get; } | ||
|
||
int[]? GetSupportedViews(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using static Interop.UiaCore; | ||
|
||
namespace System.Windows.Forms | ||
{ | ||
public partial class ColumnHeader | ||
{ | ||
internal class ListViewColumnHeaderAccessibleObject : AccessibleObject | ||
{ | ||
private readonly ColumnHeader _owningColumnHeader; | ||
|
||
public ListViewColumnHeaderAccessibleObject(ColumnHeader columnHeader) | ||
{ | ||
_owningColumnHeader = columnHeader ?? throw new ArgumentNullException(nameof(columnHeader)); | ||
} | ||
|
||
internal override object? GetPropertyValue(UIA propertyID) | ||
=> propertyID switch | ||
{ | ||
UIA.ControlTypePropertyId => UIA.HeaderItemControlTypeId, | ||
UIA.NamePropertyId => _owningColumnHeader.Text, | ||
_ => base.GetPropertyValue(propertyID) | ||
}; | ||
} | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.