Skip to content

Commit

Permalink
Added the design of the LocalizeIP page (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Mar 20, 2021
1 parent fa1b9c9 commit 2a18f91
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
17 changes: 16 additions & 1 deletion InternetTest/InternetTest/Pages/LocalizeIPPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
Title="LocalizeIPPage">

<Grid>

<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>

<StackPanel Margin="10,40,10,10" Grid.Row="0">
<TextBlock Text="{x:Static lang:Resources.LocalizeIP}" Foreground="{Binding Source={StaticResource Foreground1}}" FontSize="16"/>
<TextBox x:Name="IPTxt" Style="{DynamicResource TextBoxStyle1}" Margin="10" Padding="5" Background="{x:Null}" BorderBrush="{Binding Source={StaticResource AccentColor}}" SelectionBrush="{Binding Source={StaticResource AccentColor}}" CaretBrush="{Binding Source={StaticResource Foreground1}}"/>
<TextBlock x:Name="IPInfoTxt" d:Text="IP infos here" HorizontalAlignment="Left" FontWeight="Bold" FontSize="16" Margin="10,10,0,0" Foreground="{Binding Source={StaticResource Foreground1}}"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<Button x:Name="LocalizeBtn" Click="LocalizeBtn_Click" Content="{x:Static lang:Resources.LocalizeIP}" HorizontalAlignment="Center" Padding="10,5,10,5" Style="{StaticResource TabButtonStyle}" Foreground="{Binding Source={StaticResource WindowButtonsHoverForeground1}}" Background="{Binding Source={StaticResource AccentColor}}" FontWeight="Bold" Margin="0,10,10,0"/>
<Button x:Name="OpenMapBtn" Click="OpenMapBtn_Click" Content="{x:Static lang:Resources.OpenMap}" HorizontalAlignment="Center" Padding="10,5,10,5" Style="{StaticResource TabButtonStyle}" Foreground="{Binding Source={StaticResource Foreground1}}" Background="{Binding Source={StaticResource Background2}}" FontWeight="Bold" Margin="0,10,0,0"/>
</StackPanel>
</StackPanel>

</Grid>
</Page>
10 changes: 10 additions & 0 deletions InternetTest/InternetTest/Pages/LocalizeIPPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,15 @@ public LocalizeIPPage()
{
InitializeComponent();
}

private void LocalizeBtn_Click(object sender, RoutedEventArgs e)
{

}

private void OpenMapBtn_Click(object sender, RoutedEventArgs e)
{

}
}
}

0 comments on commit 2a18f91

Please sign in to comment.