You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
When using a MediaPlayerElement in XAML, there were a couple properties on MediaPlayerElement's MediaPlayer instance I wanted to set/bind in XAML.
The properties I needed to set were IsLoopingEnabled and IsMuted. <MediaPlayerElement IsMuted="True" IsLoopingEnabled="True"/>
However, these properties aren't available on MediaPlayerElement.
Describe the solution
The solution I ended up creating was using behaviors to set the properties on the MediaPlayer. Using them in XAML would look like this:
Describe the problem this feature would solve
When using a MediaPlayerElement in XAML, there were a couple properties on MediaPlayerElement's MediaPlayer instance I wanted to set/bind in XAML.
The properties I needed to set were IsLoopingEnabled and IsMuted.
<MediaPlayerElement IsMuted="True" IsLoopingEnabled="True"/>However, these properties aren't available on MediaPlayerElement.
Describe the solution
The solution I ended up creating was using behaviors to set the properties on the MediaPlayer. Using them in XAML would look like this:
And something similar can be done for the IsMuted property
Describe alternatives you've considered
Ideally it would be great if there was a built-in solution to access these properties, but I don't know of any alternatives at this time.