4 using System.Diagnostics;
6 using SiliconStudio.Core;
7 using SiliconStudio.Paradox.UI.Events;
9 namespace SiliconStudio.
Paradox.UI.Controls
14 [DebuggerDisplay(
"ButtonBase - Name={Name}")]
24 EventManager.RegisterClassHandler(typeof(
ButtonBase), ClickEvent, ClickClassHandler);
32 CanBeHitByUser =
true;
40 get {
return DependencyProperties.Get(ClickModePropertyKey); }
41 set { DependencyProperties.Set(ClickModePropertyKey, value); }
47 public virtual bool IsPressed {
get;
protected set; }
53 public event EventHandler<RoutedEventArgs> Click
55 add { AddHandler(ClickEvent, value); }
56 remove { RemoveHandler(ClickEvent, value); }
64 RoutingStrategy.Bubble,
69 base.OnTouchDown(args);
89 base.OnTouchLeave(args);
104 private static void ClickClassHandler(
object sender,
RoutedEventArgs args)
108 buttonBase.OnClick(args);
Contains state information and event data associated with a routed event.
Represents a control with a single piece of content of any type.
ClickMode
Specifies when the Click event should be raised.
Provides data for touch input events.
Represents and identifies a routed event and declares its characteristics.
A class that represents a tag propety.