HyperlinkAction
.NET프로그래밍/Silverlight 3.0 2009. 12. 7. 18:44 |[FrmHyperlinkAction.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:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" x:Class="RiaAction.FrmHyperlinkAction"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
<Rectangle x:Name="rect" Fill="#FFD2E72A" Stroke="Black" Height="43" HorizontalAlignment="Left" Margin="55,31,0,0" VerticalAlignment="Top" Width="102">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonDown">
<ic:HyperlinkAction NavigateUri="http://www.dotnetkorea.com/" TargetWindow="_blank"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
<Button x:Name="btn" Margin="146,122,145,140" Content="비주얼아카데미">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ic:HyperlinkAction NavigateUri="http://www.VisualAcademy.com"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid>
</UserControl>
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
FluidMoveBehavior (0) | 2009.12.07 |
---|---|
PlaySoundAction (0) | 2009.12.07 |
ControlStoryboardAction (0) | 2009.12.07 |
RemoveElementAction - 클릭하면 사라지는 동작 (0) | 2009.12.07 |
GoToStateAction - 컨트롤 상태 변경 액션 (0) | 2009.12.07 |