12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- using VocabManager.ViewModel;
- using Microsoft.Phone.Shell;
- namespace VocabManager.View
- {
- public partial class HelpView : UserControlBase
- {
- ApplicationBarIconButton _returnMainPageButton;
- public HelpView()
- {
- InitializeComponent();
- _returnMainPageButton = new ApplicationBarIconButton(new Uri(IconUrls.Back, UriKind.Relative));
- _returnMainPageButton.Text = "start";
- _returnMainPageButton.Click += new EventHandler(_returnMainPageButton_Click);
- }
- void _returnMainPageButton_Click(object sender, EventArgs e)
- {
- App.Instance.MainPage.LoadWelcomeView();
- }
- protected override void OnLoad()
- {
- base.OnLoad();
- StoreAppBarButtons();
- ContainerPage.ApplicationBar.Buttons.Clear();
- ContainerPage.ApplicationBar.Buttons.Add(_returnMainPageButton);
- }
- }
- }
|