Skip to content

Fix Windows Media Element Controls #2680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ne0rrmatrix
Copy link
Contributor

  • Bug fix

Description of Change

Update customTransportcontrols style properties

Changed the Width property to Auto and added a
MaxWidth property referencing MediaTransportControlsMaxWidth.
Removed the previous Width setting for improved layout flexibility.

Linked Issues

PR Checklist

Additional information

This updates the xaml for Media Elements controls in windows to more closely align behavior when using small video dimension sizes. Unlike previous PR this does not update the sample app.

Changed the `Width` property to `Auto` and added a
`MaxWidth` property referencing `MediaTransportControlsMaxWidth`.
Removed the previous `Width` setting for improved layout flexibility.
@Copilot Copilot AI review requested due to automatic review settings May 30, 2025 19:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the Windows Media Element controls by updating the custom transport controls' style properties to improve layout flexibility.

  • Replaces the fixed Width setter with a dynamically computed MaxWidth property.
  • Sets the Width property to "Auto" to better adapt to content.
Comments suppressed due to low confidence (1)

src/CommunityToolkit.Maui.MediaElement/ResourceDictionary.windows.xaml:9

  • [nitpick] Consider placing the MaxWidth and Width setters together in a logical grouping for readability and maintainability; verify that the order does not unintentionally affect layout behavior.
<Setter Property="MaxWidth" Value="{StaticResource MediaTransportControlsMaxWidth}" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Media Element Popup Dimensions
1 participant