-1
事件我需要从C#变换VB.NET以下(.NET 4)提高在VB.NET
class XXX:
public event EventHandler ContentScaleChanged;
if (otherXXX.ContentScaleChanged != null)
{
otherXXX.ContentScaleChanged(c, EventArgs.Empty);
}
请帮助
编辑:
我俊男做RaiseEvent ContentScaleChanged(c, EventArgs.Empty)
,因为我需要提高的是事件对otherXXX
实例...
这样做不工作,因为在VB中你应该使用RaiseEvents关键字,并且自动化工具无法检测这是否是方法调用的事件... – moldovanu 2012-03-20 09:37:12
@moldovanu我已更新我的答案 – Bas 2012-03-20 09:41:45
我没有提出类事件,但** otherXXX **事件! – moldovanu 2012-03-20 09:52:44