Ejemplo n.º 1
0
        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);
            }
        }