Skip to content

Commit

Permalink
Merge pull request #20 from seanet7or/flyout
Browse files Browse the repository at this point in the history
added flyout nav
  • Loading branch information
seanet7or authored Dec 15, 2023
2 parents eb62484 + b27715d commit d0000f7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
13 changes: 6 additions & 7 deletions UpnpExplorer/AppShell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:UpnpExplorer"
Shell.FlyoutBehavior="Disabled"
Title="UpnpExplorer"
Shell.BackgroundColor="DarkGreen">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:Views.MainPage}"
Route="MainPage" />

<FlyoutItem Title="Devices">
<ShellContent ContentTemplate="{DataTemplate local:Views.MainPage}"/>
</FlyoutItem>
<FlyoutItem Title="About">
<ShellContent ContentTemplate="{DataTemplate local:Views.AboutPage}"/>
</FlyoutItem>
</Shell>
1 change: 0 additions & 1 deletion UpnpExplorer/UpnpExplorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

<ItemGroup>
<Folder Include="Models\" />
<Folder Include="Views\" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions UpnpExplorer/UpnpExplorer.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net8.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Pixel 5 - API 33 (Android 13.0 - API 33)</ActiveDebugProfile>
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup>
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
<DefaultDevice>pixel_5_-_api_33</DefaultDevice>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'">
Expand Down
20 changes: 20 additions & 0 deletions UpnpExplorer/Views/AboutPage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace UpnpExplorer.Views;

public class AboutPage : ContentPage
{
public AboutPage()
{
Content = new VerticalStackLayout
{
Children =
{
new Label
{
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
Text = "Welcome to .NET MAUI!"
}
}
};
}
}

0 comments on commit d0000f7

Please sign in to comment.