Esempio n. 1
0
        //private void DirectoryExplorerOnTargetUpdated(object sender, DataTransferEventArgs e, bool target)
        //{
        //    var propertyName = e.Property.Name;

        //    switch (propertyName)
        //    {
        //        case nameof(DirectoryExplorer.SelectedItem):
        //            Debug.WriteLine("{1} {0} {1}", propertyName, DirectoryExplorer.SelectedItem,
        //                "=========================");
        //            var binding = DirectoryExplorer.GetBindingExpression(FileSystemExplorerListControl.SelectedItemProperty);
        //            if (target)
        //            {
        //                this.ViewModel.SelectedDirectory = DirectoryExplorer.SelectedItem;
        //                binding?.UpdateSource();
        //            }
        //            //this.ViewModel.OnPropertyChanged(nameof(ViewModel.SelectedDirectory));
        //            break;
        //    }
        //}

        //private void DirectoryExplorerOnPropertyChanged(object sender, PropertyChangedEventArgs e)
        //{
        //    var propertyName = e.PropertyName;
        //    switch (propertyName)
        //    {
        //        case nameof(DirectoryExplorer.SelectedItem):
        //            Debug.WriteLine("{1} {0} {1}", propertyName, DirectoryExplorer.SelectedItem,
        //                "-------------------------");
        //            var binding = DirectoryExplorer.GetBindingExpression(FileSystemExplorerListControl.SelectedItemProperty);
        //            this.ViewModel.OnPropertyChanged(nameof(ViewModel.SelectedDirectory));
        //            break;
        //    }
        //}

        #region Initialization

        private void MainWindow_OnInitialized(object sender, EventArgs e)
        {
            ViewModel.Settings.Theme.Current = TelerikThemes.VisualStudio2013.Blue;
            AppearanceManager.RegisterComponent <SwitchButton>();
            AppearanceManager.RegisterComponent <CollectionEditor>();
            AppearanceManager.RegisterSource <RadBreadcrumb>();
            LoadTheme();
        }