2016-03-06 53 views
0

我有mui:当某些按钮被点击时获取与usercontrols加载的ModernFrame;框架元素/控件不可互动

按钮

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

效果很好,甚至动画新内容纳入框架,但加载到框架中的用户控件内部的元素/项目(即按钮,文本框等)不是foc可用或可点击。

任何原因,这将是的情况下,我试图在FirstFloor MUI ModernFrame样品的演示添加按钮,并具有同样的效果

回答

0

的问题是,正被装载到该帧中的加载用户控件

具有与

Command="NavigationCommands.GoToPage" 

功能按钮,但不存在于后面的代码按以下;

//Once this added, the buttons become interactive (clickable) 
ButtonPage.CommandParameter = "/Pages/Projects/Views/Create.xaml";