1. WPCentral Question's Avatar
    Hi,

    I need to implement the XAML page in which there is TextBox at the bottom of the page. I have implemented the desired functionality,
    have created one grid with two rows. In the first row I have mentioned the Heading Text and in the Second row I have Created the Text Box alligned it Veritically at bottom. The problem is that When I am clicking the text box the entire page is getting scrolled upwards beyond screen and the header is getting hide. I need that only the 2nd Row having the text box should get scrolled and not the first Row. The row having the Header should remain intact and visible even when the user clcik the TextBox.

    Followning is my code snippett:

    <Grid x:Name="LayoutRoot" Background="White">
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <StackPanel Grid.Row="0" Style="{StaticResource StackPanelHeaderStyle}" Height="100">
    <TextBlock Style="{StaticResource StackPanelHeaderStyleTextBlock}" Text="Comments" />
    </StackPanel>
    <!--<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <toolkit:PhoneTextBox VerticalScrollBarVisibility="Auto" x:Name="txtusername" MaxHeight="300" BorderThickness="1" BorderBrush="Black" Foreground="Black" TextWrapping="Wrap" Height ="Auto" Width="432" AcceptsReturn="True" Background="Red" VerticalAlignment="Bottom"/>
    </Grid>-->
    <ScrollViewer Grid.Row="1">
    <toolkit:PhoneTextBox VerticalScrollBarVisibility="Auto" x:Name="txtusername" MaxHeight="300" BorderThickness="1" BorderBrush="Black" Foreground="Black" TextWrapping="Wrap" Height ="Auto" Width="432" AcceptsReturn="True" Background="Red" VerticalAlignment="Bottom"/>
    </ScrollViewer>
    </Grid>
    07-31-2014 08:44 AM

Similar Threads

  1. When samsung ativ s will get an official wp8.1 ?
    By Stefan Ilchev in forum Windows Phone 8.1
    Replies: 3
    Last Post: 08-02-2014, 12:36 AM
  2. unbranded phones get updates
    By WPCentral Question in forum Ask a Question
    Replies: 6
    Last Post: 07-31-2014, 08:50 AM
  3. BBM for public is now live
    By Pranshul Sood in forum Windows Phone 8
    Replies: 2
    Last Post: 07-31-2014, 08:25 AM
  4. BBM beta is now available in store for all
    By harryaro7 in forum Applications
    Replies: 2
    Last Post: 07-31-2014, 08:20 AM
  5. Able to get Cortana?
    By WPCentral Question in forum Ask a Question
    Replies: 1
    Last Post: 07-31-2014, 07:52 AM
LINK TO POST COPIED TO CLIPBOARD