1
Vote

Use source code in WP 7.5 / 7.8

description

Hello,

First I really want to thank you for the great control. It works like a charm! - Unfortunately, just in WP 8 for me!

Using Windows Phone 7.5 / 7.8, I'm not able to use your source code properly. I have copied the ReorderListBox.cs and ReorderListBoxItem.cs files into my assembly. (Where) shoul I add the Themes\Generic.xaml? Should I add/do something else?

I want to use your control like this:
xmlns:rlb="clr-namespace:ReorderListBox"
<rlb:ReorderListBox x:Name="MainViewReorderListBox" IsReorderEnabled="True" >
                        <rlb:ReorderListBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Margin="12,4,12,4" FontSize="36" Text="{Binding}" />
                            </DataTemplate>
                        </rlb:ReorderListBox.ItemTemplate>
                    </rlb:ReorderListBox>
I appreciate every help. :)

comments

jasongin wrote Jan 20, 2014 at 5:49 AM

Copy Generic.xaml into a Themes subfolder in your project. I think that should be all you need.

sebfrie wrote Jan 20, 2014 at 6:21 AM

Thanks for you answer but it doesn't seem to solve the problem.

After adding the Themes/Generic.xaml (buildaction: page ??) I get an exception when trying to set DefaultStyleKey.DeclaringMethod in the control's constructor: InvalidOperationException: [Arg_NotGenericParameter]

Do you also get this exception? How can I manage that?