Esempio n. 1
0
        protected override void SetEditorElementsArrangeMetadata(Telerik.UI.Xaml.Controls.Data.EntityPropertyControl editorElement, Telerik.Data.Core.EntityProperty entityProperty)
        {
//#if WINDOWS_APP
            base.SetEditorElementsArrangeMetadata(editorElement, entityProperty);

            if (entityProperty.PropertyName == "Name")
            {
                editorElement.RowCount    = 0;
                editorElement.ColumnCount = 0;
            }

//#endif
        }
 protected internal override void SetEditorElementsArrangeMetadata(EntityPropertyControl editorElement, Telerik.Data.Core.EntityProperty entityProperty)
 {
     editorElement.ColumnCount            = 0;
     editorElement.RowCount               = 3;
     editorElement.LabelRow               = 0;
     editorElement.ViewRow                = 1;
     editorElement.ErrorViewRow           = 2;
     editorElement.PositiveMessageViewRow = 2;
 }
Esempio n. 3
0
        protected override void SetEditorArrangeMetadata(Telerik.UI.Xaml.Controls.Data.EntityPropertyControl editorElement, Telerik.Data.Core.EntityProperty entityProperty, Panel parentPanel)
        {
#if WINDOWS_APP
            if (entityProperty.PropertyName == "Section")
            {
                editorElement.SetValue(Grid.ColumnProperty, 0);
            }
            if (entityProperty.PropertyName == "TableNumber")
            {
                editorElement.SetValue(Grid.ColumnProperty, 1);
            }
            if (entityProperty.PropertyName == "Origin")
            {
                editorElement.Width = 600;
                editorElement.HorizontalAlignment = HorizontalAlignment.Left;
            }
#endif
        }
        protected internal override void SetEditorArrangeMetadata(EntityPropertyControl editorElement, Telerik.Data.Core.EntityProperty entityProperty, Panel parentPanel)
        {
            var stackPanel = parentPanel as StackPanel;

            if (stackPanel != null)
            {
                stackPanel.Orientation = this.Orientation;
            }

            base.SetEditorArrangeMetadata(editorElement, entityProperty, parentPanel);
        }