- 0
XAML ApplicationBar Click causes XAMLParse exception
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 24 replies
- 8 views
-
Yes, you can run Windows Phone on a MacBook, in case you were wondering
By John Callaham,
- microsoft
- windows phone
- (and 3 more)
- 8 replies
- 5 views
-
New System32 files suggest Microsoft may ditch UWP for XAML and Win32-based Windows 11 Shell 1 2
By hellowalkman,
- microsoft
- windows 11
- (and 11 more)
- 33 replies
- 4 views
-
Former Microsoft Windows Phone exec says wireless carrier salespeople hurt its prospects 1 2
By John Callaham,
- microsoft
- windows phone
- (and 2 more)
- 37 replies
- 4 views
-
Microsoft CEO Satya Nadella believes "we could have made" Windows Phone work 1 2
By John Callaham,
- microsoft
- windows phone
- (and 3 more)
- 48 replies
- 6 views
-
Question
James Rose
Hello gang,
I'm writing a Phone app but when I add: Click="Refresh_Click" and attempt to run the app I get this error:
XAMLParseException: A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in System.Windows.ni.dll
The error occurs on InitializeComponent(); When I remove Click="Refresh_Click", the app runs fine. What dumbass thing am I doing?
EDIT: I have also noticed that if I attempt to access the control after init, even without the code, the object is null. daHe!!?
Thanks kindy.
XAML:
C#
Link to comment
Share on other sites
1 answer to this question
Recommended Posts