コード例 #1
0
        private void SaveCmdExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            var saveFile = new SaveFileDialog {
                Filter = "JPG Image|*.jpg|PNG|*.png|XAML Data|*.xaml"
            };

            if (saveFile.ShowDialog() == true)
            {
                InkCanvas.ExportFile(saveFile.FileName, saveFile.FilterIndex);
            }
        }