Windows Phone 7 TextBox不允许类型空间

时间:2012-07-31 11:48:35

标签: windows-phone-7 textbox inputscope

我有下一个XAML代码:

<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>

我不能在单词之后键入空格。如何在我的应用程序中关闭拼写自动更正?

1 个答案:

答案 0 :(得分:0)

对于第二个问题 - 只需将InputScopeName NameValue参数更改为“AddressStreet” - 即可删除自动更正。查看不同输入范围here的概述。

至于你的太空问题,我认为应该根据输入的变化自动解决。如果没有,请发布一些代码隐藏代码,以便为我们提供更多信息。