常用方法
常用方法
常用方法
常用方法
private void OpenCmdExecuted(object sender, ExecutedRoutedEventArgs e) { var openFile = new OpenFileDialog { Filter = "JPG Image|*.jpg|PNG|*.png|XAML Data|*.xaml" }; if (openFile.ShowDialog() == true) { InkCanvas.OpenFile(openFile.FileName, openFile.FilterIndex); } }