public StartScreen() { InitializeComponent(); Loaded += (sender, e) => { Usage.Text = AboutWindow.GetUsageText(((EditorViewModel)DataContext).Singletons.MetadataInfo.VersionNumber); }; }
public StartScreen() { InitializeComponent(); Loaded += (sender, e) => { var version = ((EditorViewModel)DataContext)?.Singletons.MetadataInfo; Usage.Text = AboutWindow.GetUsageText(version); }; }