コード例 #1
0
        private static void OnSelectedItemKeyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GalleryToolBehavior behavior = d as GalleryToolBehavior;

            if (behavior != null)
            {
                behavior.OnSelectedItemKeyChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
コード例 #2
0
        private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GalleryToolBehavior behavior = d as GalleryToolBehavior;

            if (behavior != null)
            {
                behavior.OnItemsSourceChanged((IEnumerable)e.OldValue, (IEnumerable)e.NewValue);
            }
        }