我嘗試添加自己的網格中的自來水處理:分配輕按電網
<Grid x:Name="LayoutRoot" Background="#FF1F1F1F" Tap="OnTap">........</Grid>
和InitializeComponent();
我得到這個:
A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in System.Windows.ni.dll
Failed to assign to property 'System.Windows.UIElement.Tap'. [Line: 14 Position: 58]
{System.Windows.Markup.XamlParseException: Failed to assign to property 'System.Windows.UIElement.Tap'. [Line: 14 Position: 58]
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at *.NowPlayingPageControl.InitializeComponent()
at *.NowPlayingPageControl..ctor()}
你應該給人更多的信息。你的代碼是什麼? – 2013-02-13 09:16:49
對不起,我編輯我的代碼 – MTA 2013-02-13 09:18:13