Example #1
0
        public void Run2()
        {
            var pen  = new Altaxo.Graph.Gdi.PenX(NamedColors.Red, 2);
            var ctrl = new Altaxo.Gui.Common.Drawing.PenAllPropertiesController(pen);

            Current.Gui.ShowDialog(ctrl, "Pen properties");
        }
Example #2
0
        public static System.Windows.Media.Pen ToWpf(this Altaxo.Graph.Gdi.PenX penx)
        {
            System.Windows.Media.Color c = ToWpf(penx.Color);
            var result = new System.Windows.Media.Pen(new System.Windows.Media.SolidColorBrush(c), penx.Width);

            return(result);
        }