We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Linear gauge doesn't work when it'is in the ItemTemplate

I have a list box binded to the view model. I want use linear gauge in the item template.

<phone:LongListSelector x:Name="MainLongListSelector" Margin="0,0,-12,0" ItemsSource="{Binding Items}" SelectionChanged="MainLongListSelector_SelectionChanged">
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<gauges:SfLinearGauge>
<gauges:SfLinearGauge.MainScale>
<gauges:LinearScale/>
</gauges:SfLinearGauge.MainScale>
</gauges:SfLinearGauge>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>

But this code generates an exception:
WrappedException: Error HRESULT E_FAIL has been returned from a call to a COM component.

call stack:
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj)
at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value)
at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
at System.Windows.Data.BindingOperations.SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
at System.Windows.Data.Binding.MS.Internal.IMarkupExtension.SetupExtension(Object target, Object property)
at MS.Internal.XamlManagedRuntimeRPInvokes.TryApplyMarkupExtensionValue(Object target, XamlPropertyToken propertyToken, Object value)
at MS.Internal.XamlManagedRuntimeRPInvokes.SetValue(XamlTypeToken inType, XamlQualifiedObject& inObj, XamlPropertyToken inProperty, XamlQualifiedObj

4 Replies

NM Nijamudeen Mohamed Sulaiman Syncfusion Team June 18, 2014 12:32 PM UTC

Hi Alexey,

 

Thanks for using Syncfusion Products.

 

Based on the provide information we are able to reproduce the issue. Currently we are analyzing on this and we will let you the details within two business days (Jun 20, 2014). We appreciate your patience until then.

 

Please let us know, if you have any concerns.

 

Thanks,

Nijamudeen M.



AS Alexey Stachikov June 18, 2014 12:36 PM UTC

I've attached 2 sample projects

Attachment: SfLinearGauge_85274488.zip


NM Nijamudeen Mohamed Sulaiman Syncfusion Team June 19, 2014 12:11 PM UTC

Hi Alexey,

 

Thanks for the provided information.

 

We are currently analyzing your issue based on the provided information. We will let you know the details within one business day (Jun 20, 2014). We appreciate your patience until then.

 

Please let us know, if you have any concerns.

 

Thanks,

Nijamudeen M.



NM Nijamudeen Mohamed Sulaiman Syncfusion Team June 20, 2014 11:51 AM UTC

Hi Alexey,

 

We appreciate your patience.

 

We are able to reproduce the issue and we have logged an issue report on this. In order to provide patch for this issue fix you need to create an incident in a below link.

 

Incident link: http://www.syncfusion.com/support/directtrac/incidents/newincident

 

Please let us know, if you have any concerns.

 

Thanks,

Nijamudeen M.


Loader.
Live Chat Icon For mobile
Up arrow icon