SuperMap.WindowsPhone.Core.Feature.SetElementReference C# (CSharp) Method

SetElementReference() private method

private SetElementReference ( FeatureElement element ) : void
element FeatureElement
return void
        internal void SetElementReference(FeatureElement element)
        {
            if (element == null)
            {
                this.ElementReference = null;
            }
            else
            {
                this.ElementReference = new WeakReference(element);
                Canvas.SetZIndex(element, this.zIndex);
                if (this.geometry != null)
                {
                    SuperMap.WindowsPhone.Mapping.LayerContainer.SetBounds(element, this.geometry.Bounds);
                }
            }
        }