-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
48 additions
and
26 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
29 changes: 29 additions & 0 deletions
29
src/TramlineFive/TramlineFive.Maui/Views/SuggestionsView.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Border xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="TramlineFive.Maui.Views.SuggestionsView" | ||
xmlns:cv="clr-namespace:TramlineFive.Converters" | ||
xmlns:mct="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | ||
BackgroundColor="{DynamicResource BackgroundColor}" Opacity="0.9" Padding="0" Stroke="Transparent"> | ||
|
||
<Border.StrokeShape> | ||
<RoundRectangle CornerRadius="30" /> | ||
</Border.StrokeShape> | ||
<CollectionView ItemsSource="{Binding FilteredStops}" SelectionMode="Single" SelectedItem="{Binding SelectedSuggestion}" > | ||
<CollectionView.ItemTemplate> | ||
<DataTemplate> | ||
<Grid ColumnSpacing="0" HeightRequest="48"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="50" /> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Label FontFamily="MaterialIconsOutlinedRegular.otf" Text="" FontSize="23" VerticalOptions="Center" Margin="5,7,0,0" HorizontalOptions="Center" TextColor="#9aa0a6" /> | ||
|
||
<Label Grid.Column="1" Text="{Binding}" VerticalOptions="Center" Margin="0,5,0,0" FontSize="15" /> | ||
</Grid> | ||
</DataTemplate> | ||
</CollectionView.ItemTemplate> | ||
</CollectionView> | ||
</Border> | ||
|
11 changes: 11 additions & 0 deletions
11
src/TramlineFive/TramlineFive.Maui/Views/SuggestionsView.xaml.cs
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 @@ | ||
using Mapsui.Utilities; | ||
|
||
namespace TramlineFive.Maui.Views; | ||
|
||
public partial class SuggestionsView : Border | ||
{ | ||
public SuggestionsView() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |