Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2013-10-22 17:09:47 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-10-22 17:09:47 +0400
commit5a249be65965b6151513ae8820c8d4574f6a2514 (patch)
tree306364579f2193ddb075712822ed8a77a79f5a04 /Xwt.WPF
parent0a661a0d85c35b28e3c8440c12a8dd16aa79d3ba (diff)
[WPF] Vertically center labels
Diffstat (limited to 'Xwt.WPF')
-rw-r--r--Xwt.WPF/Xwt.WPFBackend/LabelBackend.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xwt.WPF/Xwt.WPFBackend/LabelBackend.cs b/Xwt.WPF/Xwt.WPFBackend/LabelBackend.cs
index a9cc8876..5f9ad3b6 100644
--- a/Xwt.WPF/Xwt.WPFBackend/LabelBackend.cs
+++ b/Xwt.WPF/Xwt.WPFBackend/LabelBackend.cs
@@ -222,6 +222,7 @@ namespace Xwt.WPFBackend
TextBlock = new SWC.TextBlock ();
Content = TextBlock;
Padding = new Thickness (0);
+ VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
}
public WidgetBackend Backend { get; set; }