public override void BeginEdit()
        {
            base.BeginEdit();
            RadTextBoxEditorElement editorElement = (RadTextBoxEditorElement)this.EditorElement;
            RadTextBoxItem          textBoxItem   = editorElement.TextBoxItem;

            if (!VirtualGridTextBoxEditor.IsDarkTheme(this.OwnerElement))
            {
                int num = (int)editorElement.SetDefaultValueOverride(VisualElement.BackColorProperty, (object)Color.White);
            }
            RadControl radControl = this.EditorElement.ElementTree == null || this.EditorElement.ElementTree.Control == null ? (RadControl)null : this.EditorElement.ElementTree.Control as RadControl;

            if (radControl != null && TelerikHelper.IsMaterialTheme(radControl.ThemeName))
            {
                textBoxItem.StretchVertically = true;
                if (this.EditorElement.Parent != null)
                {
                    this.EditorElement.Parent.UpdateLayout();
                }
            }
            else
            {
                textBoxItem.StretchVertically = textBoxItem.Multiline;
            }
            textBoxItem.SelectAll();
            textBoxItem.TextBoxControl.Focus();
            textBoxItem.TextChanging += new TextChangingEventHandler(this.TextBoxItem_TextChanging);
            textBoxItem.TextChanged  += new EventHandler(this.TextBoxItem_TextChanged);
            textBoxItem.KeyDown      += new KeyEventHandler(this.TextBoxItem_KeyDown);
            textBoxItem.KeyUp        += new KeyEventHandler(this.TextBoxItem_KeyUp);
            textBoxItem.MouseWheel   += new MouseEventHandler(this.TextBoxItem_MouseWheel);
        }
Exemplo n.º 2
0
        public RadColorBoxElement()
        {
            RadTextBoxItem textBoxItem = this.TextBoxItem;

            this.Children.Remove((RadElement)textBoxItem);
            this.stack.Children.Add((RadElement)this.colorBox);
            this.stack.Children.Add((RadElement)textBoxItem);
            this.stack.Children.Add((RadElement)this.colorPickerButton);
        }
 public NumericMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
 {
     this.owner       = owner;
     this.numericType = GetFormat(mask, culture);
     this.mask        = mask;
     this.culture     = culture;
     this.provider    = new NumericCharacterTextBoxProvider(mask, culture, this.numericType, owner);
     this.promptChar  = this.provider.PromptChar;
     this.textBoxItem = owner.TextBoxItem;
 }
Exemplo n.º 4
0
 public RegexMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
 {
     this.mask        = mask;
     this.culture     = culture;
     this.owner       = owner;
     this.textBoxItem = owner.TextBoxItem;
     this.textBoxItem.HostedControl.Leave += new EventHandler(HostedControl_Leave);
     this.errorProvider            = new ErrorProvider();
     this.errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
 }
 /// <summary>
 /// Initializes a new instance of the NumericTextBoxProvider>
 /// class using the specified mask and culture.
 /// </summary>
 /// <param name="mask">
 /// A <see cref="T:System.String"/> that represents the input mask.
 /// </param>
 /// <param name="culture">
 /// A <see cref="T:System.Globalization.CultureInfo"/> that is used to set region-sensitive
 /// separator characters.
 /// </param>
 public NumericCharacterTextBoxProvider(string mask, System.Globalization.CultureInfo culture, RadNumericMaskFormatType numericType, RadMaskedEditBoxElement owner)
 {
     this.owner   = owner;
     this.mask    = mask;
     this.culture = culture;
     // this.value = this.ToString(true, true);
     this.numericType = numericType;
     this.promptChar  = '0';
     this.textBoxItem = owner.TextBoxItem;
     // this.originalValues = this.ToString(true, true);
 }
Exemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of RadTextBoxElemenet
        /// </summary>
        /// <param name="textBoxItem"></param>
        public RadTextBoxElement(RadTextBoxItem textBoxItem)
        {
            // !!! PATCH !!!
            // Event when AutoSizeMode is WrapArroundChildren this element could stretch.
            // Some layouts have problems with stretchable children that are WrapArroundChildren
            // so by default the AutoSizeMode is FitToAvailableSize.
            // For such layouts in some moment of time Min and Max size for RadTextBoxElement are set
            // and after that the AutoSizeMode is set to Auto / WrapArroundChildren.

            this.InitializeTextBoxItem(textBoxItem);
            this.BindProperty(RadTextBoxItem.IsNullTextProperty, this.textBoxItem, RadTextBoxItem.IsNullTextProperty, PropertyBindingOptions.OneWay);
        }
 public StandartCharacterMaskEditBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner, bool allowPromptAsInput, char promptChar, char passwordChar, bool restrictToAscii)
 {
     this.owner = owner;
     this.allowPromptAsInput = allowPromptAsInput;
     this.promptChar         = promptChar;
     this.passwordChar       = passwordChar;
     this.restrictToAscii    = restrictToAscii;
     this.mask        = mask;
     this.culture     = culture;
     this.provider    = new MaskedTextProvider(mask, culture, allowPromptAsInput, promptChar, passwordChar, restrictToAscii);
     this.textBoxItem = owner.TextBoxItem;
 }
Exemplo n.º 8
0
        public override bool EndEdit()
        {
            RadTextBoxItem textBoxItem = this.TextBoxEditorElement.TextBoxItem;

            textBoxItem.TextChanging            -= new TextChangingEventHandler(this.TextBoxItem_TextChanging);
            textBoxItem.TextChanged             -= new EventHandler(this.TextBoxItem_TextChanged);
            textBoxItem.KeyDown                 -= new KeyEventHandler(this.TextBoxItem_KeyDown);
            textBoxItem.HostedControl.LostFocus -= new EventHandler(this.HostedControl_LostFocus);
            textBoxItem.SelectionStart           = 0;
            textBoxItem.SelectionLength          = 0;
            textBoxItem.Text = "";
            return(base.EndEdit());
        }
Exemplo n.º 9
0
        public ToolbarTextBoxElement()
        {
            RadTextBoxItem textBoxItem = this.TextBoxItem;

            this.Children.Remove((RadElement)textBoxItem);
            this.SetSearchButonLocation();
            this.dockPanel = new DockLayoutPanel();
            this.dockPanel.LastChildFill = true;
            this.dockPanel.Children.Add((RadElement)this.searchButton);
            this.dockPanel.Children.Add((RadElement)textBoxItem);
            this.Children.Add((RadElement)this.dockPanel);
            this.RadPropertyChanged += new RadPropertyChangedEventHandler(this.ToolbarTextBoxElement_RadPropertyChanged);
        }
Exemplo n.º 10
0
 public RegexMaskTextBoxProvider(
     string mask,
     CultureInfo culture,
     RadMaskedEditBoxElement owner)
 {
     this.mask        = mask;
     this.culture     = culture;
     this.owner       = owner;
     this.textBoxItem = owner.TextBoxItem;
     this.WireEvents();
     this.errorProvider            = new ErrorProvider();
     this.errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
 }
 public NumericCharacterTextBoxProvider(
     string mask,
     CultureInfo culture,
     NumericCharacterTextBoxProvider.RadNumericMaskFormatType numericType,
     RadMaskedEditBoxElement owner)
 {
     this.owner       = owner;
     this.mask        = mask;
     this.culture     = culture;
     this.numericType = numericType;
     this.promptChar  = '0';
     this.textBoxItem = owner.TextBoxItem;
 }
Exemplo n.º 12
0
 public MaskDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
 {
     this.owner              = owner;
     this.textBoxItem        = owner.TextBoxItem;
     this.mask               = mask;
     this.culture            = culture;
     this.textBoxItem        = owner.TextBoxItem;
     this.dateTimeFormatInfo = culture.DateTimeFormat;
     this.maskFromFormat     = MaskDateTimeProvider.GetSpecificFormat(mask, culture.DateTimeFormat);
     this.list               = MaskDateTimeProvider.FillCollection(this.maskFromFormat, culture.DateTimeFormat);
     this.FillCollectionWithValues(list, this.value, this.mask);
     this.selectedItemIndex = 0;
     this.SelectFirstEditableItem();
 }
Exemplo n.º 13
0
        public GridSearchCellTextBoxElement()
        {
            RadTextBoxItem textBoxItem = this.TextBoxItem;

            this.Children.Remove((RadElement)textBoxItem);
            this.SetSearchButonLocation();
            this.dockPanel = new DockLayoutPanel();
            this.dockPanel.LastChildFill = true;
            this.dockPanel.Alignment     = ContentAlignment.MiddleLeft;
            this.dockPanel.Children.Add((RadElement)this.searchInfoLabel);
            this.dockPanel.Children.Add((RadElement)textBoxItem);
            this.Children.Add((RadElement)this.dockPanel);
            this.RadPropertyChanged += new RadPropertyChangedEventHandler(this.GridSearchCellTextBoxElement_RadPropertyChanged);
        }
Exemplo n.º 14
0
        public override void BeginEdit()
        {
            base.BeginEdit();

            RadTextBoxItem textBoxItem = TextBoxEditorElement.TextBoxItem;

            TextBoxEditorElement.BackColor = Color.White;
            textBoxItem.StretchVertically  = textBoxItem.Multiline;
            textBoxItem.SelectAll();
            textBoxItem.TextBoxControl.Focus();

            textBoxItem.TextChanging            += new TextChangingEventHandler(TextBoxItem_TextChanging);
            textBoxItem.TextChanged             += new EventHandler(TextBoxItem_TextChanged);
            textBoxItem.KeyDown                 += new KeyEventHandler(TextBoxItem_KeyDown);
            textBoxItem.HostedControl.LostFocus += new EventHandler(HostedControl_LostFocus);
        }
Exemplo n.º 15
0
        public override bool EndEdit()
        {
            RadTextBoxItem textBoxItem = ((RadTextBoxElement)this.EditorElement).TextBoxItem;

            textBoxItem.TextChanging   -= new TextChangingEventHandler(this.TextBoxItem_TextChanging);
            textBoxItem.TextChanged    -= new EventHandler(this.TextBoxItem_TextChanged);
            textBoxItem.KeyDown        -= new KeyEventHandler(this.TextBoxItem_KeyDown);
            textBoxItem.KeyUp          -= new KeyEventHandler(this.TextBoxItem_KeyUp);
            textBoxItem.MouseWheel     -= new MouseEventHandler(this.TextBoxItem_MouseWheel);
            textBoxItem.SelectionStart  = 0;
            textBoxItem.SelectionLength = 0;
            textBoxItem.Text            = "";
            bool flag = base.EndEdit();

            this.originalValue = (object)string.Empty;
            return(flag);
        }
 public NumericMaskTextBoxProvider(
     string mask,
     CultureInfo culture,
     RadMaskedEditBoxElement owner)
 {
     if (mask.ToLower() == "d")
     {
         mask += "0";
     }
     this.owner       = owner;
     this.numericType = NumericMaskTextBoxProvider.GetFormat(mask, culture);
     this.mask        = mask;
     this.culture     = culture;
     this.provider    = this.CreateNumericCharacterTextBoxProvider(mask, culture, this.numericType, owner);
     this.promptChar  = this.provider.PromptChar;
     this.textBoxItem = owner.TextBoxItem;
 }
Exemplo n.º 17
0
        public ToolbarTextBoxElement()
        {
            RadTextBoxItem item = this.TextBoxItem;

            this.Children.Remove(item);

            this.searchButton.SetValue(DockLayoutPanel.DockProperty, Dock.Right);

            DockLayoutPanel dockPanel = new DockLayoutPanel();

            dockPanel.LastChildFill = true;

            dockPanel.Children.Add(this.searchButton);
            dockPanel.Children.Add(item);

            this.Children.Add(dockPanel);
        }
Exemplo n.º 18
0
        private void InitializeTextBoxItem(RadTextBoxItem textBoxItem)
        {
            this.textBoxItem = textBoxItem;
            int num = (int)this.textBoxItem.BindProperty(RadItem.TextProperty, (RadObject)this, RadItem.TextProperty, PropertyBindingOptions.TwoWay);

            this.textBoxItem.AcceptsTabChanged    += new EventHandler(this.textBoxItem_AcceptsTabChanged);
            this.textBoxItem.HideSelectionChanged += new EventHandler(this.textBoxItem_HideSelectionChanged);
            this.textBoxItem.ModifiedChanged      += new EventHandler(this.textBoxItem_ModifiedChanged);
            this.textBoxItem.MultilineChanged     += new EventHandler(this.textBoxItem_MultilineChanged);
            this.textBoxItem.ReadOnlyChanged      += new EventHandler(this.textBoxItem_ReadOnlyChanged);
            this.textBoxItem.TextAlignChanged     += new EventHandler(this.textBoxItem_TextAlignChanged);
            this.textBoxItem.TextChanged          += new EventHandler(this.textBoxItem_TextChanged);
            this.textBoxItem.TextChanging         += new TextChangingEventHandler(this.textBoxItem_TextChanging);
            this.textBoxItem.KeyDown   += new KeyEventHandler(this.textBoxItem_KeyDown);
            this.textBoxItem.KeyUp     += new KeyEventHandler(this.textBoxItem_KeyUp);
            this.textBoxItem.KeyPress  += new KeyPressEventHandler(this.textBoxItem_KeyPress);
            this.textBoxItem.GotFocus  += new EventHandler(this.TextBoxItem_GotFocus);
            this.textBoxItem.LostFocus += new EventHandler(this.TextBoxItem_LostFocus);
            this.Children.Insert(0, (RadElement)this.textBoxItem);
        }
Exemplo n.º 19
0
        private void TextBoxItem_TextChanged(object sender, EventArgs e)
        {
            BaseDropDownListEditorElement dropDownListElement = (BaseDropDownListEditorElement)this.EditorElement;

            if (dropDownListElement.DropDownStyle != RadDropDownStyle.DropDown)
            {
                return;
            }

            RadTextBoxItem   textBox          = sender as RadTextBoxItem;
            string           text             = textBox.Text;
            StringComparison stringComparison = dropDownListElement.CaseSensitive ? StringComparison.InvariantCulture : StringComparison.InvariantCultureIgnoreCase;

            foreach (RadListDataItem item in dropDownListElement.Items)
            {
                if (item.Text.Equals(text, stringComparison))//ticket id 370361
                {
                    item.Selected = true;
                    break;
                }
            }
        }
Exemplo n.º 20
0
        protected override void CreateChildElements()
        {
            this.buttonUp                     = this.CreateUpButton();
            this.buttonDown                   = this.CreateDownButton();
            this.textItem                     = new RadTextBoxItem();
            this.textItem.Alignment           = ContentAlignment.MiddleLeft;
            this.textItem.StretchHorizontally = true;
            this.textItem.StretchVertically   = false;
            int num1 = (int)this.textItem.BindProperty(TextPrimitive.TextProperty, (RadObject)this, RadItem.TextProperty, PropertyBindingOptions.TwoWay);
            int num2 = (int)this.textItem.BindProperty(RadElement.ContainsMouseProperty, (RadObject)this, RadElement.ContainsMouseProperty, PropertyBindingOptions.TwoWay);

            this.textItem.Multiline     = false;
            this.textItem.RouteMessages = false;
            this.layout       = new StackLayoutElement();
            this.layout.Class = "SpinElementLayout";
            this.layout.StretchHorizontally          = true;
            this.layout.StretchVertically            = true;
            this.layout.FitInAvailableSize           = true;
            this.textBoxFillPrimitive                = new FillPrimitive();
            this.textBoxFillPrimitive.Class          = "SpinElementFill";
            this.textBoxFillPrimitive.NumberOfColors = 1;
            this.border                            = new BorderPrimitive();
            this.border.Class                      = "SpinElementBorder";
            this.buttonsLayout                     = new StackLayoutElement();
            this.buttonsLayout.Orientation         = Orientation.Vertical;
            this.buttonsLayout.StretchHorizontally = false;
            this.buttonsLayout.StretchVertically   = true;
            this.buttonsLayout.FitInAvailableSize  = true;
            this.buttonsLayout.Class               = "ButtonsLayout";
            this.buttonsLayout.Children.Add((RadElement)this.buttonUp);
            this.buttonsLayout.Children.Add((RadElement)this.buttonDown);
            this.layout.Children.Add((RadElement)this.textItem);
            this.layout.Children.Add((RadElement)this.buttonsLayout);
            this.Children.Add((RadElement)this.textBoxFillPrimitive);
            this.Children.Add((RadElement)this.border);
            this.Children.Add((RadElement)this.layout);
            this.SetSpinValue(this.internalValue, true);
            this.WireEvents();
        }
Exemplo n.º 21
0
        private void InitializeTextBoxItem(RadTextBoxItem textBoxItem)
        {
            this.textBoxItem = textBoxItem;
            this.textBoxItem.AutoSizeMode = RadAutoSizeMode.WrapAroundChildren;
            this.textBoxItem.BindProperty(RadItem.TextProperty, this, RadItem.TextProperty, PropertyBindingOptions.TwoWay);
            this.StretchHorizontally = textBoxItem.StretchHorizontally;
            this.StretchVertically   = textBoxItem.StretchVertically;

            this.textBoxItem.AcceptsTabChanged    += new EventHandler(textBoxItem_AcceptsTabChanged);
            this.textBoxItem.HideSelectionChanged += new EventHandler(textBoxItem_HideSelectionChanged);
            this.textBoxItem.ModifiedChanged      += new EventHandler(textBoxItem_ModifiedChanged);
            this.textBoxItem.MultilineChanged     += new EventHandler(textBoxItem_MultilineChanged);
            this.textBoxItem.ReadOnlyChanged      += new EventHandler(textBoxItem_ReadOnlyChanged);
            this.textBoxItem.TextAlignChanged     += new EventHandler(textBoxItem_TextAlignChanged);
            this.textBoxItem.TextChanged          += new EventHandler(textBoxItem_TextChanged);
            this.textBoxItem.TextChanging         += new TextChangingEventHandler(textBoxItem_TextChanging);
            this.textBoxItem.KeyDown  += new KeyEventHandler(textBoxItem_KeyDown);
            this.textBoxItem.KeyUp    += new KeyEventHandler(textBoxItem_KeyUp);
            this.textBoxItem.KeyPress += new KeyPressEventHandler(textBoxItem_KeyPress);

            this.Children.Insert(0, this.textBoxItem);
        }
Exemplo n.º 22
0
 private bool IsRightmostMaskItemSelected()
 {
     if (!this.EnsureDateTimeMaskHandler())
     {
         return(false);
     }
     if (this.dateTimeMaskHandler is FreeFormDateTimeProvider)
     {
         RadTextBoxItem textBoxItem = this.dateTimeMaskHandler.Owner.TextBoxItem;
         if (textBoxItem.SelectionStart + this.dateTimeMaskHandler.Owner.TextBoxItem.SelectionLength < textBoxItem.Text.Length)
         {
             return(false);
         }
         this.selectedItemIndex = -1;
         return(true);
     }
     if (this.dateTimeMaskHandler.SelectedItemIndex != this.dateTimeMaskHandler.List.Count - 1)
     {
         return(false);
     }
     this.selectedItemIndex = -1;
     return(true);
 }
Exemplo n.º 23
0
        /// <summary>
        /// create child elements
        /// </summary>
        protected override void CreateChildElements()
        {
            this.textItem = new RadTextBoxItem();
            this.SetSpinValue(this.value, true);

            this.textItem.TextChanging             += new TextChangingEventHandler(textItem_TextChanging);
            this.textItem.TextChanged              += new EventHandler(textItem_TextChanged);
            this.textItem.LostFocus                += new EventHandler(textItem_LostFocus);
            this.textItem.KeyPress                 += new KeyPressEventHandler(textItem_KeyPress);
            this.textItem.KeyDown                  += new KeyEventHandler(textItem_KeyDown);
            this.textItem.KeyUp                    += new KeyEventHandler(textItem_KeyUp);
            this.textItem.HostedControl.MouseWheel += new MouseEventHandler(textItem_MouseWheel);
            this.textItem.HostedControl.MouseUp    += new MouseEventHandler(HostedControl_MouseUp);
            this.textItem.Alignment                 = ContentAlignment.MiddleLeft;
            this.textItem.StretchHorizontally       = true;
            this.textItem.StretchVertically         = false;

            this.buttonUp           = new RadRepeatArrowElement();
            this.buttonUp.ThemeRole = "UpButton";
            this.buttonUp.Class     = "UpButton";
            //hack!!!!!!!!!!!!
            this.buttonUp.Padding = new Padding(1, 0, 3, 2);
            //this.buttonUp.Margin = new Padding(0, 1, 1, 0);
            //this.buttonUp.Border.Visibility = ElementVisibility.Collapsed;
            this.buttonUp.Click         += new EventHandler(ButtonUp_Click);
            this.buttonUp.DoubleClick   += new EventHandler(ButtonUp_Click);
            this.buttonUp.Direction      = ArrowDirection.Up;
            this.buttonUp.Arrow.AutoSize = true;

            this.buttonDown           = new RadRepeatArrowElement();
            this.buttonDown.ThemeRole = "DownButton";
            this.buttonDown.Class     = "DownButton";
            //hack!!!!!!!!!!!!
            this.buttonDown.Padding = new Padding(1, 1, 3, 1);
            //this.buttonDown.Margin = new Padding(0, 0, 1, 1);
            //this.buttonDown.Border.Visibility = ElementVisibility.Collapsed;
            this.buttonDown.Click         += new EventHandler(ButtonDown_Click);
            this.buttonDown.DoubleClick   += new EventHandler(ButtonDown_Click);
            this.buttonDown.Arrow.AutoSize = true;
            this.buttonDown.Direction      = ArrowDirection.Down;
            this.stackLayout             = new BoxLayout();
            this.stackLayout.Orientation = Orientation.Vertical;
            BoxLayout.SetProportion(this.buttonUp, 1);
            BoxLayout.SetProportion(this.buttonDown, 1);
            this.stackLayout.Children.Add(this.buttonUp);
            this.stackLayout.Children.Add(this.buttonDown);

            this.textBoxFillPrimitive                = new FillPrimitive();
            this.textBoxFillPrimitive.Class          = "SpinElementFill";
            this.textBoxFillPrimitive.NumberOfColors = 1;
            this.textBoxFillPrimitive.MouseDown     += delegate { this.textItem.Focus(); };
            this.Children.Add(this.textBoxFillPrimitive);
            //this.textBoxFillPrimitive.BackColor = this.textItem.BackColor;

            this.dockLayout = new DockLayoutPanel();
            this.dockLayout.LastChildFill = true;

            if (!this.RightToLeft)
            {
                DockLayoutPanel.SetDock(stackLayout, Dock.Right);
            }
            else
            {
                DockLayoutPanel.SetDock(stackLayout, Dock.Left);
            }

            DockLayoutPanel.SetDock(this.textBoxFillPrimitive, Dock.Bottom);
            DockLayoutPanel.SetDock(this.textItem, Dock.Top);

            dockLayout.Children.Add(stackLayout);
            dockLayout.Children.Add(this.textItem);

            this.border       = new BorderPrimitive();
            this.border.Class = "SpinElementBorder";
            this.Children.Add(border);
            this.Children.Add(dockLayout);

            this.textItem.BindProperty(TextPrimitive.TextProperty, this, TextProperty, PropertyBindingOptions.TwoWay);

            this.textItem.Multiline     = false;
            this.textItem.RouteMessages = false;
            this.StretchVertically      = false;
        }
Exemplo n.º 24
0
 public RadTextBox()
 {
     this.textBoxItem = this.TextBoxElement.TextBoxItem;
     this.WireHostEvents();
 }
Exemplo n.º 25
0
 public RadTextBoxElementAccessibleObject(RadTextBoxItem owner)
     : base(owner.ElementTree.Control)
 {
     this.owner = owner;
 }
Exemplo n.º 26
0
 public RadTextBoxElementAccessibleObject(RadTextBoxItem owner)
 {
     this.owner = owner;
 }
Exemplo n.º 27
0
 public RadTextBoxElement(RadTextBoxItem textBoxItem)
 {
     this.InitializeTextBoxItem(textBoxItem);
     int num1 = (int)this.BindProperty(RadTextBoxItem.IsNullTextProperty, (RadObject)this.textBoxItem, RadTextBoxItem.IsNullTextProperty, PropertyBindingOptions.OneWay);
     int num2 = (int)this.textBoxItem.BindProperty(RadTextBoxItem.NullTextColorProperty, (RadObject)this, RadTextBoxElement.NullTextColorProperty, PropertyBindingOptions.TwoWay);
 }