Search

Monday, November 25, 2013
3 comments

How to use HyperlinkButton with XAML in Windows 8 App Development

2:07 AMMonday, November 25, 2013
HyperLinkButton, used to open the specified URI in the default browser. URI can be specified in NavigateURI property of this button and it will launch that by clicking on that button. This button look like a text with underline. This button opens another page side by side in windows 8 app development.

Here's the XAML code which will create this type of button:

<Page
    x:Class="App4.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App4"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        
<HyperlinkButton x:Name="h1" NavigateUri="http://msdn.microsoft.com" Height="200" Width="257" Content="Microsoft Development Network" Margin="90,20,0,548" />


    </Grid>
</Page>

Here above the XAML code is so simple to read and understand. This code is using some mostly used properties described below:
  • x:Name: Specify the name of this button and used in code behind file.
  • NavigateURI: get or set the URI to navigate to when the button is clicked.
  • Height & Width: commonly used property by XAML elements. Read Height & Width in XAML.
  • Content: the text to be shown on the button.
  • Margin: specify the extra space to get placed around the outside edges. Read Margin in XAML.

Output

How to use HyperlinkButton in windows store app

How to use HyperlinkButton in windows store app
Protected by Copyscape Online Copyright Protection Software

3 comments :

  1. whether or not that you are an on the web only dealer or even multichannel dealer online business is actually invaluable selection to your business; underneath is actually listings connected with ideas when you determine to have got that on the web funnel available for business:

    restaurant web development

    web development company london

    application development

    ReplyDelete
  2. Respecting the dedication you put into your online journal and in profundity data you present. It's extraordinary to run into a blog now and again that isn't the same out of date repeated material. Extraordinary read! I've bookmarked your site and I'm adding your RSS channels to my Google account.
    Android App Creator // iPhone Application Development // Android App Maker

    ReplyDelete
  3. windows 8 application development is more interest as compare to other windows versions because this designs on attractive graphics and easily accessed by androids and windows mobiles.

    ReplyDelete

 
Toggle Footer
Top