示例#1
0
 protected void OnGetDefaultLinearGradientBrushCompleted(GetDefaultLinearGradientBrushEventArgs args)
 {
     if (GetDefaultLinearGradientBrushCompleted != null)
     {
         GetDefaultLinearGradientBrushCompleted(this, args);
     }
 }
 protected void OnGetDefaultLinearGradientBrushCompleted(GetDefaultLinearGradientBrushEventArgs args)
 {
     if (GetDefaultLinearGradientBrushCompleted != null)
         GetDefaultLinearGradientBrushCompleted(this, args);
 }
        void SymbolConfigProvider_GetDefaultLinearGradientBrushCompleted(object sender, GetDefaultLinearGradientBrushEventArgs e)
        {
            Symbology.AddDefaultGradientBrush(e.ColorRampType, e.DefaultBrush);

            GraphicsLayer layer = e.UserState as GraphicsLayer;
            if (layer == null)
                return;

            GeometryType geometryType = Core.LayerExtensions.GetGeometryType(layer);
            SymbolConfigProvider.GetDefaultSymbol(geometryType, layer);
        }