CCT.NUI.WPFSamples.PinCode.HandInterfaceWindow.CreateLabel C# (CSharp) Method

CreateLabel() private method

private CreateLabel ( object content, System.Windows.Media.Brush brush, int left, int top ) : System.Windows.Controls.Label
content object
brush System.Windows.Media.Brush
left int
top int
return System.Windows.Controls.Label
        private Label CreateLabel(object content, Brush brush, int left, int top)
        {
            var label = new Label();
            label.Content = content;
            label.FontSize = 24;
            label.Foreground = brush;
            Canvas.SetLeft(label, left);
            Canvas.SetTop(label, top);
            this.canvas.Children.Add(label);
            return label;
        }