[英]Button as HyperlinkButton
Instead of creating a HyperlinkButton to navigate to other page in a frame, i want to use the Button. 我不想使用HyperlinkButton来导航到框架中的其他页面,而是要使用Button。 I have this HyperlinkButton
我有这个HyperlinkButton
<HyperlinkButton NavigateUri="/MyPageName" TargetName="mainFrame" Content="Go To My Page" />
i think it is possible and i have this so far 我认为这是可能的,到目前为止
<Button x:Name="btnView" Content="View">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<!-- and i dont know what is next here -->
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
any help would be aprreciated.. 任何帮助将不胜感激..
TIA TIA
Design the contents of the HyperlinkButton. 设计HyperlinkButton的内容。
<HyperlinkButton Name="btn" Margin="340,5,0,0" Background="Transparent" Height="48" VerticalAlignment="Top" Padding="2,0,2,2" BorderBrush="Transparent" Foreground="Black" HorizontalAlignment="Left" Width="110">
<HyperlinkButton.Content>
<Grid>
<Rectangle Fill="#FFC1B7B7" HorizontalAlignment="Stretch" Margin="0" RadiusX="4" RadiusY="4" Stroke="#FF1D1212" StrokeThickness="2" Width="Auto" Grid.Column="1" VerticalAlignment="Top" Height="43" />
<TextBlock Text="NONE" FontSize="16" Height="20" HorizontalAlignment="Left" Margin="0" Name="tb" Padding="2" VerticalAlignment="Bottom" Width="110" FontFamily="Courier New" FontWeight="Bold" Grid.Column="1" TextAlignment="Center" />
</Grid>
</HyperlinkButton.Content>
</HyperlinkButton>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.