Upload plików - początek

This commit is contained in:
Krzysztof KrzysiekSiemv Smaga
2025-03-10 19:49:55 +01:00
commit 582c0f69ab
3536 changed files with 371692 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
<?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"
x:Class="Navigation_Between.View.DetailedPage">
<VerticalStackLayout>
<Label Text="{Binding Name}" FontSize="24" FontAttributes="Bold" />
<Label Text="{Binding Description}" FontSize="18" FontAttributes="Italic" />
</VerticalStackLayout>
</ContentPage>
+11
View File
@@ -0,0 +1,11 @@
using Navigation_Between.Model;
namespace Navigation_Between.View;
public partial class DetailedPage : ContentPage {
public DetailedPage(User user) {
InitializeComponent();
// Binding z poziomu kodu
BindingContext = user;
}
}
+24
View File
@@ -0,0 +1,24 @@
<?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"
x:Class="Navigation_Between.View.MainPage"
xmlns:local="clr-namespace:Navigation_Between.ViewModel">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<CollectionView ItemsSource="{Binding Users}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Name}" FontSize="Large">
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Source={RelativeSource AncestorType={x:Type local:MainViewModel}}, Path=SelectUserCommand}" CommandParameter="{Binding}" />
</Label.GestureRecognizers>
</Label>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</VerticalStackLayout>
</ScrollView>
</ContentPage>
+13
View File
@@ -0,0 +1,13 @@
using Navigation_Between.Interface;
using Navigation_Between.Service;
using Navigation_Between.ViewModel;
namespace Navigation_Between.View;
public partial class MainPage : ContentPage {
public MainPage() {
InitializeComponent();
BindingContext = new MainViewModel(Navigation, new DataService(), new AlertService());
}
}