public StackPanelWindow()
        {
            InitializeComponent();

            BackgroundStandardColorComboBox.SetSelectedBrush(TestStackPanelTraced.Background);
            WpfBinding.Setup(BackgroundStandardColorComboBox, "SelectedColorBrush", TestStackPanelTraced, Panel.BackgroundProperty, BindingMode.TwoWay);

            AddChildButton.Click += AddChildButton_Click;

            Loaded += StackPanelWindow_Loaded;
        }
        //      -----------

        /// <summary>
        /// constructor
        /// </summary>
        public NumberScrollBar()
        {
            ValueTextBox = new SmallTextBox {
                Text = Value.ToString(),
                VerticalAlignment = VerticalAlignment.Center,
                TextAlignment     = TextAlignment.Right
            };
            ValueTextBox.TextChanged += valueTextBox_TextChanged;
            ValueTextBox.LostFocus   += valueTextBox_LostFocus;
            WpfBinding.Setup(this, "TextBoxWidth", ValueTextBox, TextBox.WidthProperty, System.Windows.Data.BindingMode.OneWay);
            DockPanel.SetDock(ValueTextBox, Dock.Right);
            Children.Add(ValueTextBox);

            ValueScrollBar = new ScrollBar {
                Orientation = Orientation.Horizontal
            };
            ValueScrollBar.ValueChanged += valueScrollBar_ValueChanged;
            WpfBinding.Setup(this, "Minimum", ValueScrollBar, ScrollBar.MinimumProperty, System.Windows.Data.BindingMode.OneWay);
            WpfBinding.Setup(this, "Maximum", ValueScrollBar, ScrollBar.MaximumProperty, System.Windows.Data.BindingMode.OneWay);
            WpfBinding.Setup(this, "SmallChange", ValueScrollBar, ScrollBar.SmallChangeProperty, System.Windows.Data.BindingMode.OneWay);
            WpfBinding.Setup(this, "LargeChange", ValueScrollBar, ScrollBar.LargeChangeProperty, System.Windows.Data.BindingMode.OneWay);
            WpfBinding.Setup(this, "LargeChange", ValueScrollBar, ScrollBar.ViewportSizeProperty, System.Windows.Data.BindingMode.OneWay);
            Children.Add(ValueScrollBar);
        }