From 3f22291740c0ac631a655495f6198dbf18be2de2 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 27 Nov 2019 19:10:18 +0200 Subject: A lot of work !!! --- .../Tango.Touch/Controls/TouchMultiLineTextBox.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.cs (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.cs') diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.cs new file mode 100644 index 000000000..f3c554a8c --- /dev/null +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchMultiLineTextBox.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; + +namespace Tango.Touch.Controls +{ + public class TouchMultiLineTextBox : TextBox + { + public CornerRadius CornerRadius + { + get { return (CornerRadius)GetValue(CornerRadiusProperty); } + set { SetValue(CornerRadiusProperty, value); } + } + public static readonly DependencyProperty CornerRadiusProperty = + DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(TouchMultiLineTextBox), new PropertyMetadata(new CornerRadius(0))); + + + + static TouchMultiLineTextBox() + { + DefaultStyleKeyProperty.OverrideMetadata(typeof(TouchMultiLineTextBox), new FrameworkPropertyMetadata(typeof(TouchMultiLineTextBox))); + } + } +} -- cgit v1.3.1