Detailseite Anpassungen
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:viewModels="clr-namespace:Jugenddienst_Stunden.ViewModels"
|
||||
x:Class="Jugenddienst_Stunden.Views.AllNotesPage"
|
||||
Title="Your Notes"
|
||||
Title="Deine Notizen"
|
||||
NavigatedTo="ContentPage_NavigatedTo">
|
||||
<ContentPage.BindingContext>
|
||||
<viewModels:NotesViewModel />
|
||||
@@ -14,6 +14,7 @@
|
||||
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color=Black, Size=22}" />
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<Label Text="Werden nur lokal gespeichert"/>
|
||||
<!-- Display notes in a list -->
|
||||
<CollectionView x:Name="notesCollection"
|
||||
ItemsSource="{Binding AllNotes}"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<Editor x:Name="TextEditor"
|
||||
Placeholder="Enter your note"
|
||||
Text="{Binding Text}"
|
||||
HeightRequest="100" />
|
||||
HeightRequest="80" />
|
||||
|
||||
<Grid ColumnDefinitions="*,*" ColumnSpacing="4">
|
||||
<Button Text="Save"
|
||||
|
||||
@@ -8,16 +8,30 @@
|
||||
<ContentPage.BindingContext>
|
||||
<models:StundeViewModel />
|
||||
</ContentPage.BindingContext>
|
||||
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
x:Name="StundeDescription"
|
||||
Text="Welcome to .NET MAUI!"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
<Label x:Name="DescBinding" Text="{Binding Stunde.description}"/>
|
||||
<Label x:Name="BeginBinding" Text="{Binding Stunde.begin}"/>
|
||||
<Label x:Name="EndBinding" Text="{Binding Stunde.end}"/>
|
||||
|
||||
<VerticalStackLayout Spacing="10" Margin="10">
|
||||
|
||||
|
||||
<Grid Padding="15,10,0,10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<HorizontalStackLayout Grid.Row="0" Grid.Column="0">
|
||||
<Label Grid.Row="0" Grid.Column="0" Text="{Binding Stunde.begin}"/>
|
||||
<Label Text="bis" Padding="10,0,10,0"/>
|
||||
<Label Grid.Row="0" Grid.Column="1" Text="{Binding Stunde.end}"/>
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<!--<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="{Binding Stunde.description}" Padding="0,0,0,5"/>-->
|
||||
|
||||
<Editor Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Placeholder="Beschreibung" Text="{Binding Stunde.description}" HeightRequest="40" />
|
||||
</Grid>
|
||||
|
||||
<Grid ColumnDefinitions="*,*" ColumnSpacing="4">
|
||||
<Button Text="Save" Clicked="GetDayTime" />
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public partial class StundePage : ContentPage
|
||||
_stunde = await Models.Stunde.LoadEntry(4096);
|
||||
//_stunde = new DayTime();
|
||||
//_stunde.description = "asd";
|
||||
StundeDescription.Text = _stunde.description;
|
||||
//StundeDescription.Text = _stunde.description;
|
||||
}
|
||||
|
||||
private void GetDayTime(object sender, EventArgs e) {
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
<models:StundenViewModel />
|
||||
</ContentPage.BindingContext>
|
||||
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color=Black, Size=22}" />
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<ScrollView Margin="5">
|
||||
<VerticalStackLayout Spacing="10" Margin="10">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user