Click here to Skip to main content
15,898,373 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF Pin
V.8-Feb-10 21:25
professionalV.8-Feb-10 21:25 
QuestionProblem w/ ClickOnce deployment and EventLogs Pin
vsaratkar8-Feb-10 9:46
vsaratkar8-Feb-10 9:46 
QuestionDragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 3:59
RugbyLeague8-Feb-10 3:59 
AnswerRe: Dragging outlook attached documents into a WPF app Pin
Pete O'Hanlon8-Feb-10 4:24
mvePete O'Hanlon8-Feb-10 4:24 
GeneralRe: Dragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 5:34
RugbyLeague8-Feb-10 5:34 
QuestionMVVM standardization [modified] Pin
Michael Sync7-Feb-10 5:46
Michael Sync7-Feb-10 5:46 
AnswerRe: MVVM standardization Pin
Wes Aday8-Feb-10 12:35
professionalWes Aday8-Feb-10 12:35 
QuestionDataTemplate with List binding Pin
pbalaga6-Feb-10 9:20
pbalaga6-Feb-10 9:20 
Hi, I managed to bring to work simple data template in a ListView control:
<DataTemplate>
    <TextBox Text="{Binding Path=boo}" />
</DataTemplate>

Class of the items added to the ListView contains property 'boo' of type string.
But how to do similar binding for a custom complex type. Let's say instead of string boo,
I have List<int> integers;. What I'm trying to achieve is to make the textbox display
the numbers in the list separated with commas (e.g. 3,5,15,2).
In other words, is it possible to do something like
<TextBox Text="{Binding Path=integers}" />
by providing how the target should be formatted?
The main issue is that it should be a two-way binding (with ability to convert "1,5,4" back to List<int>).

What direction to go? I assume I could implement a string property, i.e. 'NumbersString' returning
joined contents of the list in form of a single string. Or maybe it has something to do with converters?

I only hope my explanation is clear enough.

Thanks in advance,
Paul
AnswerRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 9:58
mvePete O'Hanlon6-Feb-10 9:58 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:35
pbalaga6-Feb-10 21:35 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 22:01
mvePete O'Hanlon6-Feb-10 22:01 
AnswerRe: DataTemplate with List binding Pin
Abhinav S6-Feb-10 10:06
Abhinav S6-Feb-10 10:06 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:37
pbalaga6-Feb-10 21:37 
GeneralRe: DataTemplate with List binding [modified] Pin
Abhinav S6-Feb-10 21:45
Abhinav S6-Feb-10 21:45 
GeneralRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 23:46
mvePete O'Hanlon6-Feb-10 23:46 
QuestionQuick Question About Application Launch Pin
BlitzPackage6-Feb-10 2:48
BlitzPackage6-Feb-10 2:48 
QuestionHow to get Event for the Windows.shapes.path Pin
Joe Rozario5-Feb-10 17:14
Joe Rozario5-Feb-10 17:14 
QuestionReporting with silverlight Pin
jonatan_5565-Feb-10 3:43
jonatan_5565-Feb-10 3:43 
AnswerRe: Reporting with silverlight Pin
Pete O'Hanlon5-Feb-10 11:11
mvePete O'Hanlon5-Feb-10 11:11 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 1:46
jonatan_55611-Feb-10 1:46 
AnswerMessage Removed Pin
8-Feb-10 23:10
Perpetuum Software8-Feb-10 23:10 
GeneralRe: Reporting with silverlight Pin
jonatan_55611-Feb-10 1:50
jonatan_55611-Feb-10 1:50 
QuestionHow to show tooltip over a TreeViewItem if it is not fully Visible? Pin
Venkatesh Mookkan4-Feb-10 16:32
Venkatesh Mookkan4-Feb-10 16:32 
QuestionOverride OnRender - (class inherits frameworkelement) Pin
DTh19784-Feb-10 13:21
DTh19784-Feb-10 13:21 
AnswerRe: Override OnRender - (class inherits frameworkelement) Pin
Super Lloyd4-Feb-10 16:52
Super Lloyd4-Feb-10 16:52 

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.