BindablePropertyKey 클래스

정의

제한된 쓰기 액세스로 BindableProperty를 구현하는 데 사용되는 BindableProperty에 비밀 키입니다.

public sealed class BindablePropertyKey
type BindablePropertyKey = class
상속
BindablePropertyKey

설명

다음 예제에서는 BindablePropertyKey를 만드는 방법을 보여줍니다. 쓰기 액세스는 이지만 internal 읽기 액세스는 입니다 public.

class Bindable : BindableObject
{
  internal static readonly BindablePropertyKey FooPropertyKey = 
    BindableProperty.CreateReadOnly<Bindable, string> (w => w.Foo, default(string));

  public static readonly BindableProperty FooProperty = FooPropertyKey.BindableProperty;

  public string Foo {
    get { return (string)GetValue (FooProperty); }
    internal set { SetValue (FooPropertyKey, value); } 
  }
}

속성

BindableProperty

BindableProperty를 가져옵니다.

적용 대상