コード例 #1
0
        public MenuPage()
        {
            InitializeComponent();
            this.BeginAnimation(Page.OpacityProperty, new DoubleAnimation(1.0, new Duration(TimeSpan.FromSeconds(1.0))));

            this.Cursor  = Cursors.None;
            this.Loaded += MenuPage_Loaded;

            Options.Shown        += this.ReenableCursor;
            Options.Entered      += (s, args) => { OptionDescription.Text = MenuScreen.GetDescriptionForOption((s as TextBlock).Text); };
            Options.Selected     += Options_Selected;
            Options.Transitioned += (s, args) => { MenuGrid.MouseRightButtonDown += MenuPage_MouseRightButtonDown; };
        }