所以我正在制作一个webbrowser。我创建了自己的地址栏usercontrol,它与主窗口在同一个解决方案中。这就是我想要发生的事情
我在getcurrentbrowser()
中有一个名为MainWindowClass
的活动
但是我需要从Addressbar
类来调用它
然后在Addressbar
类中更改webbrowser的源,
此命令由图像启动。
答案 0 :(得分:0)
我认为您应该将Source
等属性添加到MainWindowsClass
,将另一个属性添加到AddressBar
控件。
然后将WebBrowser
和AddresssBar
与MainWindowClass.Source
属性的来源属性绑定为Mode=TwoWay