BindablePropertyKey クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
書き込みアクセス権を制限して 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 を取得します。 |