mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-22 18:13:23 +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,
|
||||
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
|
||||
{
|
||||
FormattedText = CreateFormatted(par.Inline, style.FontFamily, style.Attributes, style.ForegroundColor, style.BackgroundColor, style.FontSize),
|
||||
HorizontalOptions = LayoutOptions.CenterAndExpand,
|
||||
HorizontalOptions = layoutOptions,
|
||||
BackgroundColor = style.BackgroundColor,
|
||||
LineBreakMode = LineBreakMode.WordWrap,
|
||||
VerticalTextAlignment = TextAlignment.Center,
|
||||
HorizontalTextAlignment = TextAlignment.Center,
|
||||
HorizontalTextAlignment = textAlignment,
|
||||
};
|
||||
frame.Content = label;
|
||||
AttachLinks(label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue