/// <summary> /// Show the caption settings /// </summary> /// <param name="command">the command</param> public void ShowCaptionSettings() { if (this.OnLoadCaptionSettings != null) { this.OnLoadCaptionSettings(this, new CustomCaptionSettingsEventArgs(this.Settings)); } var flyout = new CaptionSettingFlyout { CaptionSettings = this.Settings, Style = this.SettingsFlyoutStyle, ControlStyle = this.SettingsControlStyle, Title = this.Label, IconSource = this.IconSource }; flyout.OnApplyCaptionSettings += this.OnApplyCaptionSettings; flyout.Unloaded += this.OnUnloaded; flyout.Show(); }
/// <summary> /// Show the caption settings /// </summary> /// <param name="command">the command</param> private void OnShowCaptionSettings(IUICommand command) { if (this.OnLoadCaptionSettings != null) { this.OnLoadCaptionSettings(this, new CustomCaptionSettingsEventArgs(this.Settings)); } var flyout = new CaptionSettingFlyout { CaptionSettings = this.Settings, Style = this.SettingsFlyoutStyle, ControlStyle = this.SettingsControlStyle, Title = this.Label, IconSource = this.IconSource }; flyout.OnApplyCaptionSettings += this.OnApplyCaptionSettings; flyout.Unloaded += this.OnUnloaded; flyout.Show(); }