// EraserToolDialog �� ���� EraserShape property�� ����Ѵ�.
        void EraserToolOnClick(object sender, RoutedEventArgs args)
        {
            EraserToolDialog dlg = new EraserToolDialog();
            dlg.Owner = this;
            dlg.EraserShape = inkcanv.EraserShape;

            if ((bool)dlg.ShowDialog().GetValueOrDefault())
            {
                inkcanv.EraserShape = dlg.EraserShape;
            }
        }
Exemple #2
0
        // Display EraserToolDialog and use EraserShape property.
        void EraserToolOnClick(object sender, RoutedEventArgs args)
        {
            EraserToolDialog dlg = new EraserToolDialog();

            dlg.Owner       = this;
            dlg.EraserShape = inkcanv.EraserShape;

            if ((bool)dlg.ShowDialog().GetValueOrDefault())
            {
                inkcanv.EraserShape = dlg.EraserShape;
            }
        }