Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
.NET Framework Class Library for Silverlight
DatePickerTextBox Class
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Represents the text input of a DatePicker.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Extended (in System.Windows.Controls.Extended.dll)

Visual Basic (Declaration)
<TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _
<TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _
<TemplateVisualStateAttribute(Name := "Unwatermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Watermarked", GroupName := "WatermarkStates")> _
<TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _
<TemplatePartAttribute(Name := "Watermark", Type := GetType(ContentControl))> _
Public NotInheritable Class DatePickerTextBox _
    Inherits TextBox
Visual Basic (Usage)
Dim instance As DatePickerTextBox
C#
[TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualStateAttribute(Name = "Unwatermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Watermarked", GroupName = "WatermarkStates")]
[TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")]
[TemplatePartAttribute(Name = "Watermark", Type = typeof(ContentControl))]
public sealed class DatePickerTextBox : TextBox
Visual C++
[TemplateVisualStateAttribute(Name = L"Unfocused", GroupName = L"FocusStates")]
[TemplateVisualStateAttribute(Name = L"Focused", GroupName = L"FocusStates")]
[TemplateVisualStateAttribute(Name = L"Unwatermarked", GroupName = L"WatermarkStates")]
[TemplateVisualStateAttribute(Name = L"Watermarked", GroupName = L"WatermarkStates")]
[TemplateVisualStateAttribute(Name = L"Normal", GroupName = L"CommonStates")]
[TemplateVisualStateAttribute(Name = L"MouseOver", GroupName = L"CommonStates")]
[TemplateVisualStateAttribute(Name = L"Disabled", GroupName = L"CommonStates")]
[TemplatePartAttribute(Name = L"Watermark", Type = typeof(ContentControl))]
public ref class DatePickerTextBox sealed : public TextBox
JScript
public final class DatePickerTextBox extends TextBox

The DatePickerTextBox functions identically to a WatermarkedTextBox.

System..::.Object
  System.Windows..::.DependencyObject
    System.Windows..::.UIElement
      System.Windows..::.FrameworkElement
        System.Windows.Controls..::.Control
          System.Windows.Controls..::.TextBox
            System.Windows.Controls..::.DatePickerTextBox
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker