public FrameworkElement GenerateControl(Element element)
        {
            var stackPanel = new StackPanel {
                Orientation = Orientation.Horizontal
            };

            stackPanel.Children.Add(HelperElementGenerator.GenerateLabelForElement(element));
            stackPanel.Children.Add(GenerateComboBox(element as ChoiceElement));
            stackPanel.Children.Add(HelperElementGenerator.GenerateExtraTextBox(element));

            return(stackPanel);
        }
        public FrameworkElement GenerateControl(Element element)
        {
            MaskedElement maskedElement = element as MaskedElement;

            StackPanel stackPanel = new StackPanel()
            {
                Orientation = Orientation.Horizontal
            };

            stackPanel.Children.Add(HelperElementGenerator.GenerateLabelForElement(maskedElement));
            stackPanel.Children.Add(GenerateMaskedTextBox(maskedElement));
            stackPanel.Children.Add(HelperElementGenerator.GenerateExtraTextBox(maskedElement));
            return(stackPanel);
        }