c# - Margin on MediaElement cutting off parts of the video when resized -


When I resize my media element in height in the window, while the video scale is expected, it Also below the lower part of the crop video, which I can see through the definite elements in the video which is disappearing off-screen. As any idea how can I fix this?

XML code

  & lt; Mediaelement x: name = "videoplayer" height = "370" vertical alignment = "top" width = "650" cursor = "hand" section = "uniform" allow = "true" drop = "VideoPlayer_Drop" & gt; & Lt; Button content = "play" height = "21" width = "50" vertical alignment = "bottom" margin = "270,0290,10" />  

Resizing code

  Private zeros window ICITJung (Object Sender, Size Chained Event Here E) {VideoPlayer.Height = MainContainer.Height ; Video Player. With = main container width; Videoplayer.margin = new thickness (0, 0, 0, 32); }  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -