
Hello,
Is there a possibility to load actipro gauges dynamically at runtime?
Container for these gauges would be an xml file. Is there a simple way to achieve that?
My first approach:leads me to a type converter error of the LinearGauge.
So how can I access the LinearGauge type Converter ??
Or perhaps there is an easier way to load the gauge ?? ... Any help would be highly appreciated.
Is there a possibility to load actipro gauges dynamically at runtime?
Container for these gauges would be an xml file. Is there a simple way to achieve that?
My first approach:
XmlTextReader r = new XmlTextReader("Controls.xml");
XElement controls = XElement.Load(r);
var gauges = controls.Elements("Gauges");
var gauge = (from g in gauges.Elements()
where g.Attribute("Name").Value == "Linear_Gauge"
select g).First();
LinearGauge lg = (LinearGauge) XamlReader.Load(gauge.CreateReader());
So how can I access the LinearGauge type Converter ??
Or perhaps there is an easier way to load the gauge ?? ... Any help would be highly appreciated.