microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.35k stars 678 forks source link

Problem with clipping large PathFigure with LineSegments #6716

Open HavenDV opened 2 years ago

HavenDV commented 2 years ago

Describe the bug

At certain large sizes, the PathFigure will be cut off at the top and left if its right and bottom edges are far away. Initially, the problem manifested itself in this issue: https://github.com/oxyplot/oxyplot/issues/1848 This works correctly in UWP. Workaroung: Use PolyLineSegment

Steps to reproduce the bug

ClippingPathIssue.zip

  1. Build and run H.OxyPlot.Apps.WinUI
  2. You will see that the shape is cut off at the top. You can hold down Ctrl and roll your mouse wheel to see how this problem manifests itself as you increase the size.
  3. Here is a UWP project for comparison

Expected behavior

Like UWP

Screenshots

Initial:
image

Zoomed:
image

UWP Zoomed: image

NuGet package version

1.0.0

Packaging type

Unpackaged

Windows version

Windows 11 version 21H2 (22000)

IDE

Visual Studio 2022-preview

Additional context

No response

StephenLPeters commented 2 years ago

@gegao18 and @codendone FYI

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

HavenDV commented 1 year ago

Up