« first day (546 days earlier)      last day (3603 days later) » 

5:46 AM
@ReedCopsey ok so that means one Viewmodel with the whole graph?
DataContext for mainwindow still has to be set somewhere no?
 
5:58 AM
@NETscape Example
 
 
8 hours later…
1:42 PM
chirp
 
did you run the sample?
don't remember what state it is in
 
not yet
 
2:00 PM
lol read this:
0
Q: wpf UserControl child IsEnabled Binding

user2120193On my userControl I have some comboboxes, buttons etc. Everything works fine but I can't bind to combobox isEnabled. I read somethig about DependencyProperty but can someone give me example? <UserControl...> <ComboBox Name="cmb1" SelectionChanged="cmbdane_changed" Grid.Column="2" Width="160" G...

 
 
4 hours later…
5:40 PM
hey @ReedCopsey. Question for ya. I have a treeview, and i'm trying to put a context menu on the treeviewitems that have a "remove" command (I got this far). But what I'm trying to do is call the "treeviewsdatacontext.DeleteCommand" and send the "treeviewitem" as a commandparameter... is this possible?
 
6:38 PM
does the treeview item have a custom datacontext?
 
6:53 PM
Hi everyone!
 
yes @ReedCopsey. They all share a base class though; however I don't want to implement the Command in the base class view model because i'm not passing the "Project" VM to each tree view item.
 
7:29 PM
routed events work well for this
but that requires some code behind or behaviors
 
Hey hey everyone
I just received my new keyboard, damn this thing is weird
 
7:50 PM
good call reed. how do you handle it when you have multiple menu items in your context menu... switch statement?
 
the menu item should be the original sender - you can tag stuff on there, if you need to do that
 
8:07 PM
for the icon thing we were talking about reed, it should be a clr class library right, not a mfc dll?
 
8:19 PM
doesn't need to be clr
 
win32 project?
 
I'd do a Win32 empty project
and set it to be a DLL
and then add your icons
really needs almost nothing in it
you could do a console app (.exe) too, if you prefered, that just did nothing in main
 
should I add the .rc file too?
i added existing items (icons) to Resource Files and built
 
9:00 PM
yes
you'd need the rc in there
once you do that, resedit or similar programs should be able to open teh dll and let you browse the resources
(that'll tell you if it's correct)
 
cool. thanks much
 

« first day (546 days earlier)      last day (3603 days later) »