summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs')
-rw-r--r--Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs b/Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs
new file mode 100644
index 00000000..633672f6
--- /dev/null
+++ b/Xamarin.Forms.Platform.WinRT.Tablet/FormsSearchBox.cs
@@ -0,0 +1,18 @@
+´╗┐using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+
+namespace Xamarin.Forms.Platform.WinRT
+{
+ public class FormsSearchBox : SearchBox
+ {
+ public static readonly DependencyProperty HorizontalTextAlignmentProperty = DependencyProperty.Register(
+ "HorizontalTextAlignment", typeof (Windows.UI.Xaml.TextAlignment), typeof (FormsSearchBox),
+ new PropertyMetadata(Windows.UI.Xaml.TextAlignment.Left));
+
+ public Windows.UI.Xaml.TextAlignment HorizontalTextAlignment
+ {
+ get { return (Windows.UI.Xaml.TextAlignment)GetValue(HorizontalTextAlignmentProperty); }
+ set { SetValue(HorizontalTextAlignmentProperty, value); }
+ }
+ }
+} \ No newline at end of file