Adding a flyout seemed like a pretty straightforward task, but I can't seem to even initialize one on my app (which is based on a PivotControl app template for Windows Phone 8.1 Silverlight). When I attempt to do this:
<phone:PhoneApplicationPage.Resources>
<Flyout x:Key="MyFlyout"></Flyout>
</phone:PhoneApplicationPage.Resources>
I immediately get a blue squiggly line below Flyout saying "The name Flyout doesn't exist in the namespace http://schemas.microsoft.com/clients/2007". What gives?
<Flyout>
is only available in Windows Phone 8.1 runtime (Silverlight is a no-go). See the MSDN Reference FlyOut.If you want something similar to a
<Flyout>
that would work for Silverlight, download and install the Windows Phone Toolkit -- NuGet or get it here : The Windows Phone ToolkitUsing the
<toolkit:ContextMenuService.ContextMenu>