コード例 #1
0
 public void RaiseNavigatedTo()
 {
     if (NavigateTo != null)
     {
         NavigateTo.Invoke();
     }
 }
コード例 #2
0
        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);
                };
            }
        }