-
Notifications
You must be signed in to change notification settings - Fork 54
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
🧪 [Experiment] CanvasView - Template and Manipulation enabled Canvas #212
Comments
Have a local stash switching the Manipulation code to |
Realized that to work for more than the current screen (i.e. you want large canvas area in a ScrollViewer) we need to resize the Canvas Width/Height to wrap around contents of Canvas. This will involve more tracking than currently done by the control. Added as a TODO. |
In the sample app the shapes don't follow drag input correctly. The shape and cursor start drifting apart immediately after starting movement, and the gap gets larger as more dragging is done. Unsure if a DPI scaling issue. I was using 125%, but switching to 100% and relaunching the app didn't help. |
Thanks @kmgallahan, was that using UWP or the WindowsAppSDK (or both)? Definitely need to look back into this, was going to investigate trying to do absolute vs. relative positioning like I did for the splitter controls, but that requires storing state, which I don't think I had an easy way to do in the current setup. |
I've removed the height/width properties and the drift is gone. Could it be related to the fact that the clicked position is relative to origin of the dragged control but we are setting the position of the origin of the dragged control? |
How would you approach switching the ItemsControl for a Selector? |
Is here still udate? |
Approved from Toolkit
See previous work here:
Problem Statement (copied from Discussion):
Overview
This experiment adds the following components:
ItemsControl
backed by aCanvas
that allows templating and manipulation of its items (if desired).Using
You can try it out via the NuGet Packages here:
Read more about Preview Packages here.
CommunityToolkit members can also try it out with Codespaces.
TO DO
Implementation Requirements
Not all these items are required to submit a PR. This list is here to help track what is remaining to implement before a technical review and discussion of moving into the main repository can occur.
Tested Platforms
Technical Review
These items can sometimes be done ahead of time, but are usually started and completed after all implementation details are finished.
The text was updated successfully, but these errors were encountered: