public void RaiseNavigatedTo() { if (NavigateTo != null) { NavigateTo.Invoke(); } }
public HomePage() { InitializeComponent(); var version = Assembly.GetAssembly(typeof(ExtendedButton)).GetName().Version; VersionElement.Text = string.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Build); foreach (var button in ControlsPanel.Children.OfType <HyperlinkButton>()) { button.Click += (s, e) => { NavigateTo?.Invoke(this, button.Tag as Type); }; } }