From 465c9898d71866d5957a17755352f112da36327b Mon Sep 17 00:00:00 2001 From: Oleksandr Liakhevych Date: Sat, 11 Jun 2022 18:40:39 +0300 Subject: [PATCH] Allow text content for Label --- .../Views/Controls/Labels.razor | 32 +++++++++++++++++++ .../ControlGallery/Views/PlaygroundList.razor | 1 + .../TextSpanContainer.cs | 4 +-- .../Elements/Handlers/LabelHandler.cs | 21 +++++++++++- 4 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 samples/ControlGallery/Views/Controls/Labels.razor diff --git a/samples/ControlGallery/Views/Controls/Labels.razor b/samples/ControlGallery/Views/Controls/Labels.razor new file mode 100644 index 00000000..2253bf57 --- /dev/null +++ b/samples/ControlGallery/Views/Controls/Labels.razor @@ -0,0 +1,32 @@ +@page "/controls/labels" + + + + + + + + + +@code { + Random _random = new(); + + string RandomText => _random.Next().ToString(); +} diff --git a/samples/ControlGallery/Views/PlaygroundList.razor b/samples/ControlGallery/Views/PlaygroundList.razor index 144ebc12..3f568d1b 100644 --- a/samples/ControlGallery/Views/PlaygroundList.razor +++ b/samples/ControlGallery/Views/PlaygroundList.razor @@ -6,6 +6,7 @@