Esempio n. 1
0
        private static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            GenericWindowView shell = o as GenericWindowView;

            if (shell != null)
            {
                shell.OnScaleValueChanged((double)e.OldValue, (double)e.NewValue);
            }
        }
Esempio n. 2
0
        public static object OnCoerceScaleValue(DependencyObject o, object value)
        {
            GenericWindowView shell = o as GenericWindowView;

            if (shell != null)
            {
                return(shell.OnCoerceScaleValue((double)value));
            }
            else
            {
                return(value);
            }
        }