I'm using an Inkcanvas at my solution. So I want to delete after user confirm, like this...
XAML:
<InkCanvas Grid.RowSpan="3" Name="ink" StrokeErasing="ink_StrokeErasing" />
C#:
private void ink_StrokeErasing(object sender, InkCanvasStrokeErasingEventArgs e)
{
if (MessageBox.Show("Delete this stroke?", "", MessageBoxButton.OKCancel) != MessageBoxResult.OK)
{
e.Cancel = true;
}
}
After that, I can see the messagebox twice, :( This Wonder how that happened. Please let me konw about this.