Skip to main content

Microsoft Silverlight

Answered Question Silver light STOPS responding on break point hit, when in FullScreenModeRSS Feed

(0)

sudheeshwarrier
sudheesh...

Member

Member

77 points

33 Posts

Silver light STOPS responding on break point hit, when in FullScreenMode

I added a break point in a function and called that function from FullScreen_Changed Event.

Silverlight immediately stopped responding and went into a hang state.

Am i the only one facing this issue or this is a known issue?

To make FullScreen:

Application.Current.Host.Content.IsFullScreen = true;

Sudheesh Warrier,
Keep it Simple...

Skyrunner
Skyrunner

Contributor

Contributor

2489 points

485 Posts

Silverlight MVP

Re: Silver light STOPS responding on break point hit, when in FullScreenMode

I just trying and no problem for me.

Code you post some code, but it's strange.

sudheeshwarrier
sudheesh...

Member

Member

77 points

33 Posts

Re: Re: Silver light STOPS responding on break point hit, when in FullScreenMode

Yupe, code is here:

public partial class Page : UserControl

{

public Page()

{

InitializeComponent();

Application.Current.Host.Content.FullScreenChanged+=new EventHandler(Content_FullScreenChanged);

 

}

void Content_FullScreenChanged(Object sender, EventArgs e)

{ //Add a breakpoint here...

}

private void Rectangle_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)

{

Application.Current.Host.Content.IsFullScreen = true;

}

}

 

 

//One rectangle is added from the Xmal, and MouseLeftDown is handeled to the mentioned function.

Sudheesh Warrier,
Keep it Simple...

Skyrunner
Skyrunner

Contributor

Contributor

2489 points

485 Posts

Silverlight MVP
Answered Question

Re: Re: Silver light STOPS responding on break point hit, when in FullScreenMode

Well, it works.

The event FullScreenChanged is fired 2 times, but Silverlight still works.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities