How to scroll to specified PropertyGridRow?

Grids for WPF Forum

Posted 7 months ago by Yuki
Version: 24.1.1
Avatar

Hello,

  

I'd like to scroll specific Property Grid Row programmably.

And I found it is possible to do that by `PropertyGrid.FocusItem()`. (`Setting Focus` sample)

However, I don't want to move focus to PropertyGrid.

If there is any other way, please let me know.

  

Best regards,

Comments (5)

Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

If you are following that "Setting Focus" QuickStart, a very easy way would be to set the PropertyGrid.SelectedItem to the target propertyModel.  That will scroll to the row, but will not focus it.


Actipro Software Support

Posted 7 months ago by Yuki
Avatar

Hello,

Thank you for your reply.

We are using `ScrollViewer.CanContentScroll="False"` for PropertyGrid.

Due to it, PropertyGrid will not scroll to specified row.

Is there any solution?

Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Setting the ScrollViewer.CanContentScroll property to false in the sample above still seemed to work ok, so we might need you to supply a new simple sample project that shows the issue for us to look into it.  You might also want to try setting VirtualizingPanel.ScrollUnit="Pixel" if you set ScrollViewer.CanContentScroll="False".


Actipro Software Support

Posted 7 months ago by Yuki
Avatar

Hello,

I will send additional information by email.

Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Thank you for the video.  If I use that code and add VirtualizingPanel.ScrollUnit="Pixel" as mentioned in the previous reply, it seems to scroll to Misc as expected.  Please try adding that attached property as well.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.