So does that mean Status should be defined as an attribute of the feature?
But the status changes dynamically, and the status is passed to the WPF application via WCF operation.
So how to assign the new attribute value?
if (graphic.Attributes.ContainsKey("Status")) graphic.Attributes["Status"] = status; else graphic.Attributes.Add("Status", status);
Yes, it's the easiest way.
You can add attributes at runtime :if (graphic.Attributes.ContainsKey("Status")) graphic.Attributes["Status"] = status; else graphic.Attributes.Add("Status", status);