-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
9237735
commit 2921206
Showing
3 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
36 changes: 23 additions & 13 deletions
36
src/Controls/samples/Controls.Sample/Pages/Controls/MapsGalleries/MapPinsGallery.xaml
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,18 +1,28 @@ | ||
<?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" | ||
xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
x:Class="Maui.Controls.Sample.Pages.MapsGalleries.MapPinsGallery" | ||
Title="Map Pins"> | ||
|
||
<ContentPage | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
x:Class="Maui.Controls.Sample.Pages.MapsGalleries.MapPinsGallery" | ||
Title="Map Pins"> | ||
<Grid RowDefinitions="Auto, *"> | ||
<HorizontalStackLayout Grid.Row="0"> | ||
<Button Text="Add Pin" Clicked="AddPin_Clicked" /> | ||
<Button Text="Remove Pin" Clicked="RemovePin_Clicked" /> | ||
<Button Text="Add 10 Pins" Clicked="Add10Pins_Clicked" /> | ||
<HorizontalStackLayout | ||
Grid.Row="0"> | ||
<Button | ||
Text="Add Pin" | ||
Clicked="OnAddPinClicked" /> | ||
<Button | ||
Text="Remove Pin" | ||
Clicked="OnRemovePinClicked" /> | ||
<Button | ||
Text="Add 10 Pins" | ||
Clicked="OnAdd10PinsClicked" /> | ||
</HorizontalStackLayout> | ||
<Map x:Name="pinsMap" Grid.Row="1" /> | ||
<Map | ||
x:Name="pinsMap" | ||
Grid.Row="1" | ||
MapClicked="OnMapClicked" /> | ||
</Grid> | ||
</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
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