Replies: 17 comments 6 replies
-
I think @jamesmcroft created one and mentioned it in #490 maybe he can comment |
Beta Was this translation helpful? Give feedback.
-
Either way we are going to open uservoice in coming days and we can let community help us prioritise ideas and requests |
Beta Was this translation helpful? Give feedback.
-
Thanks! Yeah, #490 does look a lot like what I was imagining. I will go comment on that issue as well. I would love to submit this as a UserVoice request. Just so I don't forget, here are my various use cases:
|
Beta Was this translation helpful? Give feedback.
-
@enghch I suppose that all your use cases can be achieved using the Canvas control. So I think that your question is not about a new control but on all the possible ways to achieve more use cases easily using the Canvas control. Each child of the Canvas could have these attached properties :
I know that's a totally different solution. I would be really happy if we can simplify the Drag & Drop. |
Beta Was this translation helpful? Give feedback.
-
Simplifying drag and drop, you mean like this https://metronuggets.com/2016/08/29/introducing-dropfilesbehaviour/? |
Beta Was this translation helpful? Give feedback.
-
@ScottIsAFool Yeah! That is one possible example. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that's a good solution too, @ScottIsAFool and @Odonno. When you say "rotation properties" or "stretching properties" are you referring to using behaviors? If all the items in your list were easy-to-add behaviors that played together well then I think that's a great solution. |
Beta Was this translation helpful? Give feedback.
-
Hey @enghch ! Can you please create an entry for your idea? based on upvote we will be able to know if this is something we can add to the toolkit! |
Beta Was this translation helpful? Give feedback.
-
OK, thanks! I've got it recorded here: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/17902486-a-canvasview-control We can close this issue now if you'd like. |
Beta Was this translation helpful? Give feedback.
-
I'll keep it open. Please start socializing it :) |
Beta Was this translation helpful? Give feedback.
-
Thanks! Tweets are on the way! :) |
Beta Was this translation helpful? Give feedback.
-
Whats the status? Can we archive/close it? |
Beta Was this translation helpful? Give feedback.
-
Not sure about all the interactive elements, but agree just a general helper to utilize Canvas for layout of items would be useful. Going to add to 6.0 for now to think about more later. I've done some initial testing with doing this with ItemsControl and using a Style setter binding helper. |
Beta Was this translation helpful? Give feedback.
-
Moving out of 6.1, think this needs a bit more clearer definition if it's just an ItemsControl using Canvas to help layout items or something more detailed... |
Beta Was this translation helpful? Give feedback.
-
Will be moving this to the discussion as that will our new platform for all the older discussions that still requires clarity and further input. |
Beta Was this translation helpful? Give feedback.
-
I've been messing around with a super-simple, but also super-basic implementation of this. It effectively just let's you provide an ItemsSource of items and a template to use for each one. Then you can provide a few properties like the Canvas attached ones to pass-thru as well as the ManipulationMode. Therefore, it lets you do basic bounded positioning and optionally dragging the items around within the backing Canvas control. I'm messing around with how I can get it to work within a ScrollViewer (optionally), but think zooming would be a stretch. I think there may be some basic merit in it since it's a pretty simple implementation. However, I think long-term for larger scenarios with many items, something virtualized on ItemsRepeater would be better. I know @liquidboy has something they were working on in that department: https://twitter.com/josefajardo/status/1314669837201801216 Is that something you'd think of contributing to the Toolkit in the future @liquidboy? |
Beta Was this translation helpful? Give feedback.
-
Not wanting to rock the boat on this as it looks like it is already in full swing. Back in 2017 when the issue I opened had been closed, I decided to publish that control as part of what was my WinUX library back then. Code is still up if it is of any use. |
Beta Was this translation helpful? Give feedback.
-
I find myself writing this control over and over in various projects and it's never vey good. I'd love a control that would be a sibling to ListView or GridView only it was backed by a 2D Canvas instead of an ItemsStackPanel. The control should allow the placement of rectangular items in 2D, allow the user to select items, drag them around and resize them. (An optional bonus would be to allow the user to rotate the items.) The control should allow panning and zooming. The look and content of the items should, of course, be customizable.
Uservoice link: https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/17902486-a-canvasview-control
Beta Was this translation helpful? Give feedback.
All reactions