mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Test alignement table
This commit is contained in:
		
							parent
							
								
									e25bed5514
								
							
						
					
					
						commit
						e7d3deb76e
					
				
					 2 changed files with 6 additions and 3 deletions
				
			
		|  | @ -462,14 +462,17 @@ | ||||||
|                             Margin = 1, |                             Margin = 1, | ||||||
|                             Padding = 5, |                             Padding = 5, | ||||||
|                         }; |                         }; | ||||||
|  |                         var align = tableBlock.ColumnDefinitions[left].Alignment; | ||||||
|  |                         var layoutOptions = align != Markdig.Extensions.Tables.TableColumnAlign.Left ? LayoutOptions.CenterAndExpand : LayoutOptions.StartAndExpand; | ||||||
|  |                         var textAlignment = align != Markdig.Extensions.Tables.TableColumnAlign.Left ? TextAlignment.Center : TextAlignment.Start; | ||||||
|                         var label = new Label |                         var label = new Label | ||||||
|                         { |                         { | ||||||
|                             FormattedText = CreateFormatted(par.Inline, style.FontFamily, style.Attributes, style.ForegroundColor, style.BackgroundColor, style.FontSize), |                             FormattedText = CreateFormatted(par.Inline, style.FontFamily, style.Attributes, style.ForegroundColor, style.BackgroundColor, style.FontSize), | ||||||
|                             HorizontalOptions = LayoutOptions.CenterAndExpand, |                             HorizontalOptions = layoutOptions, | ||||||
|                             BackgroundColor = style.BackgroundColor, |                             BackgroundColor = style.BackgroundColor, | ||||||
|                             LineBreakMode = LineBreakMode.WordWrap, |                             LineBreakMode = LineBreakMode.WordWrap, | ||||||
|                             VerticalTextAlignment = TextAlignment.Center, |                             VerticalTextAlignment = TextAlignment.Center, | ||||||
|                             HorizontalTextAlignment = TextAlignment.Center, |                             HorizontalTextAlignment = textAlignment, | ||||||
|                         }; |                         }; | ||||||
|                         frame.Content = label; |                         frame.Content = label; | ||||||
|                         AttachLinks(label); |                         AttachLinks(label); | ||||||
|  |  | ||||||
|  | @ -44,7 +44,7 @@ La personnalité des acolytes est façonnée par leurs expériences dans les tem | ||||||
| - Source: (MDR p82) | - Source: (MDR p82) | ||||||
| 
 | 
 | ||||||
| |d8|Trait de personnalité| | |d8|Trait de personnalité| | ||||||
| |---|---| | |---|:---| | ||||||
| |1|J'ai élevé au rang d'idole un héros de ma foi<br>et je passe mon temps à parler de ses actions<br>comme autant d'exemples à suivre.| | |1|J'ai élevé au rang d'idole un héros de ma foi<br>et je passe mon temps à parler de ses actions<br>comme autant d'exemples à suivre.| | ||||||
| |2|Je suis capable de trouver un terrain d'entente<br>entre les pires ennemis, à avoir de l'empathie<br>pour eux et j'oeuvre en permanence pour la<br>paix.| | |2|Je suis capable de trouver un terrain d'entente<br>entre les pires ennemis, à avoir de l'empathie<br>pour eux et j'oeuvre en permanence pour la<br>paix.| | ||||||
| |3|Chaque événement, chaque action, est un<br>présage à mes yeux. Les dieux tentent de nous<br>parler, il nous suffit d'écouter.| | |3|Chaque événement, chaque action, est un<br>présage à mes yeux. Les dieux tentent de nous<br>parler, il nous suffit d'écouter.| | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez