mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +00:00 
			
		
		
		
	Test binding compilé ok
This commit is contained in:
		
							parent
							
								
									d0a63a8e40
								
							
						
					
					
						commit
						d8c3e17e9d
					
				
					 2 changed files with 15 additions and 10 deletions
				
			
		|  | @ -1,9 +1,14 @@ | ||||||
| <?xml version="1.0" encoding="utf-8" ?> | <?xml version="1.0" encoding="utf-8" ?> | ||||||
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||||||
|              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||||||
|  |              xmlns:vm="clr-namespace:AideDeJeu.ViewModels" | ||||||
|              x:Class="AideDeJeu.Views.MainPage" |              x:Class="AideDeJeu.Views.MainPage" | ||||||
|              Visual="Material" |              Visual="Material" | ||||||
|              Title="Haches & Dés"> |              Title="Haches & Dés" | ||||||
|  |              x:DataType="vm:BaseViewModel"> | ||||||
|  |     <ContentPage.BindingContext> | ||||||
|  |         <vm:BaseViewModel /> | ||||||
|  |     </ContentPage.BindingContext> | ||||||
|     <ContentPage.Resources> |     <ContentPage.Resources> | ||||||
|         <StyleSheet> |         <StyleSheet> | ||||||
|             <![CDATA[ |             <![CDATA[ | ||||||
|  | @ -83,7 +88,7 @@ | ||||||
|                         </OnPlatform> |                         </OnPlatform> | ||||||
|                     </ActivityIndicator.HeightRequest> |                     </ActivityIndicator.HeightRequest> | ||||||
|                 </ActivityIndicator>--> |                 </ActivityIndicator>--> | ||||||
|                 <Label Text="{Binding Main.DebugCount.Result, StringFormat='Count : {0}'}" TextColor="Transparent" /> |                 <!--<Label Text="{Binding Main.DebugCount.Result, StringFormat='Count : {0}'}" TextColor="Transparent" />--> | ||||||
|                 <!--<Label Text="{Binding Main.Navigator.TestNotify}" TextColor="Transparent" />--> |                 <!--<Label Text="{Binding Main.Navigator.TestNotify}" TextColor="Transparent" />--> | ||||||
|                 <Frame> |                 <Frame> | ||||||
|                     <Grid> |                     <Grid> | ||||||
|  |  | ||||||
|  | @ -13,18 +13,18 @@ namespace AideDeJeu.Views | ||||||
| 	[XamlCompilation(XamlCompilationOptions.Compile)] | 	[XamlCompilation(XamlCompilationOptions.Compile)] | ||||||
| 	public partial class MainPage : ContentPage | 	public partial class MainPage : ContentPage | ||||||
| 	{ | 	{ | ||||||
|         public MainViewModel Main |         //public MainViewModel Main | ||||||
|         { |         //{ | ||||||
|             get |         //    get | ||||||
|             { |         //    { | ||||||
|                 return DependencyService.Get<MainViewModel>(); |         //        return DependencyService.Get<MainViewModel>(); | ||||||
|             } |         //    } | ||||||
|         } |         //} | ||||||
| 
 | 
 | ||||||
|         public MainPage () |         public MainPage () | ||||||
| 		{ | 		{ | ||||||
| 			InitializeComponent (); | 			InitializeComponent (); | ||||||
|             BindingContext = this; |             //BindingContext = this; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez