WPF XAML時間の書式属性をバインド

オリジナル: WPF XAML時間が結合特性を書式設定

 

XAML時間は書式{誕生結合、StringFormat = 'YYYY-MM-DD'}

パブリッククラスAssetClass:INotifyPropertyChangedの

    {
        プライベート文字列MYCLASS。


        公共のStringクラスは
        {
            {リターンのMyClassを取得します。}
            集合{
                MYCLASS =値。
                RaisePropertyChangeEvent( "クラス")。
            }
        }


        プライベートダブルファンド。


        公共ダブル基金
        {
            {リターンファンドを取得します。}
            集合{
                ファンド=値。
                RaisePropertyChangeEvent( "ファンド")。
            }
        }


        プライベートダブル合計。


        公共ダブル合計
        {
            {リターンの合計を取得します。}
            集合{
                合計=値。
                RaisePropertyChangeEvent( "合計")。
            }
        }


        プライベートダブルベンチマーク。


        公共ダブルベンチマーク
        {
            {戻りベンチマークを取得します。}
            集合{
                ベンチマーク=値。
                RaisePropertyChangeEvent( "ベンチマーク");
            }
        }

 

        #region INotifyPropertyChangedのメンバー


        公開イベントPropertyChangedEventHandlerのPropertyChanged;


        プライベート無効RaisePropertyChangeEvent(文字列propertyNameの)
        {
            (!のPropertyChanged = NULL)があれば
                this.PropertyChanged(これを、新しいPropertyChangedEventArgs(propertyNameの));
            
        }


        #endregion
    }

おすすめ

転載: www.cnblogs.com/lonelyxmas/p/12075374.html