でBindablePropertyを作成し、ここにある:私は私の減価償却のコードを更新したいと思い最新バージョン(減価償却されない)
public static readonly BindableProperty CompletedProperty = BindableProperty.CreateAttached<EntryCompletedBehavior, Command>(
bindable => EntryCompletedBehavior.GetCompleted(bindable), /* staticgetter */
null, /* default value */
BindingMode.OneWay, /* defaultBindingMode */
null, /* validateValue */
(b, o, n) => EntryCompletedBehavior.OnCompletedChanged(b, o, n), /* PropertyChanged */
null, /* PropertyChanging */
null); /* CoerceValue */
しかし、私はPropertyName意味、戻り値の中に入れてわからないんだけど、declaringTypeとPropertyChanged。私はここで、このコードhttp://pause.coffee/blog/...、現在、以下のコードdoes'nt仕事を見つけました:あなたは前を見ればここで
public static readonly BindableProperty CompletedProperty = BindableProperty.CreateAttached(
"Completed", /* string PropertyName */
typeof(Command), /* Type returnType */
typeof(Command), /* Type declaringType */
null, /* default value */
BindingMode.OneWay,
null,
(b, o, n) => EntryCompletedBehavior.OnCompletedChanged(b, o, n),
null,
null);