예제 #1
0
 public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers)
 {
     // clone it
     Config           = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig));
     ElementRenderers = elementRenderers;
     ForegroundColors = Config.ContainerStyles.Default.ForegroundColors;
 }
예제 #2
0
 public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers, Dictionary <string, object> elementDefinitions = default(Dictionary <string, object>))
 {
     // clone it
     Config             = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig));
     ElementRenderers   = elementRenderers;
     ElementDefinitions = elementDefinitions;
 }
예제 #3
0
 public AdaptiveRenderContext(AdaptiveHostConfig hostConfig, AdaptiveElementRenderers <HtmlTag, AdaptiveRenderContext> elementRenderers)
 {
     // clone it
     Config           = JsonConvert.DeserializeObject <AdaptiveHostConfig>(JsonConvert.SerializeObject(hostConfig));
     ElementRenderers = elementRenderers;
 }