Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.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
我能';t在WPF(vs2013 C#)的现代UI中启用我的列表框_C#_Wpf_Visual Studio 2013_Blend_Modern Ui - Fatal编程技术网

我能';t在WPF(vs2013 C#)的现代UI中启用我的列表框

我能';t在WPF(vs2013 C#)的现代UI中启用我的列表框,c#,wpf,visual-studio-2013,blend,modern-ui,C#,Wpf,Visual Studio 2013,Blend,Modern Ui,我的主窗口是一个带有一组链接的现代选项卡。每个链接导航到不同的页面 <mui:ModernTab Layout="List" Margin="0,0.5,-222,-2" HorizontalAlignment="Left" Width="742"> <mui:ModernTab.Links> <!-- TODO: set @Source --> <mui:Link DisplayName="Page 0" Sou

我的主窗口是一个带有一组链接的现代选项卡。每个链接导航到不同的页面

<mui:ModernTab Layout="List" Margin="0,0.5,-222,-2" HorizontalAlignment="Left" Width="742">
    <mui:ModernTab.Links>
        <!-- TODO: set @Source -->
        <mui:Link DisplayName="Page 0" Source="Page0.xaml"/>
        <mui:Link DisplayName="Page 1" Source="Page1.xaml"/>
        <mui:Link DisplayName="Page 2" Source="Page2.xaml" />
        <mui:Link DisplayName="Page 3" Source="Page3.xaml"/>
    </mui:ModernTab.Links>
</mui:ModernTab>

第0页显示包含多个项目的列表框

<ListBox HorizontalAlignment="Left" Height="100" Margin="100.5,44,0,0" VerticalAlignment="Top" Width="258" BorderThickness="2" BorderBrush="#FF0C2E17">
    <ListBoxItem Content="CA" Height="21" Width="236"/>
    <ListBoxItem Content="Order" Height="21" Width="236"/>
    <ListBoxItem Content="Year" Height="21" Width="236"/>
    <ListBoxItem Content="Most ordered products" Height="21" Width="236"/>
</ListBox>


问题是,当我将列表框放在页面的最顶部或最底部时,它会被启用,但如果我将其移动到其他任何位置,它就会被禁用。我已经找了一段时间的解决方案,但我什么也找不到。任何帮助都很好。

您必须设置以下内容:

Topmost="True"

我自己找到了解决办法


使用属性源可以很好地工作。我在我的主窗口前放了一个图像框,没有注意到。我删除了它,它的工作

我不能使用它,因为在wpf的现代UI中,使用的是页面而不是windows。