/// <inheritdoc /> public new void BindProperties(T element, ICommandProvider commandProvider = null, IList <StyleModel> styleModels = null) { if (element is null) { throw new UIException(nameof(element)); } //element.BindingGroup = default; //element.ContextMenu = default; //element.Cursor = default; //element.DataContext = bool isParsed = Enum.TryParse(FlowDirection, out FlowDirection flowDirection); element.FlowDirection = isParsed ? flowDirection : default; //Bind focus visual style element.FocusVisualStyle = StyleModel.TryGetStyle <Style>(styleModels, FocusVisualStyleId); element.ForceCursor = ForceCursor; element.Height = Height; isParsed = Enum.TryParse(HorizontalAlignment, out HorizontalAlignment horizontalAlignment); element.HorizontalAlignment = isParsed ? horizontalAlignment : default; //element.InputScope if (!string.IsNullOrWhiteSpace(Language)) { element.Language = XmlLanguage.GetLanguage(Language); } if (!string.IsNullOrWhiteSpace(LayoutTransform)) { element.LayoutTransform = Transform.Parse(LayoutTransform); } element.Margin = new Thickness(Margin); element.MaxHeight = MaxHeight; element.MaxWidth = MaxWidth; element.MinHeight = MinHeight; element.MinWidth = MinWidth; element.Name = Name; element.OverridesDefaultStyle = OverridesDefaultStyle; //element.Resources; //Bind style element.Style = StyleModel.TryGetStyle <Style>(styleModels, StyleId); //element.Tag; //element.ToolTip; element.UseLayoutRounding = UseLayoutRounding; isParsed = Enum.TryParse(VerticalAlignment, out VerticalAlignment verticalAlignment); element.VerticalAlignment = isParsed ? verticalAlignment : default; element.Width = Width; }