Step 1
Download Visual Studio Community 2015 and install it onto your computer, if it’s already downloaded and installed select Launch to start Visual Studio Community 2015 or if it has already been downloaded and installed then start the application you may also need to Enable your device for development.
Step 2
Once Visual Studio Community 2015 has started select File, then New, then Project… from the Menu.
Step 3
From the New Project window select Visual C# from Installed, Templates then select Blank App (Windows Universal) from the list, then type in a Name and select a Location to save to before selecting Ok to create the Project.
Step 4
Once the Project is created from the Solution Explorer select MainPage.xaml
Step 5
Select from the Menu, View then Designer
Step 6
The Design View will be displayed along with the XAML View and in this above <Grid Background=”{ThemeResource ApplicationPageBackgroundThemeBrush}”> enter the following XAML:
<Page.BottomAppBar> <AppBar IsOpen="True" IsSticky="True"> <StackPanel Orientation="Horizontal"> <CommandBar> <CommandBar.SecondaryCommands> <AppBarButton Name="Hide" Icon="Cancel" Label="Hide Other" Visibility="Collapsed" Click="Show_Click"/> </CommandBar.SecondaryCommands> </CommandBar> <AppBarButton Name="Show" Icon="Accept" Label="Show Other" Click="Show_Click"/> </StackPanel> </AppBar> </Page.BottomAppBar>
It should appear as such:
Step 7
Select from the Menu, View then Code
Step 8
Once in the Code View below the public MainPage() { … } the following should be entered:
private void Show_Click(object sender, RoutedEventArgs e) { if (Hide.Visibility.Equals(Windows.UI.Xaml.Visibility.Collapsed)) { Hide.Visibility = Visibility.Visible; } else { Hide.Visibility = Visibility.Collapsed; } }
It should then appear as such:
Step 9
That completes the Windows Universal Application so Save the Project then select the Debug and Simulator option to run the Application
Step 10
Once the Simulator has started the Application should then appear
Step 11
After the Application has started running tap the Show Other button to show an option on the bottom when … is tapped and tap Hide Other to hide this option again
Step 12
To Exit the application select Stop Debugging in Visual Studio Community 2015
Step 13
Another option is to run as a Windows Phone application, select Debug and select Emulator 10.0.1.0 WVGA 4 inch 512MB option to run the Application
Step 14
Once the Emulator has started the Application should then appear
Step 15
After the Application has started running tap the Show Other button to show an option on the bottom when … is tapped and tap Hide Other to hide this option again
Step 16
To Exit the application select Stop Debugging in Visual Studio Community 2015
I Click Show Others twice, I can’t see the Hide Others any more.
LikeLike
You click left of Show Other … can see Hide other
LikeLike
Oh, there’s supposed to just be a simple toggle behaviour, I’ve redoing that one so will make sure it doesn’t have that bug, thanks!
LikeLike