I have the following code in XAML
<Button Tag='{Binding id}' Click="RecordClick">
<Button.Template>
<ControlTemplate>
<Image Source='./Images/RecordBG.png' Height="270" Width="270" Margin='15,-5,0,0'/>
</ControlTemplate>
</Button.Template>
</Button>
and in Code behind C#:
private void RecordClick(object sender, RoutedEventArgs e)
{
string buttonName = (string)((Button)sender).Tag;
this.Frame.Navigate(typeof(QRChart),buttonName);
}
When I click the Image button some part is not getting clicked. Some part is only working. I would like to know why it happens and how to fix this?