You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.5 KiB
37 lines
1.5 KiB
1 year ago
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<ContentPage x:Class="NotesNet8.Views.AllNotesPage"
|
||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||
|
xmlns:models="clr-namespace:NotesNet8.Models"
|
||
|
Title="AllNotesPage">
|
||
|
<ContentPage.ToolbarItems>
|
||
|
<ToolbarItem Clicked="Add_Clicked"
|
||
|
IconImageSource="{FontImage Glyph='+',
|
||
|
Color=Black,
|
||
|
Size=22}"
|
||
|
Text="Add" />
|
||
|
</ContentPage.ToolbarItems>
|
||
|
<ContentPage.BindingContext>
|
||
|
<models:AllNotes />
|
||
|
</ContentPage.BindingContext>
|
||
|
|
||
|
<CollectionView x:Name="notesCollection"
|
||
|
Margin="20"
|
||
|
ItemsSource="{Binding Notes}"
|
||
|
SelectionChanged="notesCollection_SelectionChanged" SelectionMode="Single">
|
||
|
<CollectionView.ItemsLayout>
|
||
|
<LinearItemsLayout ItemSpacing="10" Orientation="Vertical" />
|
||
|
</CollectionView.ItemsLayout>
|
||
|
|
||
|
<CollectionView.ItemTemplate>
|
||
|
<DataTemplate>
|
||
|
<StackLayout>
|
||
|
<Label FontSize="22" Text="{Binding Text}" />
|
||
|
<Label FontSize="14"
|
||
|
Text="{Binding Date}"
|
||
|
TextColor="Silver" />
|
||
|
</StackLayout>
|
||
|
</DataTemplate>
|
||
|
</CollectionView.ItemTemplate>
|
||
|
</CollectionView>
|
||
|
</ContentPage>
|