Skip to content

Commit

Permalink
Disable label handler mapping for windows as it is causing an excepti…
Browse files Browse the repository at this point in the history
…on in dotnet 8 - #346
  • Loading branch information
BAL4-R committed Feb 2, 2024
1 parent ffc6dbd commit 40b1c9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Trimble.Modus.Components/Handlers/LabelHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
internal partial class LabelHandler : Microsoft.Maui.Handlers.LabelHandler
{
public LabelHandler()
{
{
#if WINDOWS
Label.ControlsLabelMapper.AppendToMapping(
nameof(Label.LineBreakMode), UpdateMaxLines);

Label.ControlsLabelMapper.AppendToMapping(
nameof(Label.MaxLines), UpdateMaxLines);
#endif
}
static void UpdateMaxLines(Microsoft.Maui.Handlers.LabelHandler handler, ILabel label)
{
Expand Down

0 comments on commit 40b1c9a

Please sign in to comment.