c# - Binding a collection in silverlight -


For example, I have a collection of integers 1 - 10. I want to dynamically display 4 (5, 6, 7) How can I archive the collection of silver to get the following collection in the DataGrid column?

  C1 C 2 C3C4R1 1 2 3 4R2 5 6 7 8R3 9 10  

Fortunately though, Silverlight (and Silverlight Toolkit) provide you with the tools for which you need to complete something that is designed to create a custom view of lists of items, especially the item controls. has gone. Since "WrapPanel" is not included in the default Silverlight Toolkit, you have to catch the excellent Silverlight Toolkit, which has one.

You can add items control and rappanel to get the wrapping set again.

  & lt; Items Controlled Items Source = "{Binding Number List}" & gt; & Lt; ItemsControl.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; Control Toolkit: RapPanel / & gt; & Lt; / ItemsPanelTemplate & gt; & Lt; /ItemsControl.ItemsPanel> & Lt; ItemsControl.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text block text = "{binding}" /> & Lt; / DataTemplate & gt; & Lt; /ItemsControl.ItemTemplate> & Lt; / ItemsControl>  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -