custom label
authorsarias
Thu, 15 Oct 2009 16:25:57 +0200
changeset 154 d43cbdd14d67
parent 153 3636bb5f4b67
child 155 c68128feca0d
custom label
src/FingersDance.Control/UserControlCustomLabel.xaml
src/FingersDance.Control/UserControlCustomLabel.xaml.cs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control/UserControlCustomLabel.xaml	Thu Oct 15 16:25:57 2009 +0200
@@ -0,0 +1,19 @@
+<UserControl
+	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+	mc:Ignorable="d"
+	x:Class="FingersDance.Control.UserControlCustomLabel"
+	x:Name="UserControl">
+	<UserControl.Background>
+		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
+			<GradientStop Color="#FFE7E5E5" Offset="0"/>
+			<GradientStop Color="#FFFFFFFF" Offset="1"/>
+		</LinearGradientBrush>
+	</UserControl.Background>
+
+	<Grid x:Name="LayoutRoot">
+		<Label Content="Label" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Normal" FontSize="16" x:Name="label"/>
+	</Grid>
+</UserControl>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control/UserControlCustomLabel.xaml.cs	Thu Oct 15 16:25:57 2009 +0200
@@ -0,0 +1,22 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control
+{
+	public partial class UserControlCustomLabel
+	{
+		public UserControlCustomLabel(string l)
+		{
+			this.InitializeComponent();
+            label.Content = l;
+			// Insert code required on object creation below this point.
+		}
+	}
+}
\ No newline at end of file