/// <summary> /// Handles changes to the ItemChangedInfo property. /// </summary> private static void OnItemChangedInfoChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AdaptiveWrapPanel target = (AdaptiveWrapPanel)d; object oldItemChangedInfo = (object)e.OldValue; object newItemChangedInfo = target.ItemChangedInfo; target.OnItemChangedInfoChanged(oldItemChangedInfo, newItemChangedInfo); }
private static void OnSearchTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AdaptiveWrapPanel target = (AdaptiveWrapPanel)d; string oldSearchText = (string)e.OldValue; string newSearchText = target.SearchText; target.OnSearchTextChanged(oldSearchText, newSearchText); }