Exemplo 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);
            }
        }
Exemplo 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);
            }
        }