-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03cb0e1
commit e4eb2f1
Showing
13 changed files
with
282 additions
and
114 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
93 changes: 93 additions & 0 deletions
93
NumberRecognizer/NumberRecognizer.App/View/NetworkRecognizePage.xaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<Page | ||
x:Name="pageRoot" | ||
x:Class="NumberRecognizer.App.View.NetworkRecognizePage" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:NumberRecognizer.App" | ||
xmlns:data="using:NumberRecognizer.App.DataModel" | ||
xmlns:common="using:NumberRecognizer.App.Common" | ||
xmlns:vm="using:NumberRecognizer.App.ViewModel" | ||
xmlns:chart="using:De.TorstenMandelkow.MetroChart" | ||
xmlns:control="using:NumberRecognizer.App.Control" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<!--<Page.DataContext> | ||
<vm:NetworkDetailPageViewModel/> | ||
</Page.DataContext>--> | ||
<!-- | ||
This grid acts as a root panel for the page that defines two rows: | ||
* Row 0 contains the back button and page title | ||
* Row 1 contains the rest of the page layout | ||
--> | ||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
<Grid.ChildrenTransitions> | ||
<TransitionCollection> | ||
<EntranceThemeTransition/> | ||
</TransitionCollection> | ||
</Grid.ChildrenTransitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="140"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<!-- | ||
TODO: Content should be placed within the following grid | ||
to show details for the current item | ||
--> | ||
<Grid Grid.Row="1" x:Name="contentRegion"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition/> | ||
<ColumnDefinition/> | ||
</Grid.ColumnDefinitions> | ||
<Grid Grid.Column="0"> | ||
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden"> | ||
|
||
</ScrollViewer> | ||
</Grid> | ||
<Grid Grid.Column="0" Margin="20,2,2,2"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"/> | ||
<ColumnDefinition Width="100"/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="50"/> | ||
<RowDefinition Height="80"/> | ||
<RowDefinition Height="50"/> | ||
<RowDefinition Height="50"/> | ||
<RowDefinition Height="100"/> | ||
<RowDefinition Height="70"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Please write your phone number on the canvas." Style="{StaticResource CustomTextBlockStyle}" VerticalAlignment="Center"/> | ||
<control:InkCanvasRT Grid.Column="0" Grid.Row="1" x:Name="RecognitionInkCanvas"/> | ||
<AppBarButton Command="{Binding RecognizeNumberCommand}" Grid.Column="1" Grid.Row="1" Icon="Accept" Padding="0" Margin="0" Height="100"/> | ||
<TextBlock Grid.Row="3" Grid.Column="0" Text="Recognized Number" Style="{StaticResource CustomTextBlockStyle}" VerticalAlignment="Center"/> | ||
<TextBox Text="{Binding RecognizedNumber}" IsEnabled="False" FontSize="50" Grid.Column="0" Grid.Row="4" TextAlignment="Center" CharacterSpacing="500"/> | ||
<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center"> | ||
<AppBarButton Icon="Accept" Foreground="Green"/> | ||
<AppBarButton Icon="Cancel" Foreground="Red"/> | ||
</StackPanel> | ||
</Grid> | ||
</Grid> | ||
|
||
<!-- Back button and page title --> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="120"/> | ||
<ColumnDefinition Width="*"/> | ||
</Grid.ColumnDefinitions> | ||
<Button x:Name="backButton" Margin="39,59,39,0" Command="{Binding NavigationHelper.GoBackCommand, ElementName=pageRoot}" | ||
Style="{StaticResource NavigationBackButtonNormalStyle}" | ||
VerticalAlignment="Top" | ||
AutomationProperties.Name="Back" | ||
AutomationProperties.AutomationId="BackButton" | ||
AutomationProperties.ItemType="Navigation Button"/> | ||
<StackPanel Orientation="Horizontal" Grid.Column="1"> | ||
<TextBlock x:Name="pageTitle" Text="{Binding NetworkName}" Style="{StaticResource CustomHeaderTextBlockStyle }" /> | ||
<TextBlock x:Name="pageSubtitle" Text="- Recognize" Style="{StaticResource CustomSecondaryHeaderTextBlockStyle}" /> | ||
</StackPanel> | ||
</Grid> | ||
</Grid> | ||
</Page> |
Oops, something went wrong.