Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Full Screen problem with Media Element

Full Screen problem with Media Element

Scheduled Pinned Locked Moved WPF
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pavanip
    wrote on last edited by
    #1

    Hi, I have a Silverlight application in that one page i am having 1-8 videos will present.I placed each media element in seperate canvas. I want to fullscreen one particular media element with outer canvas. For Full screen individula video I have written the following code private void FullscreenChange(object sender, RoutedEventArgs e) { if (SLHost.Content.IsFullScreen) { ToolTipService.SetToolTip(fullscreen, "Full Screen"); ms1.ScaleX = c; ms1.ScaleY = d; SLHost.Content.IsFullScreen = false; } else { ToolTipService.SetToolTip(fullscreen, "Resize"); ms1.ScaleX = ms1.ScaleX * 5.90; ms1.ScaleY = ms1.ScaleY * 4.10; SLHost.Content.IsFullScreen = true; isFullScreen = true; flag = false; } } But here I am using same full screen button to resize video.If I use like this its working properly.But I dont want to use same button for Resize if I press Escape it will go to normal stage but its not working like that if I press Escape button it will go to noraml state but the video size is not reducing to original it is in bigger size only.Can you please guide me what is the mistake i have done.If I press Escape button it has to go to normal state and also it has to reduce the video size like previous size. Thanks in Advance Pavani

    V 1 Reply Last reply
    0
    • P pavanip

      Hi, I have a Silverlight application in that one page i am having 1-8 videos will present.I placed each media element in seperate canvas. I want to fullscreen one particular media element with outer canvas. For Full screen individula video I have written the following code private void FullscreenChange(object sender, RoutedEventArgs e) { if (SLHost.Content.IsFullScreen) { ToolTipService.SetToolTip(fullscreen, "Full Screen"); ms1.ScaleX = c; ms1.ScaleY = d; SLHost.Content.IsFullScreen = false; } else { ToolTipService.SetToolTip(fullscreen, "Resize"); ms1.ScaleX = ms1.ScaleX * 5.90; ms1.ScaleY = ms1.ScaleY * 4.10; SLHost.Content.IsFullScreen = true; isFullScreen = true; flag = false; } } But here I am using same full screen button to resize video.If I use like this its working properly.But I dont want to use same button for Resize if I press Escape it will go to normal stage but its not working like that if I press Escape button it will go to noraml state but the video size is not reducing to original it is in bigger size only.Can you please guide me what is the mistake i have done.If I press Escape button it has to go to normal state and also it has to reduce the video size like previous size. Thanks in Advance Pavani

      V Offline
      V Offline
      Viral Upadhyay
      wrote on last edited by
      #2

      Hi, I think full screen Escape functionality is not supported in Silverlight. But you can use double click. When you double click video which is in full screen mode it will be back to normal size.

      Viral My Site Tips & Tracks

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups