silverlight - Open SmoothStreamingMediaElement fullscreen -


I want to open a SmoothStreamingMediaElement in full screen and can not use video brushes as it is the MediaElement UI type then I try to extract the element from it to the grid for the new grid but in this case it is to reload and re-run the movie there anyway to remove it without adding or adding control or any other options fullscreen A I am using the code that is to open in

<> videoWindow.Children.Remove (MediaElement) pre; Full screengrid Visibility = visibility Visible; FullScreenGrid.Children.Add (MediaElement);

You proberly found a solution so far, but maybe someone else will find this.

I had the same problem as you and ended up using this simple class:

  public class ExtendedSmoothStreamingElement: SmoothStreamingMediaElement {#region MediaElement (DependencyProperty) Public Fixed read-only DependencyProperty MediaElementProperty = DependencyProperty. Controls ("MediaAlment", Typef (MediaAlment), Typef (ExtendedSoftwareStreaming Element), blank;); Public Media Element Media Element {Received} Return (Media Element) Gateville (MediaAland Property); } Set {Set Value (MediaAntributeProperty, Value); }} #thrion public override zero onplatform () {base.OnApplyTemplate (); MediaAlment = (MediaAlment) GetTemplateChild ("Media Element"); }}  

Exposes used by the inner MediaElement SmoothStreamingMediaElement .

One more thing is that you can do the SmoothStreamingMediaElement.Visiblity property set and you can do the usual MediaElement with collapsed, Did not play a video.


Comments