Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/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
Xaml 垂直滚动条在弹出元素内的列表框中不可见_Xaml_Listbox_Popup_Windows Phone 8.1 - Fatal编程技术网

Xaml 垂直滚动条在弹出元素内的列表框中不可见

Xaml 垂直滚动条在弹出元素内的列表框中不可见,xaml,listbox,popup,windows-phone-8.1,Xaml,Listbox,Popup,Windows Phone 8.1,垂直滚动条在W 8.1中可见,但在我的emulator上的WP 8.1中不可见 我错过了什么 我还尝试将VerticalScrollBarVisibility设置为Visible <Popup x:Name="LayerPopupWindow" IsLightDismissEnabled="True" > <ListBox x:Name="MyList" Margin="3" Width="auto" Background="#DDFFFFFF" Height="{Bindin

垂直滚动条在W 8.1中可见,但在我的emulator上的WP 8.1中不可见

我错过了什么

我还尝试将VerticalScrollBarVisibility设置为Visible

<Popup x:Name="LayerPopupWindow" IsLightDismissEnabled="True" >
<ListBox x:Name="MyList" Margin="3" Width="auto" Background="#DDFFFFFF"
Height="{Binding Path=ActualHeight,ElementName=MyMapView}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollMode="Enabled">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="auto" >
<CheckBox IsChecked="{Binding IsVisible, Mode=TwoWay}" BorderBrush="Black" MinWidth="30"/>
<TextBlock Text="{Binding ID, Mode=OneWay}" VerticalAlignment="Center" >
<ToolTipService.ToolTip>
<StackPanel MaxWidth="400">
<TextBlock FontWeight="Bold" Text="{Binding CopyrightText}" TextWrapping="Wrap" />
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
</StackPanel>
</ToolTipService.ToolTip>
</TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Popup>

查看了您的链接Depechie,并在我的示例中进行了尝试,由于某些原因,滚动条仍然不可见

然后我找到了这个链接

尝试了它,滚动条知道是可见的,所以问题解决了。

检查以下解决方案:>通常您需要通过模板更改列表框内滚动条的样式