mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +00:00 
			
		
		
		
	Test TableView
This commit is contained in:
		
							parent
							
								
									d60ab687b7
								
							
						
					
					
						commit
						285f6f026b
					
				
					 1 changed files with 68 additions and 61 deletions
				
			
		|  | @ -12,65 +12,72 @@ | ||||||
|             <tools:NullToFalseConverter x:Key="NullToFalseConverter" /> |             <tools:NullToFalseConverter x:Key="NullToFalseConverter" /> | ||||||
|         </ResourceDictionary> |         </ResourceDictionary> | ||||||
|     </ContentPage.Resources> |     </ContentPage.Resources> | ||||||
|     <ScrollView> |     <TableView> | ||||||
|         <Grid> |         <TableRoot> | ||||||
|             <Grid.ColumnDefinitions> |             <TableSection Title="Généralités"> | ||||||
|                 <ColumnDefinition Width="Auto" /> |                 <ViewCell> | ||||||
|                 <ColumnDefinition Width="*" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|             </Grid.ColumnDefinitions> |                         <Label Text="Niveau" /> | ||||||
|             <Grid.RowDefinitions> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Levels}" ItemDisplayBinding="{Binding}" /> | ||||||
|                 <RowDefinition Height="Auto" /> |                     </StackLayout> | ||||||
|                 <RowDefinition Height="Auto" /> |                 </ViewCell> | ||||||
|                 <RowDefinition Height="Auto" /> |                 <ViewCell> | ||||||
|                 <RowDefinition Height="Auto" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|                 <RowDefinition Height="Auto" /> |                         <Label Text="Race" /> | ||||||
|                 <RowDefinition Height="Auto" /> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Races}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding RaceSelectedIndex, Mode=TwoWay}" /> | ||||||
|                 <RowDefinition Height="Auto" /> |                     </StackLayout> | ||||||
|                 <RowDefinition Height="Auto" /> |                 </ViewCell> | ||||||
|                 <RowDefinition Height="Auto" /> |                 <ViewCell> | ||||||
|                 <RowDefinition Height="Auto" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|                 <RowDefinition Height="Auto" /> |                         <Label Text="Classe" /> | ||||||
|                 <RowDefinition Height="Auto" /> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Classes}" ItemDisplayBinding="{Binding Name}"  SelectedIndex="{Binding ClassSelectedIndex, Mode=TwoWay}" /> | ||||||
|                 <RowDefinition Height="Auto" /> |                     </StackLayout> | ||||||
|             </Grid.RowDefinitions> |                 </ViewCell> | ||||||
|             <Label Grid.Row="0" Grid.Column="0" Text="Niveau" /> |                 <ViewCell> | ||||||
|             <Picker Grid.Row="0" Grid.Column="1" ItemsSource="{Binding Levels}" ItemDisplayBinding="{Binding}" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|             <Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Text="Race" /> |                         <Label Text="Historique" /> | ||||||
|             <Picker Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"  ItemsSource="{Binding Races}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding RaceSelectedIndex, Mode=TwoWay}"> |                         <Picker HorizontalOptions="EndAndExpand" Grid.ColumnSpan="2" ItemsSource="{Binding Backgrounds}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding BackgroundSelectedIndex, Mode=TwoWay}" /> | ||||||
|             </Picker> |                     </StackLayout> | ||||||
|             <!--<mdview:MarkdownView  |                 </ViewCell> | ||||||
|                     Theme="{StaticResource MonsterMarkdownTheme}"  |             </TableSection> | ||||||
|                     Markdown="{Binding SelectedPlayerCharacter.Race.Markdown}"  |             <TableSection Title="Caractéristiques"> | ||||||
|                     NavigateToLinkCommand="{Binding BindingContext.Main.Navigator.NavigateToLinkCommand, Source={x:Reference This}}" |                 <ViewCell> | ||||||
|                     />--> |                     <StackLayout Orientation="Horizontal"> | ||||||
|             <Label Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Text="Classe" /> |                         <Label Text="Force" /> | ||||||
|             <Picker Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding Classes}" ItemDisplayBinding="{Binding Name}"  SelectedIndex="{Binding ClassSelectedIndex, Mode=TwoWay}"> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|             </Picker> |                     </StackLayout> | ||||||
|             <!--<mdview:MarkdownView  |                 </ViewCell> | ||||||
|                     Theme="{StaticResource MonsterMarkdownTheme}"  |                 <ViewCell> | ||||||
|                     Markdown="{Binding SelectedPlayerCharacter.Class.Markdown}"  |                     <StackLayout Orientation="Horizontal"> | ||||||
|                     NavigateToLinkCommand="{Binding BindingContext.Main.Navigator.NavigateToLinkCommand, Source={x:Reference This}}" |                         <Label Text="Dextérité" /> | ||||||
|                     />--> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|             <Label Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Text="Historique" /> |                     </StackLayout> | ||||||
|             <Picker Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" ItemsSource="{Binding Backgrounds}" ItemDisplayBinding="{Binding Name}" SelectedIndex="{Binding BackgroundSelectedIndex, Mode=TwoWay}"> |                 </ViewCell> | ||||||
|             </Picker> |                 <ViewCell> | ||||||
|             <!--<mdview:MarkdownView  |                     <StackLayout Orientation="Horizontal"> | ||||||
|                     Theme="{StaticResource MonsterMarkdownTheme}"  |                         <Label Text="Constitution" /> | ||||||
|                     Markdown="{Binding SelectedPlayerCharacter.Background.Markdown}"  |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|                     NavigateToLinkCommand="{Binding BindingContext.Main.Navigator.NavigateToLinkCommand, Source={x:Reference This}}" |                     </StackLayout> | ||||||
|                     />--> |                 </ViewCell> | ||||||
|             <Label Grid.Row="7" Grid.Column="0" Text="Force" /> |                 <ViewCell> | ||||||
|             <Picker Grid.Row="7" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|             <Label Grid.Row="8" Grid.Column="0" Text="Dextérité" /> |                         <Label Text="Intelligence" /> | ||||||
|             <Picker Grid.Row="8" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|             <Label Grid.Row="9" Grid.Column="0" Text="Constitution" /> |                     </StackLayout> | ||||||
|             <Picker Grid.Row="9" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                 </ViewCell> | ||||||
|             <Label Grid.Row="10" Grid.Column="0" Text="Intelligence" /> |                 <ViewCell> | ||||||
|             <Picker Grid.Row="10" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                     <StackLayout Orientation="Horizontal"> | ||||||
|             <Label Grid.Row="11" Grid.Column="0" Text="Sagesse" /> |                         <Label Text="Sagesse" /> | ||||||
|             <Picker Grid.Row="11" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|             <Label Grid.Row="12" Grid.Column="0" Text="Charisme" /> |                     </StackLayout> | ||||||
|             <Picker Grid.Row="12" Grid.Column="1" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> |                 </ViewCell> | ||||||
|         </Grid> |                 <ViewCell> | ||||||
|     </ScrollView> |                     <StackLayout Orientation="Horizontal"> | ||||||
|  |                         <Label Text="Charisme" /> | ||||||
|  |                         <Picker HorizontalOptions="EndAndExpand" ItemsSource="{Binding Abilities}" ItemDisplayBinding="{Binding}" /> | ||||||
|  |                     </StackLayout> | ||||||
|  |                 </ViewCell> | ||||||
|  |             </TableSection> | ||||||
|  |         </TableRoot> | ||||||
|  |     </TableView> | ||||||
| </ContentPage> | </ContentPage> | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez