0

windows phone keypad에 다소 이상한 효과가 나타났습니다 (portrait mode). 나는 bottom of my gridtextbox을 가지고 있으며 그 아래에는 app bar입니다. 이제 텍스트 상자에 포커스가 있으면 textbox and the keypad 사이에 불필요한 공백이 있습니다. 나는이 사진에서 지적했다.Windows 전화 키패드에서 불필요한 간격. 이것은 OS 버그입니까?

enter image description here. 여기 또한

내 코드는,

<Grid x:Name="LayoutRoot" Background="Green"> 
    <Grid.RowDefinitions> 
     <RowDefinition Height="Auto"/> 
     <RowDefinition Height="*"/> 
    </Grid.RowDefinitions> 
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> 
     <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/> 
     <TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/> 
    </StackPanel> 

    <!--ContentPanel - place additional content here--> 
    <Grid Background="PeachPuff" x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> 
     <Grid.RowDefinitions> 
      <RowDefinition Height="*"/> 
      <RowDefinition Height="*" MaxHeight="100"/> 
     </Grid.RowDefinitions> 
     <ScrollViewer x:Name="scrollthis"> 
      <StackPanel x:Name="mystack"/> 
     </ScrollViewer> 
     <TextBox InputScope="Search" Grid.Row="1" x:Name="myTextBox"/> 
    </Grid> 

    <!--Uncomment to see an alignment grid to help ensure your controls are 
     aligned on common boundaries. The image has a top margin of -32px to 
     account for the System Tray. Set this to 0 (or remove the margin altogether) 
     if the System Tray is hidden. 

     Before shipping remove this XAML and the image itself.--> 
    <!--<Image Source="/Assets/AlignmentGrid.png" VerticalAlignment="Top" Height="800" Width="480" Margin="0,-32,0,0" Grid.Row="0" Grid.RowSpan="2" IsHitTestVisible="False" />--> 
</Grid> 
<phone:PhoneApplicationPage.ApplicationBar> 
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> 
     <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="enter text" Click="ApplicationBarIconButton_Click_1"/> 
    </shell:ApplicationBar> 
</phone:PhoneApplicationPage.ApplicationBar> 

응용 프로그램 모음에서 나는 다음을 수행 클릭합니다.

private void ApplicationBarIconButton_Click_1(object sender, EventArgs e) 
    { 
     TextBlock text = new TextBlock() { Text = myTextBox.Text, Margin = new Thickness(0,0,0,5) }; 
     myTextBox.Text = ""; 
     mystack.Children.Add(text); 
    } 

OS 버그 인 경우 해킹을해야합니까? Also please note that this spacing is not there in the landscape mode.

UPDATE는

난 그냥 세로 모드 아래에서 app bar가있는 경우에만 그런 일이 발견.

UPDATE는

나는 또한 그리드 여백, 텍스트를 입력 한 후, 간격이 성장하기 시작 처리하는 경우에도 처음에 한 가지 더주의했다.

답변

0

이것은 GDR 3 업데이트에서 수정 된 버그입니다.

0

불투명도 (0.99는 작동합니다)로 appbar를 수정하고 ContentPanel의 아래쪽 여백을 72 (앱 표시 줄 높이)로 설정하십시오.

+0

안녕하세요, 해킹이 맞나요? 왜 이런 일이 일어 났는지 말해 줄 수 있어요? 이것을 사용하면 키패드가 열린 후 마진이 생겨 바람직하지 않습니다. –

+0

해킹 또는 기능, 잘 모르겠습니다. MS 팀에 그런 질문을하십시오. 텍스트 상자에 포커스를 맞추면 앱바를 숨길 수 있습니다. –

+0

앱 표시 줄에 보내기 옵션이 표시되어 숨길 수 없습니다. –