In this step, you'll create a Universal Windows application using the C1Menu and C1ContextMenu controls.
Complete the following steps:
Visual Basic Copy CodeImports C1.Xaml
C# Copy Codeusing C1.Xaml;
Markup Copy Codexmlns:C1="using:C1.Xaml"
Markup Copy Code <Page.Resources> <Style TargetType="Image" x:Key="MenuIcon"> <Setter Property="Width" Value="16"/> <Setter Property="Height" Value="16"/> <Setter Property="Margin" Value="5 0 0 0"/> </Style> <Style TargetType="TextBlock" x:Key="TextIconStyle"> <Setter Property="FontSize" Value="20" /> <Setter Property="FontFamily" Value="Segoe UI Symbol" /> <Setter Property="FontWeight" Value="Normal" /> <Setter Property="Foreground" Value="{StaticResource AppBarItemForegroundThemeBrush}" /> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="5,-1,0,0"/> </Style> <Style TargetType="C1:C1MenuItem"> <Setter Property="ItemContainerTransitions"> <Setter.Value> <TransitionCollection> <RepositionThemeTransition/> <EntranceThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> <Setter Property="ItemContainerTransitions"> <Setter.Value> <TransitionCollection> <RepositionThemeTransition/> <EntranceThemeTransition/> </TransitionCollection> </Setter.Value> </Setter> </Style> </Page.Resources>
This markup adds style resources.
Markup Copy Code<Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions>
This markup adds row definitions to the grid.
You have completed the first step of the Menu for UWP quick start. In this step, you created a Universal Windows project. In the next step, you will add tabs and tab pages to the control.