locked
Help on strange droping issue RRS feed

  • Question

  • Dear all,

    Long time have not been here and now I am back again.

    I met a strange issue while droping a Scatterview Item on top of a LibraryContainer which bind to a colection of Pictures.

    I have a LibraryContainer defined as follow :

    <s:LibraryContainer x:Name="SurfaceContainer" Tag="Presentation" Background="WhiteSmoke"
                  ItemsSource="{Binding Path=PictureCollection}" CanSwitchViewingMode="False" />
    

    This container is part of a SurfaceUserControl

    When my app start, I add to the main application scaterrview, a single scattervieItem which is bind to a picture path and then I add also to same scatterview the SurfaceUSerCOntrol containing my LibraryContainer binds to a PictureCollection

    If I drag and drop an item from the library container to the surface and reverse, it works fine.

    If I drag the simple scatterview  item pointing to a picture path, on top of the the LibraryContainer, then I get a TargetInvocationException saying:
    "{"The cursor data dropped to LibraryStack cannot be null."}"

    IF I handle the exception in app.xamal.c in Application_DispatcherUnhandledException, my application did not crashed but the scatterview item beeing droped gets removed.

    Any idea how to solve this ?

    In fact, I do not want any other scatterview item beeing drop in LIbrary container if there was not previously in the stack.

    I have check some msdn info about this but did not help

    Thanks

    Serge


    Your knowledge is enhanced by that of others.
    Thursday, April 28, 2011 10:51 PM

Answers

  • sorry this was an old post that i solve already for a long time

    I had to register to the On  Query target of the control and check if the type of data is allowed to be dropped


    Your knowledge is enhanced by that of others.


    Wednesday, May 8, 2013 8:47 AM

All replies

  • Hello Serge,

    Can you please high light the root cause and how to over come this issue.

    Tuesday, May 7, 2013 11:21 AM
  • sorry this was an old post that i solve already for a long time

    I had to register to the On  Query target of the control and check if the type of data is allowed to be dropped


    Your knowledge is enhanced by that of others.


    Wednesday, May 8, 2013 8:47 AM