2012-07-31 52 views
0

我的下一個XAML代碼:的Windows Phone 7的TextBox不允許型空間

<ControlTemplate x:Key="PollAnswerRadioTextTemplate" TargetType="RadioButton"> 
      <StackPanel Width="400" Margin="20,5,5,30"> 
       <StackPanel> 
        <RadioButton 
           IsChecked="{Binding IsChecked}" 
           Click="RadioButton_Click" 
           CommandParameter="{Binding PControlName}" 
           GroupName="Answer" 
           Width="400"> 

         <RadioButton.Content> 
          <TextBlock TextWrapping="Wrap" Text="{Binding PAvalue}"></TextBlock> 
         </RadioButton.Content> 
        </RadioButton> 
       </StackPanel> 
       <StackPanel> 
        <TextBox Width="400" Text="{Binding AnswerValueText}" Tag="{Binding PControlName}" AcceptsReturn="True" > 
         <TextBox.InputScope> 
          <InputScope> 
           <InputScopeName NameValue="Chat"/> 
          </InputScope> 
         </TextBox.InputScope> 
        </TextBox> 
       </StackPanel> 
      </StackPanel> 
     </ControlTemplate> 

我不能鍵入單詞後面的空格。如何在應用程序中關閉拼寫自動更正?

回答

0

對於第二個問題 - 只需將InputScopeName NameValue參數更改爲「AddressStreet」 - 應該爲您刪除自動更正。查看不同輸入範圍here的概述。

至於你的空間問題,我認爲應該從輸入變化中自動解決。如果沒有,發佈一些你的代碼隱藏代碼給我們更多的信息工作。

+0

我已將InputScopeName更改爲「AddressStreet」,但它不起作用。沒有代碼的部分,用文本框操縱。 – Nodir 2012-07-31 13:38:02

相關問題