예제 #1
0
        /// <summary>
        ///     Handles changes to the ItemHeight property.
        /// </summary>
        /// <param name="d">LauncherPanel</param>
        /// <param name="e">DependencyProperty changed event arguments</param>
        private static void OnCellHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PanoramaPanel fwPanel       = (PanoramaPanel)d;
            double        oldItemHeight = (double)e.OldValue;
            double        newItemHeight = fwPanel.CellHeight;

            fwPanel.OnCellHeightChanged(oldItemHeight, newItemHeight);
        }
예제 #2
0
        /// <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();
        }