public ContainerDialog(AppSettings settings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ContainerSettingsViewModel(settings.UserProfiles); }
public ContainerDialog(AppSettings settings, string name, string description, bool useParentId, Guid profileId) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ContainerSettingsViewModel(settings.UserProfiles, name, description, useParentId, profileId); }
public WindowContainerSettings(ContainerSettingsViewModel containerSettingsViewModel) { InitializeComponent(); var elContainerSettings = new ElContainerSettings(); elContainerSettings.Initialize(containerSettingsViewModel); MainWrapPanel.Children.Add(elContainerSettings); DataContext = containerSettingsViewModel; KeyDown += OnKeyDown; Closed += Window_OnClosed; }
public void Initialize(ContainerSettingsViewModel containerSettingsViewModel) { DataContext = containerSettingsViewModel; }