CommandBindingCollection 클래스
이 문서의 내용
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
CommandBinding 개체의 컬렉션을 나타냅니다.
public ref class CommandBindingCollection sealed : System::Collections::IList
public sealed class CommandBindingCollection : System.Collections.IList
type CommandBindingCollection = class
interface IList
interface ICollection
interface IEnumerable
type CommandBindingCollection = class
interface ICollection
interface IEnumerable
interface IList
Public NotInheritable Class CommandBindingCollection
Implements IList
- 상속
-
CommandBindingCollection
- 구현
다음 예제에서는 CommandBinding 에 추가 합니다 CommandBindingCollection 의 Window합니다.
<Window x:Class="SDKSamples.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:custom="clr-namespace:SDKSamples"
Height="600" Width="800"
>
<Window.CommandBindings>
<CommandBinding Command="{x:Static custom:Window1.CustomRoutedCommand}"
Executed="ExecutedCustomCommand"
CanExecute="CanExecuteCustomCommand" />
</Window.CommandBindings>
CommandBinding customCommandBinding = new CommandBinding(
CustomRoutedCommand, ExecutedCustomCommand, CanExecuteCustomCommand);
// attach CommandBinding to root window
this.CommandBindings.Add(customCommandBinding);
Dim customCommandBinding As New CommandBinding(CustomRoutedCommand, AddressOf ExecutedCustomCommand, AddressOf CanExecuteCustomCommand)
' attach CommandBinding to root window
Me.CommandBindings.Add(customCommandBinding)
파생 되는 모든 개체 UIElement 가 CommandBindingCollection 라는
Command |
CommandBindingCollection 클래스의 새 인스턴스를 초기화합니다. |
Command |
지정된 CommandBindingCollection의 항목을 사용하여 IList 클래스의 새 인스턴스를 초기화합니다. |
Count |
이 CommandBinding에 있는 CommandBindingCollection 항목의 수를 가져옵니다. |
Is |
이 CommandBindingCollection의 크기가 고정되어 있는지 여부를 나타내는 값을 가져옵니다. |
Is |
이 CommandBindingCollection이 읽기 전용인지 여부를 나타내는 값을 가져옵니다. |
Is |
이 CommandBindingCollection에 대한 액세스가 동기화되어 스레드로부터 안전하게 보호되는지 여부를 나타내는 값을 가져옵니다. |
Item[Int32] |
지정된 인덱스에 있는 CommandBinding를 가져오거나 설정합니다. |
Sync |
CommandBindingCollection에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다. |
ICollection. |
이 멤버에 대한 설명은 CopyTo(Array, Int32)를 참조하세요. |
IList. |
이 멤버에 대한 설명은 Add(Object)를 참조하세요. |
IList. |
이 멤버에 대한 설명은 Contains(Object)를 참조하세요. |
IList. |
이 멤버에 대한 설명은 IndexOf(Object)를 참조하세요. |
IList. |
이 멤버에 대한 설명은 Insert(Int32, Object)를 참조하세요. |
IList. |
이 멤버에 대한 설명은 Item[Int32]를 참조하세요. |
IList. |
이 멤버에 대한 설명은 Remove(Object)를 참조하세요. |
Cast<TResult>(IEnumerable) |
IEnumerable의 요소를 지정된 형식으로 캐스팅합니다. |
Of |
지정된 형식에 따라 IEnumerable의 요소를 필터링합니다. |
As |
쿼리를 병렬화할 수 있도록 합니다. |
As |
IEnumerable을 IQueryable로 변환합니다. |
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.