public MainWindow() { InitializeComponent(); packageName.Text = ThisAppInfo.GetDisplayName(); assemblyVersion.Text = ThisAppInfo.GetThisAssemblyVersion(); packageVersion.Text = ThisAppInfo.GetPackageVersion(); installedFrom.Text = ThisAppInfo.GetAppInstallerUri(); installLocation.Text = ThisAppInfo.GetInstallLocation(); DiagnosticsClient.TrackPageView(nameof(MainWindow)); }
private void Button_Click(object sender, RoutedEventArgs e) { DiagnosticsClient.TrackEvent("ClickShowRuntimeInfo"); if (ButtonShowRuntimeVersionInfo.Content.ToString().StartsWith("Show")) { RuntimeVersionInfo.Text = ThisAppInfo.GetDotNetRuntimeInfo(); ButtonShowRuntimeVersionInfo.Content = "Hide Runtime Info"; } else { RuntimeVersionInfo.Text = ""; ButtonShowRuntimeVersionInfo.Content = "Show Runtime Info"; } }