コード例 #1
0
        public static VisualElement CreateInstance(string type, IComponentProps props, VisualElement rootContainer)
        {
            var component = ComponentMapper.CreateComponent(type);

            ComponentMapper.ApplyProps(type, component, props);

            return(component);
        }
コード例 #2
0
        public static bool CommitUpdate(
            VisualElement instance,
            IComponentProps updatePayload,
            string type,
            IComponentProps oldProps,
            IComponentProps newProps)
        {
            ComponentMapper.ApplyProps(type, instance, updatePayload);

            return(true);
        }