/// <summary> /// Optional path can be specified to check for "context related" configuration. /// </summary> /// <returns></returns> public IGraphPresentation CreatePresentation( string dataRoot ) { if ( !string.IsNullOrEmpty( dataRoot ) ) { ConfigurationService.Update( dataRoot ); } var presentation = new GraphPresentation(); if ( ConfigurationService.Config.NodeIdAsDefaultToolTip ) { presentation.GetPropertySetFor<ToolTipContent>().DefaultProvider = id => new ToolTipContent( id, new TextBlock { Text = id } ); } presentation.GetModule<CaptionModule>().LabelConverter = new GenericLabelConverter( ConfigurationService.Config.LabelConversion ); return presentation; }
/// <summary> /// Optional path can be specified to check for "context related" configuration. /// </summary> /// <returns></returns> public IGraphPresentation CreatePresentation(string dataRoot) { if (!string.IsNullOrEmpty(dataRoot)) { ConfigurationService.Update(dataRoot); } var presentation = new GraphPresentation(); if (ConfigurationService.Config.NodeIdAsDefaultToolTip) { presentation.GetPropertySetFor <ToolTipContent>().DefaultProvider = id => new ToolTipContent(id, new TextBlock { Text = id }); } presentation.GetModule <CaptionModule>().LabelConverter = new GenericLabelConverter(ConfigurationService.Config.LabelConversion); return(presentation); }