Exemplo n.º 1
0
        public PropertyPage(string titleId, int iconId, PropertiesExplorer propExplorer)
        {
            TitleId = titleId;
            IconId  = iconId;

            AutoScroll = true;
            //Font = new Font(Font.FontFamily, 20);
            stringFormat               = new StringFormat(StringFormat.GenericDefault);
            stringFormat.FormatFlags   = StringFormatFlags.NoWrap;
            stringFormat.LineAlignment = StringAlignment.Center;
            stringFormat.Trimming      = StringTrimming.EllipsisCharacter;
            rootProperties             = new List <IPropertyEntry>();
            selected = -1;
            // avoid flickering:
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();
            toolTip = new ToolTip();
            toolTip.InitialDelay = 500;
            propertiesExplorer   = propExplorer;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor without form dependency.
 /// </summary>
 /// <param name="propertiesExplorer"></param>
 /// <param name="cadCanvas"></param>
 /// <param name="commandHandler"></param>
 public CadFrame(PropertiesExplorer propertiesExplorer, CadCanvas cadCanvas, ICommandHandler commandHandler)
     : base(propertiesExplorer, cadCanvas)
 {
     this.commandHandler = commandHandler;
 }