internal static HandleRef getCPtr(FrameworkPropertyMetadata obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
            public MetadataEntry(DependencyProperty property, PropertyMetadata metadata)
            {
                this.PropertyName            = property.Name;
                this.DefaultValue            = metadata.DefaultValue;
                this.PropertyChangedCallback = metadata.PropertyChangedCallback;
                this.CoerceValueCallback     = metadata.CoerceValueCallback;
                this.options = FrameworkPropertyMetadataOptions.None;
                if (metadata is FrameworkPropertyMetadata)
                {
                    this.type = MetadataType.Framework;

                    FrameworkPropertyMetadata metadata_ = (FrameworkPropertyMetadata)metadata;
                    if (metadata_.AffectsMeasure)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.AffectsMeasure;
                    }
                    if (metadata_.AffectsArrange)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.AffectsArrange;
                    }
                    if (metadata_.AffectsParentMeasure)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.AffectsParentMeasure;
                    }
                    if (metadata_.AffectsParentArrange)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.AffectsParentArrange;
                    }
                    if (metadata_.AffectsRender)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.AffectsRender;
                    }
                    if (metadata_.Inherits)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.Inherits;
                    }
                    if (metadata_.OverridesInheritanceBehavior)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.OverridesInheritanceBehavior;
                    }
                    if (metadata_.IsNotDataBindable)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.NotDataBindable;
                    }
                    if (metadata_.BindsTwoWayByDefault)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.BindsTwoWayByDefault;
                    }
                    if (metadata_.Journal)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.Journal;
                    }
                    if (metadata_.SubPropertiesDoNotAffectRender)
                    {
                        this.options |= FrameworkPropertyMetadataOptions.SubPropertiesDoNotAffectRender;
                    }
                }
                else if (metadata is UIPropertyMetadata)
                {
                    this.type = MetadataType.UI;
                }
                else
                {
                    this.type = MetadataType.Base;
                }
            }