public static void SetRunLayerPostInitializationActions(GraphicsLayer layer, bool value)
 {
     if (layer == null)
     {
         throw new ArgumentNullException("layer");
     }
     if (value)
         layer.SetValue(RunLayerPostInitializationActionsProperty, value);
     else
         layer.ClearValue(RunLayerPostInitializationActionsProperty);
 }