private void AddActions(ActionControlsBundle actionControls) { foreach (var actionControl in actionControls.GetActionControls()) { // only the viewmodel is added here, as the action control is set as the content property of the viewmodel ActionsTabUserControl.ViewModel.AddAction(actionControl.ActionViewModel); } }
public ProfileSettingsWindow(ProfileSettingsViewModel profileSettingsViewModel, ActionControlsBundle actionControls, ITranslator translator, IUserGuideHelper userGuideHelper) { _userGuideHelper = userGuideHelper; DataContext = profileSettingsViewModel; InitializeComponent(); AddActions(actionControls); translator.Translate(this); }