Skip to content

Conversation

@mfkl
Copy link
Member

@mfkl mfkl commented Jan 26, 2026

No description provided.

mfkl added 2 commits January 26, 2026 13:36
When VideoView is placed inside a Viewbox, the native window size was not
matching the visual size due to Viewbox applying a RenderTransform rather
than changing the actual Bounds.

This fix uses window subclassing to intercept WM_WINDOWPOSCHANGING messages
and enforce the correct scaled size calculated via PointToScreen, which
accounts for all visual transforms including Viewbox scaling.
Use TransformToVisual instead of PointToScreen to calculate the
scaled size, which avoids feedback loops caused by the native
window's current size affecting the calculation.

Add ArrangeOverride to update the scaled size before the native
window is resized, which fixes scaling when parent layout changes
(e.g., GridSplitter resizing rows inside a Viewbox).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant