Exemplo n.º 1
0
        private static void OnSpriteDatabaseChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionControl control = (SpriteSelectionControl)d;

            /*if (e.OldValue is SpriteDatabase oldSpriteDb)
             *      oldSpriteDb.BuildComplete -= control.OnSpriteDatabaseBuildComplete;
             * if (e.NewValue is SpriteDatabase newSpriteDb)
             *      newSpriteDb.BuildComplete += control.OnSpriteDatabaseBuildComplete;*/
        }
Exemplo n.º 2
0
        private static void OnGroupsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SpriteSelectionControl control = (SpriteSelectionControl)d;

            control.UpdateGroups();
        }