wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Arc not resizing correctly

Open ElectroAttacks opened this issue 2 years ago • 0 comments

Describe the bug

When you try resizing the Arc Control by changing its height/ widht properties or refreshing a data binding between them, the control will not behave as expected. The control will only resize based on one of these two properties and you cannot force a redraw.

This behavior leeds to weird graphs that are more like an ellipse than a circle/ proper arc.

To Reproduce

Use the Arc Control within a panel/ grid, so that it's hight is defined by it's container. Bind it's Width property like so: Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"

Resize the Window/ Page multiple times by maximizing it for example.

Expected behavior

The Arc should resize, due to the fact that it's actually receiving the correct values.

Screenshots

No response

OS version

Windows 11 Pro (22H2)

.NET version

.Net 7.0

WPF-UI NuGet version

2.1.0

Additional context

No response

ElectroAttacks avatar Jan 07 '24 01:01 ElectroAttacks