1
0
Fork 0
Browse Source

add event handlers to buttons on main page.

pull/6/head
Craig Oates 4 years ago
parent
commit
9d26e3a308
  1. 19
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
  2. 12
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs

19
src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml

@ -120,12 +120,14 @@
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button x:Name="InfoButton" Grid.Column="0" <HyperlinkButton x:Name="InfoButton" Grid.Column="0"
FontFamily="Segoe MDL2 Assets" Content="&#xE946;" NavigateUri="http://www.nicolaellis.com"
Height="79" Width="79" VerticalAlignment="Center" FontFamily="Segoe MDL2 Assets" Content="&#xE946;"
HorizontalAlignment="Left" FontSize="28" Height="79" Width="79" VerticalAlignment="Center"
ToolTipService.Placement="Mouse" HorizontalAlignment="Left" FontSize="28"
ToolTipService.ToolTip="This is a link to a webpage with information about Nicola and the project."/> Click="InfoButton_Click"
ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="This is a link to a webpage with information about Nicola and the project."/>
<TextBox x:Name="WebAddressBox" Grid.Column="1" FontSize="26" <TextBox x:Name="WebAddressBox" Grid.Column="1" FontSize="26"
Padding="20" Text="http://3.9.19.84" TextAlignment="Left" Padding="20" Text="http://3.9.19.84" TextAlignment="Left"
@ -134,18 +136,19 @@
HorizontalContentAlignment="Left" HorizontalContentAlignment="Left"
ToolTipService.Placement="Mouse" ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="The base U.R.L. used to form the A.P.I. queries." ToolTipService.ToolTip="The base U.R.L. used to form the A.P.I. queries."
PlaceholderText="Enter the base U.R.L. here..." PlaceholderText="Enter the base U.R.L. here..." />
/>
<StackPanel Orientation="Horizontal" Grid.Column="2"> <StackPanel Orientation="Horizontal" Grid.Column="2">
<Button x:Name="RefreshButton" FontFamily="Segoe MDL2 Assets" <Button x:Name="RefreshButton" FontFamily="Segoe MDL2 Assets"
Content="&#xE72C;" Height="79" Width="79" Content="&#xE72C;" Height="79" Width="79"
VerticalAlignment="Center" FontSize="28" VerticalAlignment="Center" FontSize="28"
Margin="0,0,12,0" ToolTipService.Placement="Mouse" Margin="0,0,12,0" ToolTipService.Placement="Mouse"
Click="RefreshButton_Click"
ToolTipService.ToolTip="Click after you change the base U.R.L. it will make the program use the new U.R.L."/> ToolTipService.ToolTip="Click after you change the base U.R.L. it will make the program use the new U.R.L."/>
<Button x:Name="SaveURLButton" FontFamily="Segoe MDL2 Assets" <Button x:Name="SaveURLButton" FontFamily="Segoe MDL2 Assets"
Content="&#xE74E;" Height="79" Width="79" Content="&#xE74E;" Height="79" Width="79"
VerticalAlignment="Center" FontSize="28" VerticalAlignment="Center" FontSize="28"
Click="SaveURLButton_Click"
ToolTipService.Placement="Mouse" ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="Click to save the base U.R.L."/> ToolTipService.ToolTip="Click to save the base U.R.L."/>
</StackPanel> </StackPanel>

12
src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml.cs

@ -26,5 +26,17 @@ namespace EyesAndEars.UWP
{ {
this.InitializeComponent(); this.InitializeComponent();
} }
private void InfoButton_Click(object sender, RoutedEventArgs e) {
}
private void RefreshButton_Click(object sender, RoutedEventArgs e) {
}
private void SaveURLButton_Click(object sender, RoutedEventArgs e) {
}
} }
} }