我有mui:现代框架,当某些按钮被点击时,它会加载用户控件;
按钮
<Button Command="NavigationCommands.GoToPage" CommandTarget="{Binding ElementName=Frame}" x:Name="HeadWidget" FontSize="14" Margin="0,10,0,3" Content="Head Widget" Style="{StaticResource LinkButton}" />框架
<mui:ModernFrame x:Name="Frame" Source="/Pages/Projects/Views/Overview.xaml" Panel.ZIndex="999999" />更新框架的代码隐藏(单击按钮时)
EditPage.CommandParameter = "/Pages/Projects/Views/Edit/Pages/EditPages.xaml#" + valueFromPage1;它工作得很好,甚至可以将新内容动态显示到框架中,但加载到框架中的UserControl中的元素/项(即按钮、TextBoxes等)不能聚焦或单击。
无论是什么原因,我都尝试在FirstFloor mui ModernFrame示例的演示中添加按钮,并取得了相同的效果。
发布于 2016-03-06 18:30:11
问题是正在加载到帧中的已加载UserControl
有按钮,带有
Command="NavigationCommands.GoToPage" 函数,但不存在于代码后面,如下所示;
//Once this added, the buttons become interactive (clickable)
ButtonPage.CommandParameter = "/Pages/Projects/Views/Create.xaml";https://stackoverflow.com/questions/35824892
复制相似问题