InputBindingCollection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
정렬된 개체 컬렉션을 InputBinding 나타냅니다.
public ref class InputBindingCollection sealed : System::Collections::IList
public sealed class InputBindingCollection : System.Collections.IList
type InputBindingCollection = class
interface IList
interface ICollection
interface IEnumerable
type InputBindingCollection = class
interface ICollection
interface IEnumerable
interface IList
Public NotInheritable Class InputBindingCollection
Implements IList
- 상속
-
InputBindingCollection
- 구현
예제
다음 예제에서는 a를 KeyGesture 만들고 연결 합니다 KeyBinding. 에 KeyBinding 추가 InputBindingCollectionWindow됩니다.
<Window.InputBindings>
<KeyBinding Key="B"
Modifiers="Control"
Command="ApplicationCommands.Open" />
</Window.InputBindings>
KeyGesture OpenKeyGesture = new KeyGesture(
Key.B,
ModifierKeys.Control);
KeyBinding OpenCmdKeybinding = new KeyBinding(
ApplicationCommands.Open,
OpenKeyGesture);
this.InputBindings.Add(OpenCmdKeybinding);
Dim OpenKeyGesture As New KeyGesture(Key.B, ModifierKeys.Control)
Dim OpenCmdKeybinding As New KeyBinding(ApplicationCommands.Open, OpenKeyGesture)
Me.InputBindings.Add(OpenCmdKeybinding)
설명
파생 UIElement 되는 모든 개체에는 이름이 InputBindingCollection있습니다InputBindings. 파생 ContentElement 되는 모든 개체에는 이름이 InputBindingCollection있습니다InputBindings.
그러나 이러한 컬렉션이 XAML에 설정된 경우 컬렉션의 항목은 직접 InputBinding 개체가 아닌 파생 클래스 InputBinding 여야 합니다. 이는 기본 공용 생성자를 지원하지 않기 때문 InputBinding 입니다. 따라서 XAML에서 InputBindingCollection 설정된 항목은 일반적으로 InputBinding 기본 공용 생성자(예: KeyBinding 또는 MouseBinding)를 지원하는 파생 클래스입니다.
생성자
| Name | Description |
|---|---|
| InputBindingCollection() |
InputBindingCollection 클래스의 새 인스턴스를 초기화합니다. |
| InputBindingCollection(IList) |
지정된 InputBindingCollection항목에 있는 항목을 사용하여 클래스의 IList 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| Count |
이 컬렉션의 InputBinding 항목 수를 가져옵니다. |
| IsFixedSize |
고정 크기인지 여부를 InputBindingCollection 나타내는 값을 가져옵니다. |
| IsReadOnly |
읽기 전용인지 여부를 InputBindingCollection 나타내는 값을 가져옵니다. |
| IsSynchronized |
이에 InputBindingCollection 대한 액세스가 동기화되는지 여부를 나타내는 값을 가져옵니다(스레드로부터 안전). |
| Item[Int32] |
지정된 인덱스에서 InputBinding 값을 가져오거나 설정합니다. |
| SyncRoot |
InputBindingCollection대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다. |
메서드
명시적 인터페이스 구현
| Name | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
이 멤버에 대한 설명은 을 참조하세요 CopyTo(Array, Int32). |
| IList.Add(Object) |
이 멤버에 대한 설명은 을 참조하세요 Add(Object). |
| IList.Contains(Object) |
이 멤버에 대한 설명은 을 참조하세요 Contains(Object). |
| IList.IndexOf(Object) |
이 멤버에 대한 설명은 을 참조하세요 IndexOf(Object). |
| IList.Insert(Int32, Object) |
이 멤버에 대한 설명은 을 참조하세요 Insert(Int32, Object). |
| IList.Item[Int32] |
이 멤버에 대한 설명은 을 참조하세요 Item[Int32]. |
| IList.Remove(Object) |
이 멤버에 대한 설명은 을 참조하세요 Remove(Object). |
확장명 메서드
| Name | Description |
|---|---|
| AsParallel(IEnumerable) |
쿼리의 병렬 처리를 사용하도록 설정합니다. |
| AsQueryable(IEnumerable) |
IEnumerable IQueryable변환합니다. |
| Cast<TResult>(IEnumerable) |
IEnumerable 요소를 지정된 형식으로 캐스팅합니다. |
| OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable 요소를 필터링합니다. |