Exception | Description |
---|---|
System.ArgumentNullException | Is thrown if the passed in element is null. |
System.ArgumentException | Is thrown if the passed in element isn't a descendant of this ControlUIElementBase derived element. |
During mouse capture all mouse messages will be routed to the element.
In other words, the elements UIElement.OnMouseMove and UIElement.OnMouseUp virtual methods will be called.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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