/// <summary> /// Sets the value of the DynamicLayerFullExtent attached property to a specified DynamicLayer. /// </summary> /// <param name="element">The DynamicLayer to which the attached property is written.</param> /// <param name="value">The needed DynamicLayerFullExtent value.</param> public static void SetDynamicLayerFullExtent(DynamicLayer element, Envelope value) { if (element == null) { throw new ArgumentNullException("element"); } element.SetValue(DynamicLayerFullExtentProperty, value); }
public static void InitRefreshTimer(this DynamicLayer lyr, TimeSpan interval) { DynamicLayerTimer tmr = new DynamicLayerTimer { BoundLayer = lyr, Interval = interval }; lyr.SetValue(RefreshTimerProperty, tmr); tmr.Tick += new EventHandler(tmr_Tick); }
/// <summary> /// Sets the value of the DynamicLayerFullExtent attached property to a specified DynamicLayer. /// </summary> /// <param name="element">The DynamicLayer to which the attached property is written.</param> /// <param name="value">The needed DynamicLayerFullExtent value.</param> public static void SetDynamicLayerFullExtent(DynamicLayer element, Envelope value) { if (element == null) { throw new ArgumentNullException("element"); } element.SetValue(DynamicLayerFullExtentProperty, value); }