Franklin,
Try to set the InmemoryFeatureLayer as following way, hope it helps:
InMemoryFeatureLayer inMemoryLayer = new InMemoryFeatureLayer();
inMemoryLayer.Open();
inMemoryLayer.Columns.Add(new FeatureSourceColumn("PolyNameString", "string", 20));
Feature feature1 = new Feature(BaseShape.CreateShapeFromWellKnownData("POLYGON((10 60,40 70,30 85, 10 60))"));
feature1.ColumnValues.Add("PolyNameString", "This is POLYGON");
inMemoryLayer.InternalFeatures.Add("Polygon", feature1);
Feature feature2 = new Feature(new RectangleShape(65, 30, 95, 15));
feature2.ColumnValues.Add("PolyNameString", "This is Rectangle");
inMemoryLayer.InternalFeatures.Add("Rectangle", feature2);
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.FillSolidBrush.Color = GeoColor.FromArgb(100, GeoColor.StandardColors.RoyalBlue);
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.OutlinePen.Color = GeoColor.StandardColors.Blue;
inMemoryLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Park1("PolyNameString");
inMemoryLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Any more questions or concerns please do not hesitate to let me know.
Thanks.
Yale