Esempio n. 1
0
        private static void OnSpriteOriginChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionViewer control = (SpriteSelectionViewer)d;

            if (!control.IsEmpty)
            {
                control.UpdateLines();
            }
        }
Esempio n. 2
0
        private static void OnExpandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionViewer control = (SpriteSelectionViewer)d;

            if (!control.IsEmpty)
            {
                control.UpdatePartChanges();
            }
            //control.UpdateExpand();
        }
Esempio n. 3
0
        private static void OnSpriteSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionViewer control = (SpriteSelectionViewer)d;
            Size previousSize             = (Size)e.OldValue;

            if (!control.IsEmpty)
            {
                control.validSpriteSize = control.SpriteSize;
                if (previousSize.Width == 0 || previousSize.Height == 0)
                {
                    control.UpdateEmptyChanged();
                }
                control.UpdatePartChanges();
            }
            else
            {
                control.UpdateEmptyChanged();
            }
        }
Esempio n. 4
0
        private static void OnCenteredChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionViewer control = (SpriteSelectionViewer)d;

            control.CenterToggled();
        }
Esempio n. 5
0
 private static void OnScaleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     SpriteSelectionViewer control = (SpriteSelectionViewer)d;
 }