Last active
August 29, 2015 14:20
-
-
Save elbruno/d56f9aff17b61775847e to your computer and use it in GitHub Desktop.
W10RPI2 - Hello Valentino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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