This is a migrated thread and some comments may be shown as answers.

[Solved] InlineModeThreshold bug

1 Answer 76 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vladimir
Top achievements
Rank 1
Vladimir asked on 24 Aug 2013, 03:52 PM
Hi,

I am using the RadControls for Windows Phone 7 2013.2 718.
I've faced an issue.

If I declare the following xaml:
<telerikInput:RadListPicker x:Name="myPicker"                                                                                                           
                            Margin="0"
                            VerticalAlignment="Stretch"                                                                      
                            InlineModeThreshold="1"
                            Grid.Row="1" >
    <telerikInput:RadListPickerItem Content="123"/>           
</telerikInput:RadListPicker>
everything works.

But If I declare:
<telerikInput:RadListPicker x:Name="myPicker"                                                                                                           
                            Margin="0"
                            VerticalAlignment="Stretch"                                                                      
                            InlineModeThreshold="0"
                            Grid.Row="1" >
    <telerikInput:RadListPickerItem Content="123"/>           
</telerikInput:RadListPicker>
I get an exception "Element is already the child of another element."
CallStack info(if it's matters)
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, DependencyObject doh)
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)

What I would like to do:
I want to declare the items in xaml and force RadListPicker to work always in "full screen" mode.

regards,
Vladimir.

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 27 Aug 2013, 10:14 AM
Hello Vladimir,

Thank you for contacting us. This is a known limitation of RadListPicker. Please take a look at this forum thread and let me know whether the suggested workaround works for you. 

Regards,
Kiril Stanoev
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ListPicker
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or