I just started playing around with windows 8 development and I'm trying to figure out how to make a video whose source is from a url pop to full screen from either a button press or by double clicking on the area where the video is playing. Any idea on how to do that? As a followup, i'd also have to be able to minimize it back to it's normal playing window. Any ideas on how to do this using xaml C#?
Microsoft Media Platform Player Framework, make video fullscreen from button press (or double clicking on video)
2.6k Views Asked by Derick F At
2
There are 2 best solutions below
0
canbax
On
I used this code for fullWindow. It works but in full window it uses default transportcontrols
private void MediaPlayer_IsFullScreenChanged(object sender, Windows.UI.Xaml.RoutedPropertyChangedEventArgs<bool> e)
{
Microsoft.PlayerFramework.MediaPlayer mp = (sender as Microsoft.PlayerFramework.MediaPlayer);
mp.IsFullWindow = !mp.IsFullWindow;
}
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in XAML
- Can't open new instance of another window in my app, in WPF .NET 8
- Visual Studio throwing DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION when I try to add a log
- Deeplinking in .net Maui "Window was allready created"
- MauiApp crashes only in release mode at sideswitch android.os.DeadObjectException
- Move .net maui contents below the drawer when it's opened
- Both `TouchBehavior.CommandParameter` and `TouchBehavior.LongPressCommandParameter` are always passed as `null` to `Command` and `LongPressCommand`
- How do I change the size of a window?
- How can I force a .NET MAUI ContentView to fill the entire remaining space of its FlexLayout parent?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- MAUI-Animating each element of a BindableLayout
- Correctly set RadioButtonGroup for CollectionView in .NET MAUI
- Multiple color schemes depending on build configuration in WPF-application
- Select XAML file based on build configuration (Visual Studio 2022, WPF)
- The type was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
- How can I tell if a control is actually Visible in UWP?
Related Questions in WINDOWS-8
- Rstudio for Windows 8.1 (64bit)?
- visual studio How do I run a windows 2008 ce Solution on VS 2017?
- How to solve a connection refused to localhost error SQLCODE -902?
- Access denied when using findstr windows command
- Signing kernel mode driver for Windows 8.1
- How to create share and grant multiple permissions on Windows8 using script
- Compiling Windows apps for other versions of Windows
- Windows 8 server , IIS 7.5 , .net version 4.6 , ASP.NET_SessionId cookies is not reflecting SameSite attribute
- HOW TO INSTALL A NODE V>14 IN WINDOWS 8?? Please someone help me
- git clone : This application requires one of the following versions of .NET Framework: .NET framework,Version =v4.7.2
- Error running WPF application using ChromiumWebBrowser from CefSharp.Wpf on Windows 8.0 SP1
- How to write programs for Windows RT?
- Flutter update causing error "Flutter requires PowerShell 5.0 or newer" irrecoverable
- Task Scheduler did not launch task "\abc" because instance "(GUID)" of the same task is already running
- VS Code Failed to Install Visual Studio Code Update
Related Questions in MICROSOFT-METRO
- Command failed with exit code 1
- Running 'npm start' gives 'TypeError: runner.metro.getBundler(...).getBundler(...).getWatcher is not a function'
- EMFILE: too many open files, open 'C/...../metro-cache//dd.....'
- React Native: "error Cannot start server in new window because no terminal app was specified"
- Use Array.prototype.with in react-native project
- How can I specify the bundle name in metro with metro.config.js?
- WPF Metro controls with Material Design XAML Toolkit
- Expo Managed Workflow Failing to Build in Fastlane Step (Metro Config Error)
- Find all installed AppX apps from .NET Framework, display icons, launch them
- error: TypeError: Cannot read properties of undefined (reading 'transformFile')
- CommonOpenFileDialog opens again after has file chosen
- Bordering Sharply in MetroStyle TAB in Metro Tabbed Layout in Windows C# Form Applications
- wpf/xaml styling of a hyperlink that doesn't open the link but rather copies it to clipboard
- Metro Tiles individually resize
- Problems getting title of windowsapps, such as Photos
Related Questions in MMPPF
- How to play .m3u8 in video tag in windows phone using WinJS?
- Why doesn't my audio play in the background?
- PlayerFramework and Media controls
- Error using Windows Phone 8.1 mmppf - getting parse exception when trying to navigate to page
- Playing multiple video streams simultaneously in WP8
- Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )
- Can't get Silverlight Media Framework SMFPlayer to show film full screen or correct aspect ratio
- Microsoft Media Platform Player Framework, make video fullscreen from button press (or double clicking on video)
- Unhandled exception in Silverlight : System.Exception
- Microsoft Media Platform + Forms Authentification
- Are there any known compatibility issues with Microsoft Media Platform: Player Framework (formerly SMF) and Silverlight 5?
- Find connected video devices
- creating a play / pause toggle switch
- smf player timeline property
- Upgraded App that uses SL Media Framework and MVVM-Lite from WP7 to WP7.1
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The player framework has a boolean property called IsFullScreen to manage the fullscreen state. However, you need to do the work yourself to hide extra elements on the page and/or resize the mediaplayer. The recommended approach is to set this property and handle the IsFullScreenChanged event. For example:
Note: there is also a property on MediaPlayer call IsFullScreenVisible that you can set to true to show the fullscreen toggle button in the default control strip.