Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
259
How to change orientation of LinearGauge to Vertical rather than Horizontal?
posted

Hello - I'm just getting started with Infragistics controls for SilverLight.  I've created a XamWebLinearGauge

in code behind.  The default orientation for the linear appearance is left to right (horizontal).  I'd like it to be vertical

with the starting values at the bottom and ending values at the top.  Can this be done? What properties have to be set?

Thanks in advance

 

XamWebLinearGauge TempGauge = new XamWebLinearGauge();

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    just set Orientation = Vertical on the first scale in the gauge.

            <igGauge:XamWebLinearGauge>
                <igGauge:XamWebLinearGauge.Scales>
                    <igGauge:LinearGaugeScale Orientation="Vertical" />
                </igGauge:XamWebLinearGauge.Scales>
            </igGauge:XamWebLinearGauge>

     

    or

    TempGauge.Scales.Add(new LinearGaugeScale() { Orientation = Vertical });

Children