我尝试添加自己的网格中的自来水处理:分配轻按电网
<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