Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ScrollView中的StackLayout,错误的控制焦点UWP_C#_Xamarin_Uwp_Scrollview_Stacklayout - Fatal编程技术网

C# ScrollView中的StackLayout,错误的控制焦点UWP

C# ScrollView中的StackLayout,错误的控制焦点UWP,c#,xamarin,uwp,scrollview,stacklayout,C#,Xamarin,Uwp,Scrollview,Stacklayout,我有下面的内容页 <ContentPage> <ContentPage.Content> <ScrollView> <StackLayout> <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightReques

我有下面的内容页

<ContentPage>
<ContentPage.Content>
    <ScrollView>
        <StackLayout>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
            <Editor Text="description" FontSize="20" FontAttributes="Bold" Margin="10" HeightRequest="200" HorizontalOptions="FillAndExpand"/>
        </StackLayout>
    </ScrollView>
</ContentPage.Content>
</ContentPage>

当我在UWP下运行时,有一种奇怪的行为:如果我向下滚动一点并尝试点击例如第6个编辑器,我会将焦点放在第3个编辑器控件上。
当我在scroll viewer的顶部时,我会将焦点对准正确的编辑器,但如果我稍微滚动一下,则会将焦点对准错误的编辑器。
看起来我只能看到scroll View顶部可见的前X个编辑器。
有什么想法吗?

我想你正在使用Xamarin.Forms。这是UWP平台框架中的错误

您可以在中找到此问题

请将框架升级到4.7.0.1080。这对我有用