2016-03-06 54 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";