aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/SampleBase.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-01-16 10:32:53 +0100
committerj-p <jp_bruyere@hotmail.com>2021-02-06 20:28:02 +0100
commitff03f75e02af643215d74fa7c99cdc983e048ce7 (patch)
tree6cd52efb2aa3ff4f6bb8b34429a86560d50566c3 /Samples/common/SampleBase.cs
parent2ab44f600bd0ecab04d03ba08fdc17ea195babf2 (diff)
simple label base
Diffstat (limited to 'Samples/common/SampleBase.cs')
-rw-r--r--Samples/common/SampleBase.cs22
1 files changed, 18 insertions, 4 deletions
diff --git a/Samples/common/SampleBase.cs b/Samples/common/SampleBase.cs
index bdc6608b..cb24dad6 100644
--- a/Samples/common/SampleBase.cs
+++ b/Samples/common/SampleBase.cs
@@ -39,7 +39,21 @@ namespace Crow
VerticalAlignment currentVAlign;
DirectoryInfo curDir = new DirectoryInfo (Path.GetDirectoryName (Assembly.GetEntryAssembly ().Location));
- public FileSystemInfo[] CurDirectory => curDir.GetFileSystemInfos ();
+ public FileSystemInfo[] CurDirectory => curDir.GetFileSystemInfos ();
+ public string MultilineText =
+ $"Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit. Sed non risus.\n\nSuspendisse lectus tortor,";
+ //public string MultilineText = $"a\n";
+ TextAlignment textAlignment = TextAlignment.Left;
+ public TextAlignment TextAlignment {
+ get => textAlignment;
+ set {
+ if (textAlignment == value)
+ return;
+ textAlignment = value;
+ NotifyValueChanged (textAlignment);
+ }
+ }
+
public int IntValue {
get => intValue;
set {
@@ -248,11 +262,11 @@ namespace Crow
boolVal = value;
NotifyValueChanged (boolVal);
}
- }
+ }
- #endregion
+ #endregion
- protected override void OnInitialized ()
+ protected override void OnInitialized ()
{
Commands = new List<Command> {
new Command(() => MessageBox.ShowModal(this, MessageBox.Type.Information, "context menu 1 clicked")) { Caption = "Action 1" },