예제 #1
0
        private static void PathChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ExplorerControl explorer = (ExplorerControl)d;

            explorer.GetEntries();
            explorer.SelectEntry((string)e.OldValue, true);
        }
예제 #2
0
        //private static void ImageSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        //{
        //    //ExplorerControl explorer = (ExplorerControl)d;
        //    //explorer.GetEntries();
        //}

        public static object CoerceImageSize(DependencyObject d, object baseValue)
        {
            ExplorerControl explorer = (ExplorerControl)d;

            return(IconInfo.GetImageSize(explorer.IconSize));
        }
예제 #3
0
        private static void IconSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ExplorerControl explorer = (ExplorerControl)d;

            explorer.CoerceValue(ImageSizeProperty);
        }