示例#1
0
        /// <summary>
        /// Default PropertyChanged processing
        /// </summary>
        /// <param name="s"></param>
        /// <param name="changeType">invalidate</param>
        protected void OnPropertyChangedEx(string s, VisualChangeType changeType)
        {
            OnPropertyChanged(new PropertyChangedEventArgs(s));

            if (changeType == VisualChangeType.Layout)
                InvalidateLayout();
            else
                InvalidateRender();
        }
示例#2
0
 /// <summary>
 /// Default PropertyChanged processing
 /// </summary>
 /// <param name="s"></param>
 /// <param name="changeType">invalidate</param>
 protected void OnPropertyChangedEx(string s, VisualChangeType changeType)
 {
     OnPropertyChanged(new VisualPropertyChangedEventArgs(s, changeType));
 }