aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-01-16 15:01:07 +0100
committerj-p <jp_bruyere@hotmail.com>2021-02-06 20:28:02 +0100
commit0299b2c358f322a4ff012dbc8f9989dfe7cc3d2a (patch)
tree984c7bac2189d8bf68f249ee103ff16d2774fdcd /Samples/common
parentff03f75e02af643215d74fa7c99cdc983e048ce7 (diff)
selection in focusable label
Diffstat (limited to 'Samples/common')
-rw-r--r--Samples/common/ui/Interfaces/GraphicObject/label.crow26
1 files changed, 26 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/GraphicObject/label.crow b/Samples/common/ui/Interfaces/GraphicObject/label.crow
new file mode 100644
index 00000000..ad47ccf7
--- /dev/null
+++ b/Samples/common/ui/Interfaces/GraphicObject/label.crow
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<HorizontalStack >
+ <VerticalStack Background="Jet" Height="Stretched" Width="50%" Margin="10" >
+ <Label Margin="0" Text="Hello World this is a test string" Focusable="true" Font="serif,14"/>
+ <Label Margin="15" Background="DarkGrey" Text="Hello World this is a test string" Focusable="true" Font="serif,14"
+ Focused="{Background=Onyx}" Unfocused="{Background=DarkGrey}"/>
+ <Label Background="DarkGrey" Width="300" Height="50" Text="Hello World this is a test string" Focusable="true" Font="serif,14"
+ Focused="{Background=Onyx}" Unfocused="{Background=DarkGrey}"/>
+ <Label TextAlignment="Right" Background="DarkGrey" Width="300" Height="50" Text="Hello World this is a test string" Focusable="true" Font="serif,14"
+ Focused="{Background=Onyx}" Unfocused="{Background=DarkGrey}"/>
+ <Label Name="lab" TextAlignment="Center" Background="DarkGrey" Width="Fit" Height="50" Text="Hello World this is a test string" Focusable="true" Font="serif,14"
+ Focused="{Background=Onyx}" Unfocused="{Background=DarkGrey}"/>
+ </VerticalStack>
+ <VerticalStack Background="Jet" Height="Stretched" Margin="10">
+ <Label Multiline="true" TextAlignment="{TextAlignment}" Background="DarkGrey" Width="Fit" Height="Fit"
+ Text="{MultilineText}" Focusable="true" Font="consolas,14"
+ Focused="{Background=Onyx}" Unfocused="{Background=DarkGrey}"/>
+ <EnumSelector RadioButtonStyle="CheckBox2" Caption="Text Alignment" EnumValue="{²TextAlignment}" >
+ <Template>
+ <GroupBox Caption="{./Caption}" CornerRadius="{./CornerRadius}" Foreground="{./Foreground}" Background="{./Background}">
+ <VerticalStack Name="Content"/>
+ </GroupBox>
+ </Template>
+ </EnumSelector>
+ </VerticalStack>
+</HorizontalStack> \ No newline at end of file