Hi,
The XamRadialMenu provides lots of customization over UltraRadialMenu. So we are planning to use a XamRadialMenu instead of UltraRadialMenu. But we have a windows forms application, so how to show XamRadialMenu on a Windows Form? Any feasibility?
Thanks
Prasad
Hello Prasad,
Thank you for your post. I have been looking into it and I can suggest you see this link from the MSDN:
https://msdn.microsoft.com/en-us/library/ms742215(v=vs.110).aspx
where it is explained how to host a WPF control in Windows Forms. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thank you for the information. I am used to elementhost control. The XamRadialMenu appears like a context menu overlaying on any other WPF controls. Can we get this same appearance of it on windows form? Because we use an element host which in turn hosts a WPF user control we may not get the same appearance. Can we host the XamRadialMenu directly on elementhost with out having it on an user control? so that it overlays on windows controls and has same appearance.
If not possible, I think we have to set some transparency levels for the container(usercontrol) which holds the XamradialMenu, right ?
Regards,
prasad
You can add the XamRadialMenu directly in the ElementHost control. I attached a sample project for you with this functionality. Please let me know if you have further question on this matter.
Thank you for your reply.
If we add XamRadialMenu on winforms through code, we will not have an option to use xaml for DataTemplates, ItemTemplates, etc. So can we do all those things that are possible in xaml through code? If so I REQUEST you to provide samples/links which shows all these settings on XamRadialMenu through code.
Thank You.
Hello,
You can either use FrameworkElementFactory class to create DataTemplates in code:
http://stackoverflow.com/questions/248362/how-do-i-build-a-datatemplate-in-c-sharp-code
or you can use the XamlReader class to parse the XAML code itself as string in code:
http://stackoverflow.com/questions/5471405/create-datatemplate-in-code-behind
Hope this helps you.