|
Hi all,
I have two questions:
- There are two ways to display Adorner upon a WPF UIElement. One is to call AdornerLayer.GetAdornerLayer() function to get AdornerLayer for the visual element and then add a custom Adnorner to that layer. The other one is taking advantage of Cider extensibility and add an AdnornerProvider.
My problem is Adorner cannot show upon WindowsFormsHost using either of above ways. In SDK, I was told that any UIElement can have adorners on it and WindowsFormshost is of course a UIElement. Actually I find another description about WindowsFormsHost, which is this control is drawn on top of any Adorner. So I just post this topic to comfirm my understanding that WindowsFormsHost can not have any adorners on it.
If my understanding is correct, how does microsoft handle the migration issue between WinForm and WPF on Adorner case?
2. I am reading James Nakashima's article: http://blogs.msdn.com/jnak/archive/2006/04/10/572241.aspx.
Could anyone tell me where can I find the class "CustomInstanceFactory"? For I cannot find it anywhere in neither WPF and Cider assembllies.
Many thanks! |