-
-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMapsuiPage.cs
More file actions
25 lines (20 loc) · 627 Bytes
/
MapsuiPage.cs
File metadata and controls
25 lines (20 loc) · 627 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using Mui = CSharpMarkup.WinUI.Mapsui.Helpers;
namespace WinUICsMarkupExamples.Presentation.Example;
partial class MapsuiPage
{
enum Row { Header, Body }
public void BuildUI() => Content (
Grid (
Rows (
(Row.Header, Auto),
(Row.Body , Star)
),
NavigationBar(
TextBlock("Mapsui"),
AppBarButton() .Icon("Images/forward") .Bind(vm?.ForwardCommand)
) .Grid_Row(Row.Header),
Mui.MapControl() .Invoke(CenterOnLocation)
.Grid_Row(Row.Body) .HVStretch()
)
);
}