static Marker2DKindNameToMarker2DModelConverter() { models = new Dictionary <string, Marker2DModel>(); foreach (Marker2DKind kind in Marker2DModel.GetPredefinedKinds()) { models.Add(kind.Name, (Marker2DModel)Activator.CreateInstance(kind.Type)); } }
static IList <ChartMarker2DKind> GetPredefinedMarker2DKindsCore() { List <ChartMarker2DKind> markers = new List <ChartMarker2DKind>(); foreach (Marker2DKind item in Marker2DModel.GetPredefinedKinds()) { markers.Add(new ChartMarker2DKind(item.Name, null)); } return(markers); }
public static Marker2DKind FindActualMarker2DModelKind(Type modelType) { IEnumerable <Marker2DKind> marker2DKinds = Marker2DModel.GetPredefinedKinds(); foreach (Marker2DKind marker2DKind in marker2DKinds) { if (Object.Equals(marker2DKind.Type, modelType)) { return(marker2DKind); } } return(null); }
public static void SetMarker2DModel(DependencyObject d, Marker2DModel value) { d.SetValue(Marker2DModelProperty, value); }