PropertyGrid - How to handle double click of property grid row?

Grids for WPF Forum

Posted 4 months ago by Yuki
Version: 22.1.1
Avatar

Hello,

I would like to handle double click of property grid row so that execute some process.

Is is possible?

I had tried to handle PropertyGrid.MouseDoubleClick.

However, it fires when double click on header/scrollbar of property grid.

Comments (2)

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

Hello,

The default PropertyGridItem container element generated for items in the PropertyGrid has an OnDoubleTapped override with our default functionality.  When the click is over the name cell, it will cycle to the next "standard value" (enums, etc.) if possible, or move focus into the value cell.

If you want to override that logic, you could make a class that inherits PropertyGridItem, and overrides OnDoubleTapped with your own logic.  Then create a class that overrides PropertyGrid with:

protected override DependencyObject GetContainerForItemOverride() {
	return new MyPropertyGridItem();
}


Actipro Software Support

Posted 4 months ago by Yuki
Avatar

Thanks!

I could handle double click of PropertyGridItem. (PropertyGridItem.OnDoubleTapped)

The latest build of this product (v22.1.3) was released 16 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.