Example #1
0
        private void SetupValue()
        {
            var pd = HxlAttributeFragmentDefinition.ForComponent(this).ValueProperty;

            if (pd != null)
            {
                SetValue(new ValueDomValue(this, pd));
            }
        }
Example #2
0
        void GetElementData()
        {
            var elementData = _templateContext.GetElementData(true);
            var props       = HxlAttributeFragmentDefinition.ForComponent(this).ElementDataProperties;

            foreach (var prop in props)
            {
                try {
                    elementData[prop.Name] = prop.GetValue(this);
                } catch (Exception ex) {
                    Traceables.HandleComponentModelReflection(prop, ex);
                }
            }
        }