mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Test
This commit is contained in:
		
							parent
							
								
									6775e03f0f
								
							
						
					
					
						commit
						07c7f2c88b
					
				
					 2 changed files with 28 additions and 21 deletions
				
			
		|  | @ -19,18 +19,6 @@ | |||
|             <tools:NullToFalseConverter x:Key="NullToFalseConverter" /> | ||||
|         </ResourceDictionary> | ||||
|     </TabbedPage.Resources> | ||||
|     <ContentPage Title="Généralités"> | ||||
|         <ScrollView Orientation="Vertical"> | ||||
|             <StackLayout> | ||||
|                 <Entry Placeholder="Nom" Text="{Binding Name}" Keyboard="Text" /> | ||||
|                 <!--<Picker Title="Alignement" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Alignments.IsSuccessfullyCompleted}" ItemsSource="{Binding Alignments.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding AlignmentSelectedIndex, Mode=TwoWay}" />--> | ||||
|                 <views:ItemPickerView BindingContext="{Binding}" IsEnabled="{Binding Alignments.IsSuccessfullyCompleted}" Title="Alignement" ItemsSource="{Binding Alignments.Result}" SelectedItem="{Binding SelectedAlignment, Mode=TwoWay}" /> | ||||
| 
 | ||||
|                 <!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.Alignment.Description}" />--> | ||||
|                 <Picker Title="Niveau" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Levels}" ItemDisplayBinding="{Binding StringFormat='Niveau : {0}'}" /> | ||||
|             </StackLayout> | ||||
|         </ScrollView> | ||||
|     </ContentPage> | ||||
|     <ContentPage Title="Race"> | ||||
|         <ScrollView Orientation="Vertical"> | ||||
|             <StackLayout> | ||||
|  | @ -59,6 +47,9 @@ | |||
|                 <views:ItemPickerView BindingContext="{Binding}" Title="Historique" ItemsSource="{Binding Backgrounds.Result}" SelectedItem="{Binding SelectedBackground, Mode=TwoWay}" /> | ||||
|                 <views:ItemPickerView BindingContext="{Binding}" Title="Variante" ItemsSource="{Binding SubBackgrounds}" SelectedItem="{Binding SelectedSubBackground, Mode=TwoWay}" /> | ||||
| 
 | ||||
|                 <!-- test --> | ||||
|                 <!--<views:StringPickerView BindingContext="{Binding}" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}" Title="Compétences" SelectedItem="{Binding PreferedBackground.Abilities}" />--> | ||||
| 
 | ||||
|                 <Frame BorderColor="Black" Padding="2" IsVisible="{Binding NotifySelectedBackground.IsSuccessfullyCompleted}"> | ||||
|                     <StackLayout Padding="0"> | ||||
|                         <mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" HorizontalOptions="FillAndExpand" Markdown="# Compétences" /> | ||||
|  | @ -121,6 +112,18 @@ | |||
|             </StackLayout> | ||||
|         </ScrollView> | ||||
|     </ContentPage> | ||||
|     <ContentPage Title="Finalisation"> | ||||
|         <ScrollView Orientation="Vertical"> | ||||
|             <StackLayout> | ||||
|                 <Entry Placeholder="Nom" Text="{Binding Name}" Keyboard="Text" /> | ||||
|                 <!--<Picker Title="Alignement" HorizontalOptions="FillAndExpand" IsEnabled="{Binding Alignments.IsSuccessfullyCompleted}" ItemsSource="{Binding Alignments.Result}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding AlignmentSelectedIndex, Mode=TwoWay}" />--> | ||||
|                 <views:ItemPickerView BindingContext="{Binding}" IsEnabled="{Binding Alignments.IsSuccessfullyCompleted}" Title="Alignement" ItemsSource="{Binding Alignments.Result}" SelectedItem="{Binding SelectedAlignment, Mode=TwoWay}" /> | ||||
| 
 | ||||
|                 <!--<mdview:MarkdownView Theme="{StaticResource MonsterMarkdownTheme}" Markdown="{Binding SelectedPlayerCharacter.Alignment.Description}" />--> | ||||
|                 <Picker Title="Niveau" HorizontalOptions="FillAndExpand" ItemsSource="{Binding Levels}" ItemDisplayBinding="{Binding StringFormat='Niveau : {0}'}" /> | ||||
|             </StackLayout> | ||||
|         </ScrollView> | ||||
|     </ContentPage> | ||||
|     <ContentPage Title="Résumé"> | ||||
|         <ScrollView Orientation="Vertical"> | ||||
|             <StackLayout> | ||||
|  |  | |||
|  | @ -85,6 +85,8 @@ namespace AideDeJeu.Views | |||
|             } | ||||
|         } | ||||
|         private async Task<string> ExecuteStringPickerCommandAsync(System.Collections.IEnumerable strings) | ||||
|         { | ||||
|             if (strings != null) | ||||
|             { | ||||
|                 var picker = new Views.StringPicker(); | ||||
|                 var vm = picker.ViewModel; | ||||
|  | @ -96,5 +98,7 @@ namespace AideDeJeu.Views | |||
|                 await Main.Navigator.Navigation.PopModalAsync(true); | ||||
|                 return result; | ||||
|             } | ||||
|             return SelectedItem; | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez