This is a migrated thread and some comments may be shown as answers.

how to show array of record in which control!

1 Answer 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
noman nadeem
Top achievements
Rank 1
noman nadeem asked on 27 Aug 2009, 07:41 AM
hi!
i want to show bunch of record, in which control i can show the multiple record except grid .
i used textblock but only my last record is shown .
there is 3 records but show only last record becouse i use only one textblock in xaml , i want to use only one control that can show multiple items is there any possibility except grid can we use story board or canvas if yes then how please reply me with code
thanks a lot , i used below code



 foreach (var t in profiles3)
                    {
                        
                        headingname3.Text = t.headingname3;
                    }



  <TextBlock  x:Name="headingname" Text="{Binding headingname}"  FontSize="18" Foreground="Black" TextAlignment="Center"  ></TextBlock>
               
               in which control is shown all data my all record , record is dynamic sometime 3 , sometime 4 or anything .thanks in advance please reply me .

Regards,
noman







1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 28 Aug 2009, 12:36 PM
Hello noman nadeem,

When you want to show a list of items usually you should use ItemsControl. This is the default control that can show collection of items.
I've attached a simple project demonstrating how to do this.

You can read more about ItemsControl from here:
http://msdn.microsoft.com/en-us/library/system.windows.controls.itemscontrol(VS.95).aspx

All the best,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
noman nadeem
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or