을 클릭 응답하지 않습니다. 버튼은 잘 생성되고 발견되어 C#에서 핸들러를 첨부 할 수 있지만 클릭에 응답하지 않는 것 같습니다. 버튼을 누르면 색상이 변경되지 않고 연관된 핸들러가 호출되지 않습니다. 사용버튼이 나는 버튼 중 하나는 여러 개체를 포함하는 그리드를로드하는 XamlReader를 사용하여 시도 8.</p> <p>윈도우 폰을위한 프로젝트입니다
XAML은 XamlReader로 읽을 가
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name = "testgrid" Background = "Transparent">
<Button x:Name="btn" Content="Button" HorizontalAlignment="Left"
VerticalAlignment="Top" Margin="0,0,0,0" Grid.Row="1" Height="81"/>
<TextBlock Text = "Test"/>
</Grid>
C# 코드는 여기에 문제가있을 수 무엇
Grid tGrid = (Grid)XamlReader.Load(xaml);
Button tgtButton = (Button)tGrid.FindName("btn");
LayoutRoot.Children.Add((UIElement)tGrid);
tgtButton.Content = "bloop";
입니까? 감사!
p.s. 로드 된 xaml이 단추 인 경우에만 같은 방법을 사용하여 LayoutRoot에 추가하면 눌러도 응답합니다.