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

適用対象