public RadialGradientBrush(Point relCenter, Size relRadius, params GradientStop[] stops) { Center = relCenter; Focus = relCenter; Radius = relRadius; Stops.AddRange(stops); }
private void AddStops() { ShowLoader(); Stops.Clear(); Stops.AddRange(unitOfWork.PublicStopRepository.GetNearby(30)); ShowList(); }
protected void LoadStops(SvgVisualElement parent) { var core = SvgDeferredPaintServer.TryGet <SvgGradientServer>(InheritGradient, parent); if (Stops.Count == 0 && core != null) { Stops.AddRange(core.Stops); } }
private void LoadStops(SvgVisualElement parent) { var gradient = this; while (gradient?.Stops.Count == 0) { gradient = SvgDeferredPaintServer.TryGet <SvgGradientServer>(gradient.InheritGradient, parent); } if (gradient != null) { Stops.AddRange(gradient.Stops); } }
private void TimerTickSearch(object sender, EventArgs e) { timerSearch.Stop(); ShowHeaderLoader(); IEnumerable <PublicStop> stops = unitOfWork.PublicStopRepository.GetByName(searchText); Stops.Clear(); Stops.AddRange(stops); HideHeaderLoader(); base.AddFeatureUse(PageUseType.TextBox, string.Format("Searched for [{0}]", searchText)); }
public LinearGradientBrush(Point relStart, Point relEnd, params GradientStop[] stops) { Start = relStart; End = relEnd; Stops.AddRange(stops); }