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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

116842 Jun 17,2014 07:18 AM Jun 20,2014 07:51 AM Windows Phone 4
loading
Tags: SfLinearGauge
Alexey Stachikov
Asked On June 17, 2014 07:18 AM

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

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On June 18, 2014 08:32 AM

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.


Alexey Stachikov
Replied On June 18, 2014 08:36 AM

I've attached 2 sample projects

Attachment: SfLinearGauge_85274488.zip

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On June 19, 2014 08:11 AM

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.


Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On June 20, 2014 07:51 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;