Click here to Skip to main content
15,892,797 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Silverlight development without Expression Blend Pin
Paul Conrad13-Nov-08 12:14
professionalPaul Conrad13-Nov-08 12:14 
GeneralRe: Silverlight development without Expression Blend Pin
Kevin McFarlane13-Nov-08 23:01
Kevin McFarlane13-Nov-08 23:01 
QuestionBind ObservableCollection to a Grid Pin
ezazazel12-Nov-08 11:02
ezazazel12-Nov-08 11:02 
AnswerRe: Bind ObservableCollection to a Grid Pin
Mark Salsbery12-Nov-08 12:22
Mark Salsbery12-Nov-08 12:22 
GeneralRe: Bind ObservableCollection to a Grid Pin
ezazazel12-Nov-08 20:02
ezazazel12-Nov-08 20:02 
GeneralRe: Bind ObservableCollection to a Grid Pin
Mark Salsbery12-Nov-08 20:37
Mark Salsbery12-Nov-08 20:37 
GeneralRe: Bind ObservableCollection to a Grid Pin
ezazazel13-Nov-08 2:13
ezazazel13-Nov-08 2:13 
GeneralRe: Bind ObservableCollection to a Grid Pin
Gideon Engelberth13-Nov-08 8:16
Gideon Engelberth13-Nov-08 8:16 
If you have a fixed number of rows and columns in the grid, you may be able to use a generic ItemsControl with some clever styles and templates. The ItemsControl.ItemsPanel would have the grid definition, and the ItemsTemplate would have a DataTemplate that binds the Grid.Row/Column properties to the associated properties on your object. The colorings could be set using Triggers (maybe DataTrigger instead of regular Trigger) in the template based on the value of an enumeration property.

If you have a dynamic number of rows and columns, it could be done, but is much more difficult because you have to get the actual items panel for your ItemsControl instance. I am fairly certain that this is doable, but it takes a fair bit of code to pull off.
GeneralRe: Bind ObservableCollection to a Grid Pin
ezazazel13-Nov-08 9:55
ezazazel13-Nov-08 9:55 
GeneralRe: Bind ObservableCollection to a Grid Pin
Gideon Engelberth13-Nov-08 12:47
Gideon Engelberth13-Nov-08 12:47 
GeneralRe: Bind ObservableCollection to a Grid [modified] Pin
Mark Salsbery14-Nov-08 12:40
Mark Salsbery14-Nov-08 12:40 
GeneralRe: Bind ObservableCollection to a Grid Pin
ezazazel15-Nov-08 1:54
ezazazel15-Nov-08 1:54 
GeneralRe: Bind ObservableCollection to a Grid Pin
Mark Salsbery15-Nov-08 6:46
Mark Salsbery15-Nov-08 6:46 
GeneralRe: Bind ObservableCollection to a Grid Pin
Mark Salsbery15-Nov-08 7:15
Mark Salsbery15-Nov-08 7:15 
QuestionComboBox's SelectedValue set to null when changing templates PinPopular
James J. Foster12-Nov-08 4:56
James J. Foster12-Nov-08 4:56 
QuestionAdobe Illustrator exporter to XAML Pin
DaveX8611-Nov-08 16:50
DaveX8611-Nov-08 16:50 
Questionhow can i read files from my silverlight 2 web folder Pin
ahmedhassan9611-Nov-08 12:41
ahmedhassan9611-Nov-08 12:41 
AnswerRe: how can i read files from my silverlight 2 web folder Pin
lneir12-Nov-08 18:42
lneir12-Nov-08 18:42 
QuestionWPF-Callable Folder Browser Source Code [modified] Pin
Mark Salsbery11-Nov-08 11:40
Mark Salsbery11-Nov-08 11:40 
AnswerRe: WPF-Callable Folder Browser Source Code Pin
Pete O'Hanlon11-Nov-08 11:44
mvePete O'Hanlon11-Nov-08 11:44 
GeneralRe: WPF-Callable Folder Browser Source Code Pin
Mark Salsbery11-Nov-08 11:55
Mark Salsbery11-Nov-08 11:55 
AnswerRe: WPF-Callable Folder Browser Source Code Pin
Jammer12-Nov-08 0:52
Jammer12-Nov-08 0:52 
GeneralRe: WPF-Callable Folder Browser Source Code Pin
Mark Salsbery12-Nov-08 8:41
Mark Salsbery12-Nov-08 8:41 
QuestionAdding events to objects in application.resources Pin
Rferj11-Nov-08 10:22
Rferj11-Nov-08 10:22 
AnswerRe: Adding events to objects in application.resources Pin
ColinM12311-Nov-08 11:19
ColinM12311-Nov-08 11:19 

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.