2016-05-27 6 views
0

で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); 

答えて

1

おかげビル・ライス;-)

次のコードでは、働いている:

public static readonly BindableProperty CompletedProperty = BindableProperty.CreateAttached(
       "Completed", /* string PropertyName */ 
       typeof(Command), /* Type returnType */ 
       typeof(Entry), /* Type declaringType */ 
       null, /* default value */ 
       BindingMode.OneWay, /* defaultBindingMode */ 
       propertyChanged: (bindable, oldValue, newValue) => { 
        EntryCompletedBehavior.OnCompletedChanged(bindable, (Command)oldValue, (Command)newValue); 
       }); 
関連する問題