Click here to Skip to main content
15,888,968 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: subclassing a treeviewitem Pin
AspDotNetDev7-Jan-10 15:36
protectorAspDotNetDev7-Jan-10 15:36 
GeneralRe: subclassing a treeviewitem Pin
hb521342148-Jan-10 7:15
hb521342148-Jan-10 7:15 
GeneralRe: subclassing a treeviewitem Pin
hb521342148-Jan-10 7:46
hb521342148-Jan-10 7:46 
QuestionZoomIn and zoomout Pin
Member 47046755-Jan-10 18:36
Member 47046755-Jan-10 18:36 
AnswerRe: ZoomIn and zoomout Pin
Mark Salsbery6-Jan-10 8:49
Mark Salsbery6-Jan-10 8:49 
AnswerRe: ZoomIn and zoomout Pin
April Fans6-Jan-10 19:14
April Fans6-Jan-10 19:14 
QuestionHide controlbox or customize controlbox of WPF window [modified] Pin
Member 26504535-Jan-10 18:34
Member 26504535-Jan-10 18:34 
QuestionDatabinding and Value Converter questions Pin
Michael Eber4-Jan-10 10:39
Michael Eber4-Jan-10 10:39 
OKAY -- I've done a ton of searching and I've not found anything that can directly help me with what I need to do.
I'm building a business application with Silverlight 3.0 and I'm down to my VERY LAST issue!

I have 3 ComboBox controls (building, datacenter, locationType) where datacenter has a dependancy on building.
I have a listbox with customers (works great).
When a customer is selected, a list of existing locations is populated. (works great)

For these (and other) populated controls, I put out a message "loading...blah blah blah" then when the data comes back I display "data loaded...blah blah blah" which works great.

I've got my datacenter dependancy working great as well. Pick a building and the correct set of datacenters is loaded.

My editor fields are wrapped in a grid and a datasource for my location object was created. I populate it in my code by setting editorContainer.DataContext = selectedCustomerLocation; editorContainer is the grid that wraps all of my editor controls. Each control that edits the fields of the control is bound to the datacontext of the grid, but Expression does not seem to place the parent object name as a fully-qualified name. (example my xaml says 'BuildingNumber' instead of CustomerLocation.BuildingNumber) I expected the editor controls to self populate with the data once DataContext was set. (doesn't work)

I also want each combobox to display the correct selected item. I know I need to say SelectedText = "{Binding {fieldName} Converter=myValueConverter, ConverterParameter= ....". I also expected that in the Convert logic I perform the linq to lookup the building enumerated object and return the text value for the integer returned in the customer location object.

Not quite sure how to explicitely pass to the converter the value of the building ID (for example) AND the list of building name/values to have it return the correct text. So this is the first question which is the syntax to pass parameters into the converter?

The second question, then, is Expression put the datacontext in a self-contained location within the grid followed by my fields. Do I have to extend the <datacontext> end tag to wrap my editor controls? Or is DataContext all wrong? I think I saw one guy use Data Template???

Any help at all would be great. I found a ton of examples but all of them are either too simplistic (working with internal collections statically created and never dealing with an externally selected object to bind with) or buried within the context of a DataGrid which I'm not using.

modified on Monday, January 4, 2010 4:53 PM

AnswerRe: Databinding and Value Converter questions Pin
Abhinav S4-Jan-10 16:05
Abhinav S4-Jan-10 16:05 
GeneralRe: Databinding and Value Converter questions Pin
Michael Eber5-Jan-10 6:27
Michael Eber5-Jan-10 6:27 
GeneralRe: Databinding and Value Converter questions Pin
Abhinav S5-Jan-10 17:00
Abhinav S5-Jan-10 17:00 
QuestionGridSplitter Behaviour Pin
rj_hogan4-Jan-10 5:35
rj_hogan4-Jan-10 5:35 
AnswerRe: GridSplitter Behaviour Pin
Pete O'Hanlon4-Jan-10 9:25
mvePete O'Hanlon4-Jan-10 9:25 
GeneralRe: GridSplitter Behaviour Pin
rj_hogan5-Jan-10 0:46
rj_hogan5-Jan-10 0:46 
GeneralRe: GridSplitter Behaviour Pin
Pete O'Hanlon5-Jan-10 2:16
mvePete O'Hanlon5-Jan-10 2:16 
QuestionWWF Pin
Ramkumar_S3-Jan-10 14:36
Ramkumar_S3-Jan-10 14:36 
AnswerRe: WWF Pin
ProtoBytes4-Jan-10 3:52
ProtoBytes4-Jan-10 3:52 
QuestionHow to animate To/From an Auto value? Pin
spiritboy3-Jan-10 8:04
spiritboy3-Jan-10 8:04 
AnswerRe: How to animate To/From an Auto value? Pin
Abhinav S3-Jan-10 16:39
Abhinav S3-Jan-10 16:39 
Questioncreating GridViewColumn.CellTemplate via C# ? Pin
Mohammad Dayyan2-Jan-10 23:43
Mohammad Dayyan2-Jan-10 23:43 
QuestionDynamic data binding in WPF application Pin
anishshrestha2-Jan-10 5:57
anishshrestha2-Jan-10 5:57 
AnswerRe: Dynamic data binding in WPF application Pin
Pete O'Hanlon2-Jan-10 7:06
mvePete O'Hanlon2-Jan-10 7:06 
AnswerRe: Dynamic data binding in WPF application Pin
Mark Salsbery2-Jan-10 7:13
Mark Salsbery2-Jan-10 7:13 
GeneralRe: Dynamic data binding in WPF application Pin
anishshrestha2-Jan-10 8:36
anishshrestha2-Jan-10 8:36 
QuestionResolution setting in WPF Pin
Anu_Bala31-Dec-09 18:33
Anu_Bala31-Dec-09 18:33 

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.