public UcBatchListBox() { FileExplorer = new FileExplorer.Controller.Controller(new FileExplorer.Model.DirInfo(new DirectoryInfo(@"../../XML"))); InitializeComponent(); BatchListFileExplorer.DataContext = FileExplorer; DependencyPropertyDescriptor rootDirectoryDescriptor = DependencyPropertyDescriptor.FromProperty(UcBatchListBox.RootDirectoryProperty, typeof(UcBatchListBox)); rootDirectoryDescriptor.AddValueChanged(this, RootDirectoryChange); DependencyPropertyDescriptor currentProfilDescriptor = DependencyPropertyDescriptor.FromProperty(UcBatchListBox.CurrentProfilProperty, typeof(UcBatchListBox)); currentProfilDescriptor.AddValueChanged(this, CurrentProfilChange); }
public UcAdminPannel() { FileExplorer = new FileExplorer.Controller.Controller(); InitializeComponent(); RootDirectoryExplorer.DataContext = FileExplorer; }