NSTableCellView图像查看操作 [英] NSTableCellView Image View action
问题描述
我需要调用NSTableCellView内的ImageView的catch操作。
I need to call catch action of ImageView inside NSTableCellView.
我为它添加了一些操作,但是当我单击行动作不是被调用...
I add some action for it, but when I click the row action is not called...
我已设置接受触摸事件属性为true,但没有结果
I have set accept touch event property true, but no result
PatientTableView.AcceptsTouchEvents = true;
推荐答案
映像视图不支持单击操作(使用NSButton那)。
image view does not support click action (use NSButton for that).
它支持一个动作,当用户拖动图像到它(如果imageview设置为可编辑)。从来没有使用过这种想法。我从来没有使用xcode中的操作。但总是订阅c#中的控件上的事件。对于默认操作,这是Activated事件。
It does support an action when a user drags an image on to it (if the imageview is set to editable). Never used this thought. I never use actions in xcode. But always subscribe to an event on the control in c#. For the default action this is the Activated event.
这篇关于NSTableCellView图像查看操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!