locked
why like this? RRS feed

Answers

  • Move your event hookup inside of a method

    public MainPage()
    {
        this.InitializeComponent();
        Window.Current.SizeChanged += Current_SizeChanged;
    }
    
    Good luck
    Hassan

    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
    Wednesday, August 7, 2013 1:38 AM
    Moderator

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 AM
    Moderator
  • 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
    Wednesday, August 7, 2013 1:38 AM
    Moderator
  • Move your event hookup inside of a method

    public MainPage()
    {
        this.InitializeComponent();
        Window.Current.SizeChanged += Current_SizeChanged;
    }
    
    Good luck
    Hassan

    Wednesday, August 7, 2013 5:11 AM