Problem with stopping video on back press in UWP

I have a UWP app with NavigationView that handles the backstack in different frames. The back press is handled in my MainPage.xaml by the function:

I have a UWP app with NavigationView that handles the backstack in different frames. The back press is handled in my MainPage.xaml by the function:

private bool On_BackRequested()
        {
            if (contentFrame.CanGoBack)
            {
                contentFrame.GoBack();
                Debug.WriteLine(contentFrame.);
                return true;
            }
            return false;
        }

But the problem arises when there is a MediaPlayerElement playing videos in a frame. The back press is handled properly but the video doesn't stop playing (I know this because the audio from the video is still playing in the background).

How can I stop the video playback during the back press method? Can I access a certain function from the childframe to stop the video?

XAML Islands

In this episode, Robert is joined by Adam Braden. They continue the 2 part conversation they had on modernizing existing Windows applications and have a deeper discussion on XAML Islands. XAML Islands is a technology that enables Windows developers to use new pieces of UI from the Universal Windows Platform (UWP) on their existing Win32 Applications, including Windows Forms and WPF technologies. This enables them to gradually modernize their apps at their own pace, making use of their current code as much as they want.

In this episode, Robert is joined by Adam Braden. They continue the 2 part conversation they had on modernizing existing Windows applications and have a deeper discussion on XAML Islands. XAML Islands is a technology that enables Windows developers to use new pieces of UI from the Universal Windows Platform (UWP) on their existing Win32 Applications, including Windows Forms and WPF technologies. This enables them to gradually modernize their apps at their own pace, making use of their current code as much as they want.


Introducing XAML Studio

As a XAML developer, you may sometimes wish you had the ability to quickly prototype your UI and debug your markup without having to load a project in Visual Studio. This can be a huge workflow boost for designers or even for developers just wanting to try out new ideas. With the release of XAML Studio, we are able to close this grab for creators and also enable much more.

As a XAML developer, you may sometimes wish you had the ability to quickly prototype your UI and debug your markup without having to load a project in Visual Studio. This can be a huge workflow boost for designers or even for developers just wanting to try out new ideas. With the release of XAML Studio, we are able to close this grab for creators and also enable much more.

In this episode, Michael Hawker sits down with Jeremy to introduce us to XAML Studio application. He walks us through the experience of editing and inspecting live XAML updates without the need for a build or compile step. We also get to see demos of the debugging experience, the control toolbox, and even how to work with 3rd party controls.


[T02:40] - What is XAML Studio?

[T03:16] - First look at XAML Studio

[T06:33] - What’s the scope of XAML Studio ?

[T07:55] - Using 3rd party libraries

[T09:16] - Debugging XAML bindings

[T12:52] - What are features might show up next?

[T14:17] - What is the garage?

[T15:48] - Is there support for the visual state manager?

[T16:43] - Exploring the toolbox in XAML Studio

Learn More

Learn Enterprise WPF with XAML from Scratch

Windows Presentation Foundation Masterclass

Top 10 Podcasts for Web Developers

An Introduction to Web Components

Build a Basic Website with ASP.NET MVC and Angular

Building Web App using ASP.NET Web API Angular 7 and SQL Server

gcc compiler on Windows

I'm currently working on pure C++ library in Linux using g++, but from Windows (through VPN). It is very inconvenient because the connection is very slow. I'd like to get library's sources on Windows and use a gcc ported to Windows (e.g. MinGW or CygWin). But I'd like to know to what extent linux gcc compiler is compatible with Windows gcc compiler? Are they built from the same code base?

I'm currently working on pure C++ library in Linux using g++, but from Windows (through VPN). It is very inconvenient because the connection is very slow. I'd like to get library's sources on Windows and use a gcc ported to Windows (e.g. MinGW or CygWin). But I'd like to know to what extent linux gcc compiler is compatible with Windows gcc compiler? Are they built from the same code base?