示例#1
0
        private NTabPage CreateEnumPage()
        {
            NTabPage    page  = new NTabPage("Enum");
            NStackPanel stack = new NStackPanel();

            page.Content = stack;
            stack.HorizontalPlacement = ENHorizontalPlacement.Left;

            NList <NPropertyEditor> editors = SimpleNodeDesigner.CreatePropertyEditors(m_SimpleNode,
                                                                                       NSimpleNode.ComboBoxEnumValueProperty,
                                                                                       NSimpleNode.HRadioGroupEnumProperty,
                                                                                       NSimpleNode.VRadioGroupEnumProperty);

            NGroupBox groupBox = new NGroupBox(editors[0].EditedProperty.ToString());

            stack.Add(groupBox);
            groupBox.Content = editors[0];

            for (int i = 1, count = editors.Count; i < count; i++)
            {
                NPropertyEditor editor = editors[i];
                stack.Add(editor);
            }

            return(page);
        }
示例#2
0
        private NTabPage CreateGraphicsCorePage()
        {
            NTabPage    page  = new NTabPage("Graphics Core");
            NStackPanel stack = CreateStackPanel();

            page.Content = new NUniSizeBoxGroup(stack);

            NList <NPropertyEditor> editors = SimpleNodeDesigner.CreatePropertyEditors(m_SimpleNode,
                                                                                       NSimpleNode.PointProperty,
                                                                                       NSimpleNode.SizeProperty,
                                                                                       NSimpleNode.RectangleProperty,
                                                                                       NSimpleNode.MarginsProperty);

            for (int i = 0, count = editors.Count; i < count; i++)
            {
                stack.Add(editors[i]);
            }

            return(page);
        }