-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a585e92
commit 978a59e
Showing
10 changed files
with
50 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/ControlGallery/Pages/Controls/ActivityIndicatorPage (copy).xaml
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
src/ControlGallery/Pages/Controls/ActivityIndicatorPage (copy).xaml.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="ControlGallery.Pages.MapPage" | ||
Title="Map"> | ||
<ContentPage.Content> | ||
<Grid> | ||
<Map x:Name="map"/> | ||
</Grid> | ||
</ContentPage.Content> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace ControlGallery.Pages; | ||
|
||
public partial class MapPage : ContentPage | ||
{ | ||
public MapPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
protected override void OnNavigatedTo(NavigatedToEventArgs args) | ||
{ | ||
base.OnNavigatedTo(args); | ||
|
||
var hanaLoc = new Location(20.7557, -155.9880); | ||
|
||
MapSpan mapSpan = MapSpan.FromCenterAndRadius(hanaLoc, Distance.FromKilometers(3)); | ||
map.MoveToRegion(mapSpan); | ||
|
||
map.Pins.Add(new Pin | ||
{ | ||
Label = "Welcome to .NET MAUI!", | ||
Location = hanaLoc, | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
global using CommunityToolkit.Maui; | ||
global using CommunityToolkit.Mvvm.ComponentModel; | ||
global using CommunityToolkit.Mvvm.Input; | ||
global using CommunityToolkit.Mvvm.Input; | ||
global using Microsoft.Maui.Maps; | ||
global using Microsoft.Maui.Controls.Maps; |