Skip to content

Instantly share code, notes, and snippets.

@elbruno
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbruno/d56f9aff17b61775847e to your computer and use it in GitHub Desktop.
Save elbruno/d56f9aff17b61775847e to your computer and use it in GitHub Desktop.
W10RPI2 - Hello Valentino
<Page x:Class="HelloValentino.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:HelloValentino"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Button x:Name="ButtonHello"
Grid.Row="0"
HorizontalAlignment="Center"
Click="ButtonHelloValentino_OnClick"
FontSize="80.667">Click to Hello</Button>
<TextBlock x:Name="TextBlockMessage"
HorizontalAlignment="Center"
Grid.Row="1"
Text="Hola"
FontSize="80.667"></TextBlock>
</Grid>
</Page>
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespace HelloValentino
{
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
}
private void ButtonHelloValentino_OnClick(object sender, RoutedEventArgs e)
{
TextBlockMessage.Text = $@"Hello Valentino!
Current time is:
{DateTime.Now}";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment