private async Task<string> GetBackgroundColorAsync(IHelpVisualComponent component, RHostClientHelpTestApp clientApp) { string color = "red"; await WaitForReadyAndRenderedAsync(clientApp); await UIThreadHelper.Instance.InvokeAsync(() => { IHTMLElement2 body = component.Browser.Document.Body.DomElement as IHTMLElement2; color = body.currentStyle.backgroundColor as string; }); return color; }
private async Task <string> GetBackgroundColorAsync(IHelpVisualComponent component, RHostClientHelpTestApp clientApp) { string color = "red"; await clientApp.WaitForReadyAndRenderedAsync(DoIdle, nameof(HelpTest)); await UIThreadHelper.Instance.InvokeAsync(() => { IHTMLElement2 body = component.Browser.Document.Body.DomElement as IHTMLElement2; color = body.currentStyle.backgroundColor as string; }); return(color); }
public HelpPreviousCommand(IHelpVisualComponent component) : base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpPrevious)) { _component = component; }
public HelpHomeCommand(IHelpVisualComponent component) : base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpHome)) { }
public HelpRefreshCommand(IHelpVisualComponent component) : base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpRefresh)) { _component = component; }
public HelpRefreshCommand(IHelpVisualComponent component) { _component = component; }
public HelpNextCommand(IHelpVisualComponent component) { _component = component; }
public HelpPreviousCommand(IHelpVisualComponent component) { _component = component; }