Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Drag and Drop Controls scale incorrectly with Viewbox on 4k screens #101

Copy link
Copy link

Description

@sopgenorth
Issue body actions

With a 4K screen, wrapping an object (e.g., textBlock) in a ViewBox that's set to NaN for height/width and stretch, the drag-and-drop controls grow excessively in size.

If a height and width are set for the ViewBox though, then the controls are normal-sized.

Here's a picture of the issue:
Giant Controls

And the XAML in a simple example:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="640"
        Height="480">
  <Canvas>
    <Grid Width="120" Height="100">
      <Viewbox Canvas.Left="246" Canvas.Top="184">
        <TextBlock Text="TextBlock" />
      </Viewbox>
    </Grid>
  </Canvas>
</Window>
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.