Context menu in WinRT Xaml - wpf

Is there any default way to have context menu in WinRT.
am migrating my WPF application to WinRT Xaml, and am in search of Context menu support in WinRT.
How could i achieve this?

Typically the AppBar is the best replacement for a ContextMenu. If you really need a hidden touch&hold sort of a context menu you could try the context Menu control from Callisto. Windows 8.1 adds a MenuFlyout control which I think is similar to the one in Callisto.

Why not opt for FlyOut Control?! IMHO it should support for any framework.

PopupMenu is the built-in class for context menu functionality. It has a limitation of 6 commands and provides a separator support. It is not a control, so it has no UI customization or design time support. You can look at this example for how it is used.

Related

Apply telerik themes to WPF Dialogs

How can I apply telerik themes to a dialog box eg for example; MessageBox, FolderBrowserDialog. In Wpf
Thanks in advance.
I assume you are using the windows forms System.Windows.Forms dialog boxes in wpf? If so, there is likely little hope for themeing them with Telerik WPF themes. You may be able to theme them with a telerik Windows Forms theme, but I am unsure, I don't really use Forms anymore.
If however you are using the Microsoft.Win32 namespaced dialogs, it is my understanding that they will use whatever theme is installed on the operating system by default. The following CodeProject article shows how to dig into the API, and may be of help to you, but it doesn't specifically say how to alter the theme.
http://www.codeproject.com/Articles/16276/Customizing-OpenFileDialog-in-NET

Getting WinForms menus and toolbars to use the system theme?

Is there a way to get WinForms controls MenuStrip and ToolStrip to rendering using the current system theme?
Normally the WinForms MenuStrip and ToolStrip controls have a RenderMode property, which points to a class that handles the rendering:
ToolStripSystemRenderer
ToolStripProfessionalRenderer
ManagerRenderMode
which defaults to whatever ToolStripManager.Renderer uses (i.e. Professional or System)
Neither of these renderers use the Windows system theme:
How can i get a .NET WinForms MenuStrip and ToolStrip control to use the system theme?
i could ask some related, but different, questions:
does the .NET FCL contain a ToolStripRenderer that implements "system" rendering?
has anyone written a ToolStripRenderer that implements "system" rendering?
hey i know its not exectly the answer you where looking for but telerik already did what you want,
i used there library and works great, so you can go either way you can use there library or maybe get some ideas from it here is there home page about winforms
hope this helps.

Menu control in silverlight 4 similar to WPF Menu

I want a menu control for my silverlight 4.0 application.
The functionality should be similar to a WPF menu control,
Can you suggest me the solution.
Thanks.
Try
http://silverlightpopupmenu.codeplex.com/
http://slmenu.codeplex.com/
http://www.vectorlight.net/silverlight/controls/menu_(popup).aspx
You could also try paid components such as
http://www.devexpress.com/products/net/controls/silverlight/menu/
http://www.telerik.com/products/silverlight/menu.aspx
Here are two other ones you might want to try:
http://sl4popupmenu.codeplex.com/
http://www.viblend.com/products/net/silverlight/controls/silverlight_menu_control.aspx

What is the best menu metaphor for silverlight line-of-business apps?

So I'm porting an application from WPF to Silverlight and I have realized that there is no standard Menu control.
So I look around and find some third-party controls that emulate the menu control, like this one at codeplex:
alt text http://www.deviantsart.com/upload/1adt6b3.png
But then I decided to take advantage of this situation and think of some new metaphors besides the standard menu we have been using since Windows 3.0, e.g. I like the following enabled/disabled buttons for a small number of choices, which also work well as a vertical stack, and will try to integrate a drop-down button idea to allow it to hold the number of nested choices that a standard menu control could hold:
alt text http://www.deviantsart.com/upload/1bbtg9l.png
What is the best application navigation menu metaphor you have seen or used in a Silverlight line-of-business application?
How about the Office Ribbon?
http://timheuer.com/blog/archive/2009/01/20/ribbon-control-for-silverlight.aspx
http://www.divelements.co.uk/net/controls/sandribbonsl/
http://msdn.microsoft.com/en-us/office/aa973809.aspx
Personally, I like the style of Apple's CoverFlow.
You can load various screens in each of the CoverFlow "panels", show the Active panel in the center, and tightly pack the other panels to the left and right.
You gain the ability to allow the user to see their other panels while working on the active one...and you can add a little flair when the user switches between the panels.

WPF App - How to obtain a reference to the corresponding System.Windows.Forms.Form?

In my WPF Project I have a WPF Window. I want to use Sticky Windows Solution in my WPF Project. The library wants only one parameter: the System.Windows.Forms.Form object.
Does it exist any way to obtain a Form object starting from a WPF Window object?
No, it's not possible. A WPF Window has no inheritance relation with a Windows Forms Form. However it would probably be possible to adapt the code from the library to mentioned so that it works with WPF...
The approach others have mentioned of refactoring Sticky Windows Solution to support WPF forms sounds like your best option. If you really want to treat a WPF form as a Windows Form, maybe the below will help:
Would this work?
Host your WPF form in an ElementHost
control. (ElementHost enables a WPF element to be treated as a Windows Form control.)
Create a simple Windows Form
containing only this ElementHost
control.
Use a reference to this Windows Form in
your Sticky Windows Solution.
While it's not possible, the article and code does present enough information for you to create a WPF version.

Resources