parent
1cfdc1ec6c
commit
49ac1cb105
Binary file not shown.
@ -1,7 +0,0 @@
|
||||
{
|
||||
"ExpandedNodes": [
|
||||
""
|
||||
],
|
||||
"SelectedNode": "\\MVVM.sln",
|
||||
"PreviewInSolutionExplorer": false
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="MVVM.Pages.Component.Livre">
|
||||
|
||||
|
||||
<Grid ColumnDefinitions="Auto,*">
|
||||
|
||||
<Image x:Name="Image" Grid.Column="0" Style="{StaticResource ImageLivre}" Source="null" />
|
||||
|
||||
<Grid Grid.Column="1" RowDefinitions="Auto,Auto,Auto,*,Auto">
|
||||
|
||||
<Label x:Name="Titre" Grid.Row="0" Text="Title"/>
|
||||
<Label x:Name="Auteur" Grid.Row="1" Text="Auteur"/>
|
||||
<Label Grid.Row="2" Text="Statut"/>
|
||||
<Label Grid.Row="4" Text="Etoile"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
</ContentView>
|
@ -0,0 +1,39 @@
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace MVVM.Pages.Component;
|
||||
|
||||
public partial class Livre : ContentView
|
||||
{
|
||||
|
||||
public static readonly BindableProperty TitreCompProperty = BindableProperty.Create(nameof(TitreComp), typeof(string), typeof(Livre), string.Empty);
|
||||
public static readonly BindableProperty ImageCompProperty = BindableProperty.Create(nameof(ImageComp), typeof(string), typeof(Livre), string.Empty);
|
||||
public static readonly BindableProperty AuteurCompProperty = BindableProperty.Create(nameof(AuteurComp), typeof(string), typeof(Livre), string.Empty);
|
||||
|
||||
|
||||
public string TitreComp
|
||||
{
|
||||
get => (string)GetValue(Livre.TitreCompProperty);
|
||||
set => SetValue(Livre.TitreCompProperty, value);
|
||||
}
|
||||
|
||||
public string ImageComp
|
||||
{
|
||||
get => (string)GetValue(Livre.ImageCompProperty);
|
||||
set => SetValue(Livre.ImageCompProperty, value);
|
||||
}
|
||||
|
||||
public string AuteurComp
|
||||
{
|
||||
get => (string)GetValue(Livre.AuteurCompProperty);
|
||||
set => SetValue(Livre.AuteurCompProperty, value);
|
||||
}
|
||||
|
||||
|
||||
public Livre()
|
||||
{
|
||||
InitializeComponent();
|
||||
Titre.SetBinding(Label.TextProperty, new Binding(nameof(TitreComp), source: this));
|
||||
Image.SetBinding(Image.SourceProperty, new Binding(nameof(ImageComp), source: this));
|
||||
Auteur.SetBinding(Label.TextProperty, new Binding(nameof(AuteurComp), source: this));
|
||||
}
|
||||
}
|
@ -1,9 +1,20 @@
|
||||
using MVVM.Classe;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace MVVM.Pages;
|
||||
|
||||
public partial class Livres : ContentPage
|
||||
{
|
||||
public Livres()
|
||||
|
||||
public ObservableCollection<Livre> tmp { get; set; } = new ObservableCollection<Livre>();
|
||||
|
||||
|
||||
public Livres()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
tmp.Add(new Livre() { Titre = "Enzo",Auteur = "Enzo" });
|
||||
|
||||
BindingContext = this;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 752 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,45 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"includedFrameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.10"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.iOS",
|
||||
"version": "16.4.7098"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.Maui.Core",
|
||||
"version": "**FromWorkload**"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.Maui.Controls",
|
||||
"version": "**FromWorkload**"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.Maui.Essentials",
|
||||
"version": "**FromWorkload**"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"Microsoft.Extensions.DependencyInjection.VerifyOpenGenericServiceTrimmability": true,
|
||||
"System.AggressiveAttributeTrimming": true,
|
||||
"System.ComponentModel.TypeConverter.EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization": false,
|
||||
"System.Diagnostics.Debugger.IsSupported": true,
|
||||
"System.Diagnostics.Tracing.EventSource.IsSupported": false,
|
||||
"System.Globalization.Invariant": false,
|
||||
"System.Net.Http.EnableActivityPropagation": false,
|
||||
"System.Net.Http.UseNativeHttpHandler": true,
|
||||
"System.Reflection.NullabilityInfoContext.IsSupported": false,
|
||||
"System.Resources.ResourceManager.AllowCustomResourceTypes": false,
|
||||
"System.Resources.UseSystemResourceKeys": false,
|
||||
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": false,
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
|
||||
"System.StartupHookProvider.IsSupported": false,
|
||||
"System.Threading.Thread.EnableAutoreleasePool": true,
|
||||
"System.Text.Encoding.EnableUnsafeUTF7Encoding": false
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue