Unable to access application buttons from C # (Windows Phone 7)

I am writing a Windows Phone 7 application and want to programmatically access the application panel buttons when the page loads. But they always seem to be zero. I tried to access the button in the following cases:

  • Page Contractor (after calling InitializeComponent)
  • Loaded Event Handler Page
  • StateChangedApplication Event Handler >

Individual buttons do not display an event Loaded. Am I breaking the rules here? Why can't I access app bar buttons using C #?

+3
source share
2 answers

CTP, , .

ApplicationBar

, , , .

, Application Bar . .

ApplicationBar FrameworkElements? -

+5

, Loaded, ApplicationBar.Buttons Text . , , kludgy.

+2

Source: https://habr.com/ru/post/1771397/


All Articles