Exemple #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string theme = ThemeChanger.GetCurrentTheme().ToString();

            if (value is Logic.FileManager.Item.File fi)
            {
                return($"/FileExplorer;component/GUI/Themes/{theme}/Images/File.png");
            }
            else if (value is Logic.FileManager.Item.LinkFile)
            {
                return($"/FileExplorer;component/GUI/Themes/{theme}/Images/LinkFile.png");
            }
            else if (value is Logic.FileManager.Item.Folder)
            {
                return($"/FileExplorer;component/GUI/Themes/{theme}/Images/Folder.png");
            }
            else
            {
                return($"/FileExplorer;component/GUI/Themes/{theme}/Images/SomeFile.png");
            }
        }
 public void ChangeTheme()
 {
     CurrentDictionary.MergedDictionaries[0].Source = ThemeChanger.GetCurrentTheme().ToUri();
     (IndexPageGrid.Children[0] as IndexControl).ChangeTheme();
 }
Exemple #3
0
 public void ChangeTheme()
 {
     CurrentDictionary.MergedDictionaries[0].Source = ThemeChanger.GetCurrentTheme().ToUri();
 }