Click here to Skip to main content
15,903,012 members
Home / Discussions / WPF
   

WPF

 
QuestionGetting the size of a control Pin
WebMaster13-Sep-10 9:47
WebMaster13-Sep-10 9:47 
QuestionRe: Getting the size of a control Pin
PumbaPumba27-Sep-10 6:44
PumbaPumba27-Sep-10 6:44 
QuestionMVVM and the ViewModelLocator Pin
Mycroft Holmes11-Sep-10 23:36
professionalMycroft Holmes11-Sep-10 23:36 
AnswerRe: MVVM and the ViewModelLocator - Solved Pin
Mycroft Holmes14-Sep-10 16:06
professionalMycroft Holmes14-Sep-10 16:06 
QuestionWPF custom control DepencyProperty Pin
wpfcomputer11-Sep-10 9:12
wpfcomputer11-Sep-10 9:12 
AnswerRe: WPF custom control DepencyProperty Pin
Abhishek Sur11-Sep-10 10:54
professionalAbhishek Sur11-Sep-10 10:54 
GeneralRe: WPF custom control DepencyProperty Pin
wpfcomputer11-Sep-10 11:26
wpfcomputer11-Sep-10 11:26 
GeneralRe: WPF custom control DepencyProperty Pin
Abhishek Sur12-Sep-10 1:50
professionalAbhishek Sur12-Sep-10 1:50 
Well my friend, why don't you use ItemsControl in this regard.

You can go for ListBox.

<ListBox ItemsSource="{Binding}" DataContext="{StaticResource MyItems}">
<ListBox.ItemTemplate>
<DataTemplate> 
<TextBlock Text="{Binding MyProperty}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>


If you are using List of STRING you dont need to specify property name. Use Text="{Binding}" which will eventually call ToString for the string object and get the value of it.
Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
Visit My Website-->


www.abhisheksur.com

GeneralRe: WPF custom control DepencyProperty Pin
wpfcomputer13-Sep-10 12:35
wpfcomputer13-Sep-10 12:35 
GeneralRe: WPF custom control DepencyProperty Pin
Abhishek Sur13-Sep-10 12:54
professionalAbhishek Sur13-Sep-10 12:54 
QuestionHow to implement RTL/LTR button in RichEditBox? Pin
Yariv10-Sep-10 20:16
Yariv10-Sep-10 20:16 
QuestionSynchronization Pin
arkiboys10-Sep-10 18:36
arkiboys10-Sep-10 18:36 
AnswerRe: Synchronization Pin
Abhinav S10-Sep-10 18:44
Abhinav S10-Sep-10 18:44 
QuestionHow to detect the pressed key? Pin
dbrenth10-Sep-10 9:26
dbrenth10-Sep-10 9:26 
AnswerRe: How to detect the pressed key? Pin
Abhinav S10-Sep-10 18:40
Abhinav S10-Sep-10 18:40 
GeneralRe: How to detect the pressed key? Pin
dbrenth13-Sep-10 3:32
dbrenth13-Sep-10 3:32 
AnswerRe: How to detect the pressed key? Pin
Abhinav S13-Sep-10 5:04
Abhinav S13-Sep-10 5:04 
GeneralRe: How to detect the pressed key? Pin
dbrenth13-Sep-10 5:19
dbrenth13-Sep-10 5:19 
Questionsetting visibility of label in wpf Pin
sumit703410-Sep-10 0:42
sumit703410-Sep-10 0:42 
AnswerRe: setting visibility of label in wpf Pin
#realJSOP10-Sep-10 1:33
professional#realJSOP10-Sep-10 1:33 
GeneralRe: setting visibility of label in wpf Pin
sumit703410-Sep-10 1:55
sumit703410-Sep-10 1:55 
GeneralRe: setting visibility of label in wpf Pin
Ian Shlasko10-Sep-10 2:36
Ian Shlasko10-Sep-10 2:36 
GeneralRe: setting visibility of label in wpf Pin
devvvy18-Sep-11 17:27
devvvy18-Sep-11 17:27 
AnswerRe: setting visibility of label in wpf Pin
Kunal Chowdhury «IN»10-Sep-10 16:59
professionalKunal Chowdhury «IN»10-Sep-10 16:59 
QuestionEntery key functionality in WPF textbox Pin
Hema Bairavan9-Sep-10 20:30
Hema Bairavan9-Sep-10 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.