Example #1
0
        private SizeInput GenerateTextBox()
        {
            SizeInput tb = new SizeInput
            {
                Width    = 40,
                Height   = 20,
                FontSize = 12,
            };

            Binding binding = new Binding("Value")
            {
                Mode = BindingMode.TwoWay,
            };

            tb.SetBinding(SizeInput.SizeProperty, binding);
            return(tb);
        }
Example #2
0
        private SizeInput GenerateTextBox()
        {
            SizeInput tb = new SizeInput
            {
                Width             = 65,
                Height            = 20,
                VerticalAlignment = VerticalAlignment.Center,
                MaxSize           = 9999,
                IsEnabled         = true
            };

            Binding binding = new Binding("Value")
            {
                Mode = BindingMode.TwoWay,
            };

            tb.SetBinding(SizeInput.SizeProperty, binding);
            return(tb);
        }