locked
global::System.Diagnostics.Debugger.Break() when WrapGrid Orientation="Horizontal" into listbox?

    Question

  • <ListBox.ItemsPanel>
                                                        <ItemsPanelTemplate>
                                                            <WrapGrid Orientation="Horizontal" ItemWidth="200"
     ItemHeight="40"></WrapGrid>
                                                        </ItemsPanelTemplate>
                 </ListBox.ItemsPanel>

    as title I'm getting a error when debug.How to fix? And Limit horizontal of items.


    Friday, April 3, 2015 6:55 AM

Answers

  • This is what I see in the designer I when use your code:


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 3, 2015 1:36 PM
    Moderator
  • You can't.  It's not allowed.  That's why the exception shows.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 3, 2015 2:54 PM
    Moderator

All replies

  • This is what I see in the designer I when use your code:


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 3, 2015 1:36 PM
    Moderator
  • That right. HOw to fix it?
    Friday, April 3, 2015 2:08 PM
  • You can't.  It's not allowed.  That's why the exception shows.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 3, 2015 2:54 PM
    Moderator
  • I figured out to solve it.Thanks
    Friday, April 3, 2015 11:12 PM