I'm scanning a document and saving three values.
I want to create a pop-up that will appear after the scan and will consist of 3 text boxes. Each text box will contain by default the scanned value, when I will have the abuilty to edit it by pressing on the text box.
I've looked at the text box properties but found only "read-only" property. Besides that, I really don't have a clue how to start and what to look for.
meanwhile I have this xaml describing the pop-up:
<Popup x:Name="AfterScan" Grid.Row="2">
<Border BorderThickness="2" Margin="10" BorderBrush="{StaticResource PhoneAccentBrush}">
<StackPanel Background="Gainsboro" Width="434" Height="400">
<TextBlock Text="Bill Details" TextAlignment="Center" FontSize="40" Margin="10,0" Foreground="Black"/>
<TextBlock Text="Please review Bill Details and click OK when done" FontSize="17" Margin="40,0,10,0" Foreground="Black"/>
<StackPanel Orientation="Horizontal" Margin="0,10">
<TextBox x:Name="test" Width="100" Margin="10,0,10,0" Foreground="Black" BorderBrush="Black"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,10">
<TextBox x:Name="test2" Width="100" Margin="10,0,10,0" Foreground="Black" BorderBrush="Black"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,10">
<Button x:Name="btn_OK" Content="OK" Width="215" Margin="110,0,10,0" Click="EnsuredDetails_Click" Foreground="Black" BorderBrush="Black"/>
</StackPanel>
</StackPanel>
</Border>
</Popup>
I know that If I write a value - I can get it and use it later, but I want the text box to contain my scanned value.
I also saw this article: http://mrbool.com/how-to-build-a-custom-textbox-in-windows-phone/25846
My problem is that the default value of this text box is a string declared in the xaml code, and I need it to be a dynamic parameter:
<my:DefaultTxt_box Height="103" HorizontalAlignment="Left" Margin="-4,49,0,0"Name="defaultTxt_box1"
Text="" D_Text="Enter Your Name" VerticalAlignment="Top" Width="460"FontSize="32" FontFamily="Comic Sans MS" Foreground="#FFFFFF4C">
<my:DefaultTxt_box.Background>
Can someone please guide me a little?
Thanks a lot!