MenuFlyout subitems in Windows 10 Universal apps

A very useful new feature has been added to MenuFlyouts in Windows 10 Universal apps: from now on, we can add subitems/submenus, which allows us to group items and open/show them as requested. When mouse is available, the submenu opens on mouse-over event, and when only touch is available it opens on a tap. You can also use keyboard to navigate through items, and open the submenu item sections. It's really easy to use subitems. Just create a MenuFlyout and add a MenuFlyoutSubItem item wherever you need it. MenuFlyoutSubItem then takes more MenuFlyoutItem items. Note that that everything…

Read More

MenuFlyout flip animation on Windows Phone WinRT

MenuFlyouts are a standard part of Windows Phone apps. If you go to system apps such as Calendar and try to switch view by clicking the button in the Command/AppBar, you'll notice that the MenuFlyout shows and sort of flips. However, if you try to show a MenuFlyout in your app, you'll see that it has a different entrance animation. The system animation looks like this: Imagine you wanted to show a MenuFlyout when CommandBar button was clicked. CommandBar is simply defined in Page.BottomAppBar. <Page.BottomAppBar> <CommandBar x:Name="AppBar"> <AppBarButton x:Name=…

Read More

Show a context menu using MenuFlyout on Windows Phone 8.1

If you're used to developing apps for Windows Phone, then you probably used a ContextMenu as a part of your ListBox, LongListSelector or some other UI control at some point. In new, Windows Phone 8.1 WinRT apps, there's a much much easier way to get your context menu by using Flyouts - MenuFlyout to be exact, in the old-new ListView/GridView controls! Let's start with a simple HubApp template which already hase a Hub defined with a couple of HubSections which contain ListViews/GridViews. The first ListView has a defined ItemTemplate: <ListView.ItemTemplate> <DataTemplate> <…

Read More

MVP Reconnect - say hi on Twitter

Microsoft MCSD

profile for igrali at Stack Overflow, Q&A for professional and enthusiast programmers

Latest Posts