Beispiel #1
0
        internal void Detach()
        {
            RadMap oldMap = this.map;

            this.map = null;
            this.OnDetached(oldMap);
        }
Beispiel #2
0
 internal void Detach()
 {
     this.OnDetached();
     if (this.map.RenderSurface != null)
     {
         this.map.RenderSurface.Children.Remove(this);
     }
     this.map = null;
 }
Beispiel #3
0
 internal void Attach(RadMap owner)
 {
     this.map = owner;
     if (this.map.RenderSurface != null)
     {
         this.OnMapTemplateApplied();
     }
     this.OnAttached();
 }
Beispiel #4
0
        private void InvalidateUI(RadMap owner = null)
        {
            if (owner == null)
            {
                owner = this.Owner;
            }

            this.areModelsProcessed = false;

            if (owner != null)
            {
                foreach (var behavior in owner.Behaviors)
                {
                    behavior.OnShapeLayerCleared(this);
                }
            }

            // clear the cross-references
            foreach (var shape in this.shapes)
            {
                shape.Model = null;
            }
            this.modelToVisualTable.Clear();

            if (owner != null)
            {
                owner.D2DSurface.SetShapesForLayer(null, new ShapeLayerParameters()
                {
                    Id = this.id, ZIndex = this.zIndex, RenderPrecision = ShapeRenderPrecision.Double
                });
            }
            this.shapes.Clear();

            if (this.colorizerCache != null)
            {
                this.colorizerCache.Reset();
            }
        }
Beispiel #5
0
        internal override void OnDetached(RadMap oldMap)
        {
            base.OnDetached(oldMap);

            this.InvalidateUI(oldMap);
        }
Beispiel #6
0
 internal MapLayerCollection(RadMap control)
 {
     this.map = control;
 }
 internal MapBehaviorCollection(RadMap owner)
 {
     this.owner = owner;
 }
Beispiel #8
0
 internal virtual void OnDetached(RadMap oldMap)
 {
 }
Beispiel #9
0
 internal void Attach(RadMap owner)
 {
     this.map = owner;
     this.OnAttached();
 }