Ejemplo n.º 1
0
        private static void OnVectorValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CustomControlForAnimaion customControl = (CustomControlForAnimaion)obj;

            customControl.Height = Math.Abs(((Vector)args.NewValue).X);
            customControl.Width  = Math.Abs(((Vector)args.NewValue).Y);
        }
Ejemplo n.º 2
0
        private static void OnQuaternionValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CustomControlForAnimaion customControl = (CustomControlForAnimaion)obj;

            customControl.Height  = Math.Abs(((Quaternion)args.NewValue).X + ((Quaternion)args.NewValue).Y);
            customControl.Width   = Math.Abs(((Quaternion)args.NewValue).W);
            customControl.Opacity = Math.Abs(((Quaternion)args.NewValue).Z);
        }
Ejemplo n.º 3
0
        private static void OnCharValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CustomControlForAnimaion customControl = (CustomControlForAnimaion)obj;

            customControl.Height = Convert.ToDouble(Convert.ToInt32(args.NewValue));
        }
Ejemplo n.º 4
0
        private static void OnObjectValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CustomControlForAnimaion customControl = (CustomControlForAnimaion)obj;

            customControl.Content = args.NewValue;
        }