private static void OnPageIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PageBar pageBar = (PageBar)d; pageBar.ReFreshPageBar(); int oldValue = (int)e.OldValue; int newValue = (int)e.NewValue; RoutedPropertyChangedEventArgs <int> args = new RoutedPropertyChangedEventArgs <int>(oldValue, newValue); args.RoutedEvent = PageBar.PageIndexChangedEvent; pageBar.RaiseEvent(args); pageBar.PageIndexChangedCommand?.Execute(newValue); }
private static void OnTotalChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PageBar pageBar = (PageBar)d; pageBar.ReFreshPageBar(); }