Exemplo n.º 1
0
            public SerializableObjectProperties(ExposeProperties owner, PropertyInfo info, ExposePropertyAttribute attribute)
                : base(owner, attribute.Order, info)
            {
                _ExposeProperties        = new SerializableObjectExposeProperties(null, Owner);
                _ExposeProperties.Margin = new Framework.UI.Thickness(4, 0, 0, 0);

                _Expander = new VerticalExpander(_ExposeProperties);

                _Name = _Expander.Foldout.Content.text = attribute.Name;
                _Expander.Foldout.Content.tooltip = attribute.Description;
            }
Exemplo n.º 2
0
            public ArrayProperties(ExposeProperties owner, PropertyInfo info, ExposePropertyAttribute attribute)
                : base(owner, attribute.Order, info)
            {
                _Fields    = new List <ControlProperties>();
                _SizeField = new IntField()
                {
                    Value = 0, ChangeOnReturn = true
                };
                _SizeField.ValueChanged += _SizeField_ValueChanged;
                _Panel = new Framework.UI.StackPanel()
                {
                    Orientation = Framework.UI.Orientation.Vertical
                };
                _Panel.Margin = new Framework.UI.Thickness(4, 0, 0, 0);
                _Panel.Controls.Add(_SizeField);

                _Expander = new VerticalExpander(_Panel);

                _Expander.Foldout.Content.text    = attribute.Name;
                _Expander.Foldout.Content.tooltip = attribute.Description;
            }