MouseDragElementBehavior
.NET프로그래밍/Silverlight 3.0 2009. 12. 7. 18:44 |[FrmMouseDragElementBehavior.xaml]
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions" x:Class="RiaBehavior.FrmMouseDragElementBehavior"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Rectangle Fill="#FFD62222" Stroke="Black" Height="63" HorizontalAlignment="Left" Margin="47,57,0,0" VerticalAlignment="Top" Width="108">
<i:Interaction.Behaviors>
<il:MouseDragElementBehavior/>
</i:Interaction.Behaviors>
</Rectangle>
<Button Height="65" Margin="198,0,90,78" VerticalAlignment="Bottom" Content="Button">
<i:Interaction.Behaviors>
<il:MouseDragElementBehavior/>
</i:Interaction.Behaviors>
</Button>
</Grid>
</UserControl>
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
Image Deep Zoom (0) | 2009.12.07 |
---|---|
Effect (효과) (0) | 2009.12.07 |
FluidMoveBehavior (0) | 2009.12.07 |
PlaySoundAction (0) | 2009.12.07 |
HyperlinkAction (0) | 2009.12.07 |