Microsoft.Maui.Graphics.Controls icon indicating copy to clipboard operation
Microsoft.Maui.Graphics.Controls copied to clipboard

[Enhancement] Label

Open ghost opened this issue 2 years ago • 2 comments

The library seems incomplete without a label. If you can't draw text you loose the benefit of everything looking the same across all platforms.

<Label  TextType="Html" Text="{Binding Name}">

ghost avatar Oct 01 '21 08:10 ghost

We can split the implementation into three phases:

  • Basic: Implement Text, TextColor, HorizontalTextAlignment, VerticalTextAlignment properties.
  • Advanced: Implement TextDecoration, MaxLinex and Font properties.
  • Complete: Implement TextType property with other pending properties.

jsuarezruiz avatar Oct 11 '21 16:10 jsuarezruiz

We can split the implementation into three phases:

  • Basic: Implement Text, TextColor, HorizontalTextAlignment, VerticalTextAlignment properties.
  • Advanced: Implement TextDecoration, MaxLinex and Font properties.
  • Complete: Implement TextType property with other pending properties.

Would it make it easier to split it into 2 controls HtmlLabel and Label (similar to horizontal and vertical stack that we now have in MAUI) or is the goal to keep it 100% the same as the standard control?

On the Microsoft Maui Graphics there is https://github.com/dotnet/Microsoft.Maui.Graphics/issues/21 would this affect or delay the implementation of Html part of the control?

ghost avatar Oct 12 '21 12:10 ghost