Linear Gauge does not work in a Data Template

Hi there,

I am trying to get the LinearGauge to work in the DataTemplate of a bound WPF ListView. However, it doesn't seem to work in this scenario. A gauge is displayed for each item in the list that the ListView is bound to, but each gauge is only displayed with its default properties - neither static or bound properties have any effect on the appearance. 

By way of example, I have boiled this down to the simplest example of simply trying to show a list of gauges with the Maximum scale value set to 500. However, what is displayed is a list of gauges with their default maximum of 100.

        <ListView ItemsSource="{Binding ListOfThings}">
            <ListView.ItemTemplate>
                <DataTemplate>

                    <syncfusion:SfLinearGauge>
                        <syncfusion:SfLinearGauge.MainScale>
                            <syncfusion:LinearScale Maximum="500" >

                            </syncfusion:LinearScale>
                        </syncfusion:SfLinearGauge.MainScale>
                    </syncfusion:SfLinearGauge>
                    
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>    


Is this a bug or an unsupported scenario?

Thanks
Chris



3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team August 8, 2015 08:46 AM UTC

Hi Chris,

Thanks for using Syncfusion products. We have created a support incident under your account to track the status of this Query.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let us know if you have any concerns.

Regards

Vigneshkumar R.



MY myron March 30, 2018 12:18 AM UTC

yes


SG Sri Gayathri Gopalakrishnan Syncfusion Team March 30, 2018 09:02 AM UTC

Hi Myron, 
 
Please let us know your requirement in specific so that we can assist you promptly. 
 
Regards, 
Sri Gayathri. G 


Loader.
Up arrow icon