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 を取得します。

適用対象