internal void Detach() { RadMap oldMap = this.map; this.map = null; this.OnDetached(oldMap); }
internal void Detach() { this.OnDetached(); if (this.map.RenderSurface != null) { this.map.RenderSurface.Children.Remove(this); } this.map = null; }
internal void Attach(RadMap owner) { this.map = owner; if (this.map.RenderSurface != null) { this.OnMapTemplateApplied(); } this.OnAttached(); }
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(); } }
internal override void OnDetached(RadMap oldMap) { base.OnDetached(oldMap); this.InvalidateUI(oldMap); }
internal MapLayerCollection(RadMap control) { this.map = control; }
internal MapBehaviorCollection(RadMap owner) { this.owner = owner; }
internal virtual void OnDetached(RadMap oldMap) { }
internal void Attach(RadMap owner) { this.map = owner; this.OnAttached(); }