public override void LoadContent(AbstractLink wrapper) { base.LoadContent(wrapper); Target = wrapper.Target; var commandGroup = new CommandGroup(); commandGroup.Commands.Add( new RelayCommand(param => UserInterfaceUtilities.OpenBrowser(Target))); commandGroup.Commands.Add( new RelayCommand(param => RootDialogModel.ResetFocus())); Command = commandGroup; }
public override void LoadContent(AbstractLink wrapper) { base.LoadContent(wrapper); SystemUtilities.ControlPanelNames target; Enum.TryParse(wrapper.Target, out target); var commandGroup = new CommandGroup(); commandGroup.Commands.Add( new RelayCommand(param => SystemUtilities.OpenControlPanel(target))); commandGroup.Commands.Add( new RelayCommand(param => RootDialogModel.ResetFocus())); Command = commandGroup; }