示例#1
0
        /// <inheritdoc />
        public new void BindProperties(T element, ICommandProvider commandProvider = null,
                                       IList <StyleModel> styleModels = null)
        {
            if (element is null)
            {
                throw new UIException(nameof(element));
            }

            foreach (string rowDefinition in RowDefinitions)
            {
                element.RowDefinitions.Add(PropertyParser.ParseRowDefinition(rowDefinition));
            }

            foreach (string columnDefinition in ColumnDefinitions)
            {
                element.ColumnDefinitions.Add(PropertyParser.ParseColumnDefinition(columnDefinition));
            }
        }