« first day (791 days earlier)      last day (3358 days later) » 

00:02
never mind, i figured it out while I was thinking about it :)
Always the best kind of questions :)
basically, it was "who should call the XmlConfigReader.LoadDefaultOptions"
turns out I actually named my class something good this time around... haha
probably the ProfileManagerVM
00:23
kjln
whoops wrong window
 
8 hours later…
07:59
morning
 
3 hours later…
11:04
morning all
do you know how to get the index of a TreeViewItem selected into a TreeView?
I mean, is there a property that gives me the index of a certain item into a tree?
for example, if I have a tree as follows
a->b,c,d
b has index 0, c has 1, d has 2...
 
2 hours later…
12:45
if you have a reference to a nodes parent you could just do int index = Parent.Children.IndexOf(this);
 
1 hour later…
13:55
yooooo
 
1 hour later…
15:24
ooooo kkkk
15:44
FilteredView & DeferredView are potentially useful.
whats deferredview doin
16:04
It batches collectionchanges that happens close in time
Instead of 100 adds it gives one reset
nicee
16:24
@JohanLarsson whats this.OnPropertyChanged("Item[]");
inside an interface?
17:23
Quiet here last night, wasn't it?
even today.
0
A: Should incorrect information be allowed? what is the purpose?

BradleyDotNETTo answer the titular question: Should incorrect information be allowed? No! ..and yes. Obviously we don't want incorrect information being perpetuated through the site. However, no one person, especially a (diamond) moderator or random reviewer, can be guaranteed to have enough domain knowledge...

This guy really doesn't seem to like being disagreed with.
17:39
Well Sean is sitting next to me
so thats both Sean & I out of WPF channel.. (the major spammers)
17:51
poor guy
did you give him a computer yet?
18:48
ahhhhh
now I sees
i wonder wondering why my code for treeview was getting so ugly...
realized that having multiple roots is dumb, which wasn't my choice
Sounds more like a forest :)
thats funny in many ways!
19:53
Our Ninject setup is getting hairy
We have three, one for tests, one for simulation, and one real.
Dunno how to refactor it other than split it up in methods with somewhat descriptive names. BindSettings etc.
Never used modules
20:46
modules are very useful
I do everythign via ninject modules
ah, good to know. Worth learning then.
they're pretty simple, really
but if you have your 3 setups split by assemblies
it takes all of the hard work out of it, and pretty much "just works"
you'd only need one statemetn saying which assemblies to use when searching for modules...
One module per assembly wiring up the stuff in the assembly?
yep
though a module can wire up stuff in other assemblies if needed
but I typically have each assembly wire up their own contracts
Is there any trick to "force" the Grid.Row property to be visible in Snoop?
But it isn't working and is being a pain to debug
21:03
never tried
the Grid.Row property doesn't necessarily exist
since it's an attached property, it won't exist on any element until you explicitly add it
So obviously my code isn't doing what I think :)
if you have 2 network adapters, or like a LAN connection and wireless connection, and lets say they are connected to two different networks, and you try to connect to a tcp socket on one of the networks, does it try to connect using both adapters, or one at a time, or?
OS maintains routing tables
so those get used, typically - but ifyou don't have anything custom, it tends to try using one, then the other (IIRC)
Kernel.Bind<IAppearanceSettings, AppearanceSettings>()
      .ToMethod(x => x.Kernel.Get<IClientRepository>().GetAppearanceSettings())
      .InSingletonScope();
Does ^make sense?
21:14
should work
It works but does it look terrible?
Repo manages singleon instance
though I thought i'td be Kernel.Bind<IAppearanceSettings>().ToMethod(...
if repo is already making it a singleton
you don't need the InSingletonScope
true
I usually Bind<Interface, Class>().To<Class>() when I do singleton
if someone have Class in ctor
I sometimes even do Bind<Interface, Class>().ToConstant(Class.Instance)
In case a new guy would come :)
21:37
I have a bunch of services that needs to be created at startup and then just live on their own. Can't think of a nice way/place to do it.
Perhaps App.Startup() is best
22:08
@JohanLarsson You don't need the second part - just do Bind<Interface>().To<Class>()
Can anyone think of a reason why a call to SetBinding would appear to work, but not actually do anything?
you are right, my thinking is that it is extra security when binding InSingletonScope()
Replacing it with a similar call to SetValue works just fine
@JohanLarsson nah - it's not any different - just more typing
If it is just binding an interface I alwas bind like you suggest
22:09
the implementation should be internal anyways - that's a huge part of the point
Doesn't it protect against:
ctor(SomeSingletonClass class)
@ReedCopsey how do you mean?
Changing the binding? Nope
but making the class internal does
at least external to that assembly
class type shouldn't be exposed - work against the interface
Class shouldn't be public - so people shouldn't be able to construct it anyways
but binding like that makes the class teh same singleton also
if someone mistakenly injects the class and not the interface
Bind<Interface>().To<Class>() doesn't make it a singleton - youd' have to add InSingletonScope instead
Yeah and when I do SingletonScope I often bind both the class and the interface for extra safety
Had to track down bugs in the past due to people injecting te class when the interface was bound
resulting in multiton
I'm probably wrong but still think it makes sense :)
22:23
how are they "injecting" the class?
if the only usage of hte class is the binding, they shouldn't even know the class exists
but using the class in a binding still doesn't stop somebody from doing new Class()
We have much logic in one project. Injecting the class can be as simple as forgetting the I in IClass.
Making it internal does not solve the problem in our case.
user2509848
Anyone here with Windows Phone 8.1 U1?
22:41
just extra safety, nothing our design relies on
@JohanLarsson Make the class a nested, private class ;)
that makes it tough to create "by accident"
if you make your module a partial class, you can just wrap the implementations in partial class NinjectModule { class Clas {
23:12
Do you check CanExecute() before doing anything in Execute in your command implementations?
upside is perhaps safety, downside is more setup/noise if testing execute
WPF already checks it
so unless you're calling Execute directly, there's no reason to
(and I wouldn't do that- I'd factor into a method and call the method if I wanted to manually "execute" it)
ok I don't check it either. Just wanted to know the right way :)
Do you use the viewmodel tuck away?
I started but kinda regret it. Makes renaming painful.
23:28
tuck away?
nah - I don't do that
class under interface
I actually often have VM's in a different project that views
keeps coupling down
class under interface seems stupid
23:30
if you only have one impl, just use the class
mocking?
Nesting keeps things tidy ime. Very often View & Vm is 1:1 for us.
23:54
what is the _invocationCount on an event?
the _invocationList has my event handler as one item, and the OnCollectionChangedProperty as another item. When I call -=, both objects are removed

« first day (791 days earlier)      last day (3358 days later) »