You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, there is a function to try to fit all elements in the nodify editor into view. This function can also fit an area into view. There is also a function to jump to a specific location. However, there is currently no function to fit the selected nodes into view. This would be a great to find the selected nodes.
I started to implement this feature with a new RoutedUICommand for a PR but was a little bit uncertain, how to get the actual area, the selected ItemContainers use. The calculation should in some parts be similar to the ArrangeOverride function in the NodifyCanvas class. However, can I use the Location and DesiredSize properties of the ItemContainers for that calculation or is there a better way to implement such a feature?
The text was updated successfully, but these errors were encountered:
You can get the selected containers by using the NodifyEditor.SelectedContainers property. And you're right! The calculation is similar to how NodifyCanvas calculates the Extent (by using Location and RenderSize).
Hi,
currently, there is a function to try to fit all elements in the nodify editor into view. This function can also fit an area into view. There is also a function to jump to a specific location. However, there is currently no function to fit the selected nodes into view. This would be a great to find the selected nodes.
I started to implement this feature with a new
RoutedUICommand
for a PR but was a little bit uncertain, how to get the actual area, the selectedItemContainers
use. The calculation should in some parts be similar to theArrangeOverride
function in theNodifyCanvas
class. However, can I use theLocation
andDesiredSize
properties of theItemContainers
for that calculation or is there a better way to implement such a feature?The text was updated successfully, but these errors were encountered: