/// <summary> /// Handles changes to the PageWidth property. /// </summary> /// <param name="d">LauncherPanel</param> /// <param name="e">DependencyProperty changed event arguments</param> private static void OnPageWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PanoramaPanel fwPanel = (PanoramaPanel)d; double oldWidth = (double)e.OldValue; double newWidth = fwPanel.PageWidth; fwPanel.OnPageWidthChanged(oldWidth, newWidth); fwPanel.InvalidateMeasure(); }
/// <summary> /// Handles changes to the PageHeight property. /// </summary> /// <param name="d">LauncherPanel</param> /// <param name="e">DependencyProperty changed event arguments</param> private static void OnPageHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PanoramaPanel fwPanel = (PanoramaPanel)d; double oldHeight = (double)e.OldValue; double newHeight = fwPanel.CellHeight; fwPanel.OnCellHeightChanged(oldHeight, newHeight); fwPanel.InvalidateMeasure(); }