none
Error: Invalid Xaml when i am adding my custom panel to ListBox Panel template

    Question

  • I create a custom panel i want the list box to have the item arranged acording to the panel but for some reason i am geting Invalid Xaml error

    Thanks in advance.

    Monday, March 21, 2011 9:43 AM

All replies

  • Does your panel derives from Panel class? It this your xaml when adding your Panel?

                         <ListBox>
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <CustomPanel />
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                        </ListBox>

     

    Thanks,

    Radhey

    Tuesday, March 22, 2011 2:02 AM
  • Hi,

    i am geting Invalid Xaml error

    Need more information.

    Could you provide a demo project so that we can investigate the issue?

    Thanks.

     

    Regards

    Thursday, March 24, 2011 8:29 AM
  • Hi,

    How's your issue going on?

     

    Regards

    Monday, March 28, 2011 9:27 AM