EditBox is a custom cotrol that can switch between two modes: editing and normal. When it is in editing mode, the content is displayed in a TextBox that provides editing capbability. When the EditBox is in normal, its content is displayed in a TextBlock that is not editable. Подробнее...
Открытые члены | |
override void | OnApplyTemplate () |
Called when the tree for the EditBox has been generated. | |
Статические открытые данные | |
static readonly DependencyProperty | ValueProperty |
ValueProperty DependencyProperty. | |
static DependencyProperty | IsEditingProperty |
IsEditingProperty DependencyProperty. | |
Защищенные члены | |
override void | OnMouseEnter (MouseEventArgs e) |
If the ListViewItem that contains the EditBox is selected, when the mouse pointer moves over the EditBox, the corresponding MouseEnter event is the first of two events (MouseUp is the second) that allow the EditBox to change to editing mode. | |
override void | OnMouseLeave (MouseEventArgs e) |
If the MouseLeave event occurs for an EditBox control that is in normal mode, the mode cannot be changed to editing mode until a MouseEnter event followed by a MouseUp event occurs. | |
override void | OnMouseUp (MouseButtonEventArgs e) |
An EditBox switches to editing mode when the MouseUp event occurs for that EditBox and the following conditions are satisfied: 1. A MouseEnter event for the EditBox occurred before the MouseUp event. 2. The mouse did not leave the EditBox between the MouseEnter and MouseUp events. 3. The ListViewItem that contains the EditBox was selected when the MouseEnter event occurred. | |
Свойства | |
object | Value [get, set] |
Gets or sets the value of the EditBox. | |
bool | IsEditing [get, set] |
Returns true if the EditBox control is in editing mode. |
EditBox is a custom cotrol that can switch between two modes: editing and normal. When it is in editing mode, the content is displayed in a TextBox that provides editing capbability. When the EditBox is in normal, its content is displayed in a TextBlock that is not editable.
This control is designed to be used in with a GridView View.
override void TSLab.Controls.EditBox.OnApplyTemplate | ( | ) |
Called when the tree for the EditBox has been generated.
override void TSLab.Controls.EditBox.OnMouseEnter | ( | MouseEventArgs | e | ) | [protected] |
override void TSLab.Controls.EditBox.OnMouseLeave | ( | MouseEventArgs | e | ) | [protected] |
If the MouseLeave event occurs for an EditBox control that is in normal mode, the mode cannot be changed to editing mode until a MouseEnter event followed by a MouseUp event occurs.
override void TSLab.Controls.EditBox.OnMouseUp | ( | MouseButtonEventArgs | e | ) | [protected] |
An EditBox switches to editing mode when the MouseUp event occurs for that EditBox and the following conditions are satisfied: 1. A MouseEnter event for the EditBox occurred before the MouseUp event. 2. The mouse did not leave the EditBox between the MouseEnter and MouseUp events. 3. The ListViewItem that contains the EditBox was selected when the MouseEnter event occurred.
e |
DependencyProperty TSLab.Controls.EditBox.IsEditingProperty [static] |
DependencyProperty.Register( "IsEditing", typeof(bool), typeof(EditBox), new FrameworkPropertyMetadata(false))
IsEditingProperty DependencyProperty.
readonly DependencyProperty TSLab.Controls.EditBox.ValueProperty [static] |
DependencyProperty.Register( "Value", typeof(object), typeof(EditBox), new FrameworkPropertyMetadata(null))
ValueProperty DependencyProperty.
bool TSLab.Controls.EditBox.IsEditing [get, set] |
Returns true if the EditBox control is in editing mode.
object TSLab.Controls.EditBox.Value [get, set] |
Gets or sets the value of the EditBox.