Access Webview inside Gridview datatemplate

假如想象 提交于 2020-01-07 03:12:11

问题


I have Webview as one of the control inside Gridview datatemplate. How would i access and bind data to this Webview inside Gridview.

I have tried VisualTreeHelper.GetChildren method. But could not succeed. Please help.


回答1:


Able to resolve with same VisualTreeHelper.GetChildren method. Previously i was parsing child controls as Control type. Since WebView is a Framework element I did not get WebView control. Now when I try to parse as FramewoekElement, I am able to get it. Still wondering if there would be any better solution??



来源:https://stackoverflow.com/questions/41568989/access-webview-inside-gridview-datatemplate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!