WinRTXamlToolkit.Controls.Primitives.CalendarButton.OnPointerPressed C# (CSharp) Method

OnPointerPressed() protected method

Provides class handling for the MouseLeftButtonDown event that occurs when the left mouse button is pressed while the mouse pointer is over this control.
This method marks the MouseLeftButtonDown event as handled by setting the PointerRoutedEventArgs.Handled property of the event data to true when the button is enabled and its ClickMode is not set to Hover. Since this method marks the MouseLeftButtonDown event as handled in some situations, you should use the Click event instead to detect a button click.
/// e is a null reference (Nothing in Visual Basic). ///
protected OnPointerPressed ( global e ) : void
e global The event data.
return void
        protected override void OnPointerPressed(global::Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            base.OnPointerPressed(e);

            EventHandler<PointerRoutedEventArgs> handler = CalendarButtonMouseDown;

            if (null != handler)
            {
                handler(this, e);
            }
        }