- 0
Stretch MediaElement XAML/C# on Win Store App
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
New System32 files suggest Microsoft may ditch UWP for XAML and Win32-based Windows 11 Shell 1 2
By hellowalkman,
- microsoft
- windows 11
- (and 11 more)
- 33 replies
- 4 views
-
Bug or feature? Microsoft might be working on movable Taskbar on Windows 11 after all 1 2
By hellowalkman,
- windows 11 taskbar
- windows 11
- (and 5 more)
- 32 replies
- 3 views
-
Microsoft Weekly: Ads for Edge, the next major update for Windows 11, and bugs
By Usama Jawad96,
- microsoft
- microsoft weekly
- (and 22 more)
- 0 replies
- 2 views
-
Microsoft may soon ditch DirectUI and move to XAML, WinAppSDK on next-gen Windows 11
By hellowalkman,
- windows 11 gallery
- windows 11 ui
- (and 17 more)
- 20 replies
- 3 views
-
- 3 replies
- 1,871 views
-
Question
James Rose
Hello gang,
I am working on a media player and I am using the MediaElement, in Framework 4.5 there is a "Stretch" property, but for Windows Store Apps this property is not available. Some quick Googling and I found that I should be using the ViewBox to handle my issue. But it's not working. What dumb@$$ thing am I doing wrong?
I have attempted several different changes to the Alignment, but without the hoped result. Meaning; My monitor's resolution is 1920 x 1080, but the same clip is 480 x 360, I want this clip stretched to fill all space to avoid the black bars on the left and right sides (in this example) Am I understanding what this should do?
Thanks,
James
Link to comment
Share on other sites
4 answers to this question
Recommended Posts