Answered by:
why like this?

Question
-
how i resolve it?
Wednesday, August 7, 2013 12:55 AM
Answers
-
Move your event hookup inside of a method
public MainPage() { this.InitializeComponent(); Window.Current.SizeChanged += Current_SizeChanged; }
Good luck
Hassan- Proposed as answer by Oleg Kurzov Wednesday, August 7, 2013 7:33 AM
- Marked as answer by Xiaoliang Chen - MSFTModerator Sunday, August 11, 2013 6:28 AM
Wednesday, August 7, 2013 5:11 AM -
That line is correct, assuming that WindowSizeChanged is a function with an appropriate signature:
void WindowSizeChanged(object sender, Windows.UI.Core.WindowSizeChangedEventArgs e) { throw new NotImplementedException(); }
--Rob- Marked as answer by Xiaoliang Chen - MSFTModerator Sunday, August 11, 2013 6:28 AM
Wednesday, August 7, 2013 1:38 AMModerator
All replies
-
Hi hang333,
You will need to provide more information about the problem. Just posting a screenshot is not helpful, especially when it is shrunk too far to read.
--Rob
Wednesday, August 7, 2013 1:05 AMModerator -
i want make snapped view etc
but it show this error
error at
Window.Current.SizeChanged += WindowSizeChanged;
Wednesday, August 7, 2013 1:13 AM -
That line is correct, assuming that WindowSizeChanged is a function with an appropriate signature:
void WindowSizeChanged(object sender, Windows.UI.Core.WindowSizeChangedEventArgs e) { throw new NotImplementedException(); }
--Rob- Marked as answer by Xiaoliang Chen - MSFTModerator Sunday, August 11, 2013 6:28 AM
Wednesday, August 7, 2013 1:38 AMModerator -
Move your event hookup inside of a method
public MainPage() { this.InitializeComponent(); Window.Current.SizeChanged += Current_SizeChanged; }
Good luck
Hassan- Proposed as answer by Oleg Kurzov Wednesday, August 7, 2013 7:33 AM
- Marked as answer by Xiaoliang Chen - MSFTModerator Sunday, August 11, 2013 6:28 AM
Wednesday, August 7, 2013 5:11 AM