Aspect class for making elements draggable or movable. Element you attach this Aspect to can be dragged around on screen with mouse. See AspectDroppable for how to make it possible to track specific places they are dropped.

Namespace:  Gaia.WebWidgets
Assembly:  Gaia.WebWidgets (in Gaia.WebWidgets.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public class AspectDraggable : Aspect<AspectDraggable>, 
	IAspect
Visual Basic (Declaration)
Public Class AspectDraggable _
	Inherits Aspect(Of AspectDraggable) _
	Implements IAspect

Examples

CopyASPX Markup for AspectDraggable Example
<%@ Page Language="C#" MasterPageFile="~/Core.master" AutoEventWireup="true"
    Codebehind="Default.aspx.cs" Inherits="Gaia.WebWidgets.Samples.Aspects.AspectDraggable.Overview.Default"
    Title="Gaia Ajax: AspectDraggable" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <samples:GDoc ID="GDoc1" runat="server" Member="T:Gaia.WebWidgets.AspectDraggable" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="p" runat="server">

<div style="position:relative; height: 200px;">

    <gaia:panel 
        id="zDraggable" 
        runat="Server" 
        CssClass="panel-drag"></gaia:panel>

</div>

</asp:Content>
CopyAdding Draggable capabilities to ANY Gaia control
protected void Page_Load(object sender, EventArgs e)
{
    zDraggable.Aspects.Add(new WebWidgets.AspectDraggable());
}

Inheritance Hierarchy

System..::.Object
  Gaia.WebWidgets..::.Aspect
    Gaia.WebWidgets..::.Aspect<(Of <(AspectDraggable>)>)
      Gaia.WebWidgets..::.AspectDraggable

See Also