private static void PathChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExplorerControl explorer = (ExplorerControl)d; explorer.GetEntries(); explorer.SelectEntry((string)e.OldValue, true); }
//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)); }
private static void IconSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ExplorerControl explorer = (ExplorerControl)d; explorer.CoerceValue(ImageSizeProperty); }