public static void OnCollectionBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExtendedPivotViewer pv = (ExtendedPivotViewer)d; try { pv.CollectionViewBackground.Fill = e.NewValue as Brush; } catch (Exception) { } }
public static void OnShowFilterPaneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExtendedPivotViewer pv = (ExtendedPivotViewer)d; try { pv.FilterPaneView.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed; } catch (Exception) { } }
public static void OnInfoPaneBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExtendedPivotViewer pv = (ExtendedPivotViewer)d; try { pv.InfoPaneViewBackgroundRectangle.Fill = e.NewValue as Brush; } catch (Exception) { } }
public static void OnFilterPaneBackgroundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExtendedPivotViewer pv = (ExtendedPivotViewer)d; try { pv.FilterPaneViewBackgroundRectangle2.Fill = new SolidColorBrush(Colors.Transparent); pv.FilterPaneViewBackgroundRectangle.Fill = e.NewValue as Brush; } catch (Exception) { } }