Version

DropDownOpened Event (XamDateTimeEditor)

Occurs when the drop-down calendar is opened.
Syntax
'Declaration
 
Public Event DropDownOpened As EventHandler(Of RoutedEventArgs)
public event EventHandler<RoutedEventArgs> DropDownOpened
Event Data

The event handler receives an argument of type RoutedEventArgs containing data related to this event. The following RoutedEventArgs properties provide information specific to this event.

PropertyDescription
Handled Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSource Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class.
RoutedEvent Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance.
Source Gets or sets a reference to the object that raised the event.
Example
The following example demonstrates handling the events that are invoked when the calendar dropdown is opened and closed.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Windows.Editors

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.

        Me.xamDateTimeEditor1.DropDownButtonDisplayMode = DropDownButtonDisplayMode.Always
    End Sub

    Private Sub xamDateTimeEditor1_DropDownOpened(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles xamDateTimeEditor1.DropDownOpened

    End Sub

    Private Sub xamDateTimeEditor1_DropDownClosed(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles xamDateTimeEditor1.DropDownClosed

    End Sub
using Infragistics.Windows.Editors;

        public Window1()
        {
            InitializeComponent();

            this.xamDateTimeEditor1.DropDownButtonDisplayMode = DropDownButtonDisplayMode.Always;
            this.xamDateTimeEditor1.DropDownOpened += new EventHandler<RoutedEventArgs>(this.xamDateTimeEditor1_DropDownOpened);
            this.xamDateTimeEditor1.DropDownClosed += new EventHandler<RoutedEventArgs>(this.xamDateTimeEditor1_DropDownClosed);
        }


        private void xamDateTimeEditor1_DropDownOpened(object sender, RoutedEventArgs e)
        {

        }

        private void xamDateTimeEditor1_DropDownClosed(object sender, RoutedEventArgs e)
        {

        }
        <igEditors:XamDateTimeEditor 
            
x:Name="xamDateTimeEditor1"
            
DropDownOpened="xamDateTimeEditor1_DropDownOpened" 
            
DropDownClosed="xamDateTimeEditor1_DropDownClosed"
            
DropDownButtonDisplayMode="Always" />
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also