Hi,
By looking at the control template I was able to add a button besides the pin/minimise/maximise/close buttons of the RadWindow. I now want to be able to have this button act as a widget so that when clicked on, a popup appears positioned directly under the button as if attached to the button. The user can then interact with whatever content is in the popup.
The problem I'm having is positioning the popup under the button. I'm attempting to use
GeneralTransform transform = btn.TransformToVisual(App.Current.RootVisual);
so that I can obtain the co-ordinates of the button relative to the root visual co-ordinate system but this throws a catastrophic failure. My understanding is that this happens because my RadWindow has not been added to the visual tree, and in fact RadWindow is itself a popup.
So my question is can I just add my RadWindow to the top most ui container in my visual tree when I create the window. On closing the window, I should then remove it from the same container. Would this be the right way to go or am I missing something?
thanks!
Nic
By looking at the control template I was able to add a button besides the pin/minimise/maximise/close buttons of the RadWindow. I now want to be able to have this button act as a widget so that when clicked on, a popup appears positioned directly under the button as if attached to the button. The user can then interact with whatever content is in the popup.
The problem I'm having is positioning the popup under the button. I'm attempting to use
GeneralTransform transform = btn.TransformToVisual(App.Current.RootVisual);
so that I can obtain the co-ordinates of the button relative to the root visual co-ordinate system but this throws a catastrophic failure. My understanding is that this happens because my RadWindow has not been added to the visual tree, and in fact RadWindow is itself a popup.
So my question is can I just add my RadWindow to the top most ui container in my visual tree when I create the window. On closing the window, I should then remove it from the same container. Would this be the right way to go or am I missing something?
thanks!
Nic