« first day (893 days earlier)      last day (3256 days later) » 

12:57 AM
0
Q: DeferRefresh is not allowed during an AddNew or EditItem transaction

juergen dI have a Windows splitted into multiple Grids. There are 2 different DataGrids in that Window. And if I click from one specific column in the first DataGrid into a specific column of the other DataGrid, then I get the error DeferRefresh is not allowed during an AddNew or EditItem transaction ...

 
 
7 hours later…
8:01 AM
Figured it all out last night, like a boss
 
 
2 hours later…
10:18 AM
@NETscape
48
Q: With all of these services, how can I not be anemic?

SonOfPirateWhere do we draw the line between delegation and encapsulation of business logic? It seems to me that the more we delegate, the more anemic we become. However, delegation also promotes reuse and the DRY principal. So what is appropriate to delegate and what should remain in our domain models? Ta...

Authorization is not generally part of your domain model, unless it is actually part of the domain, e.g. if you're writing security software. The mechanics of who is allowed to perform what in an application are normally handled at the "edge" of the business/domain tier, the public parts that the UI and Integration pieces are actually allowed to talk to - the Controller in MVC, the Services or the messaging system itself in an SOA... you get the picture.
 
 
3 hours later…
1:26 PM
@BradleyDotNET Around?
 
2:02 PM
@franssu good link, but idk what that is telling me.
 
Morning
any of you guys use SVN for your source control?
 
kiiinda
 
so... I think im gunna post a question here on SO, but thought I would ask you guys first, cuz you help me out so much
but this morning, I branched my code
well tagged it for the released version
and the revision exists in the SVN logs
but the tag folder doesnt
no amount of restarting the service / updating the folder via SVN will download it
and if you try to make the tag again, SVN tells you the folder already exists
starting to freak me out a bit
 
can you revert?
 
nope, the revert dialog has no selectable revisions
 
2:06 PM
that's why i said kiiinda... haha. i never tagged or branched :p
 
o.o
oh man
our server has been flakey
and we got another one but it wont get here for 2 weeks
we had to swap out the PCIE slot the raid controller was in last week
I seriously hope the raid controller isn't failing or something of that nature
 
idk if that is what would cause your SVN issues. heh. find anything on google?
did you branch, or just tag, assuming there is a difference
 
there isnt
its tag/branch in the menu option
you just pick a directory, select create intermediate directories, and click ok
and the obligatory comment of course
well a third coworker of mine succeeded in creating the tag
doing the exact same thing me and chris did
its freaking 4 revisions higher than the head revision tagged (because of the failed tags presumably)
but its there now
:/
you know...
first thing I did this morning was drop my toothbrush in the toilet filled with piss
should have known it was going to be a trying day
BRING IT ON UNIVERSE!
what else you got
!?
 
Tacos. The Universe also has tacos.
 
it is in fact taco tuesday
so yes... there will be tacos
 
2:21 PM
See? It's all going to work out.
 
thanks Billdr
that makes me feel better
 
Any time.
 
lol
 
2:31 PM
@franssu what are the domain objects of visual studio?
 
2:49 PM
franssu, my frieendd :(
 
you writing a VS plugin or something netscape?
 
no, i'm trying to figure out what my domain is i guess lol
my application is similar to visual studio, and it's weird
 
can you say who you work for / the product?
wouldn't mind checkin it out
 
it's not really useful unless you have the hardware that goes with it.
 
hi @NETscape
as I understood it, when we talk about Authorization, we generally consider Users as users of the application
the management of user considered this way does not belong to the domain, but in a separate layer
 
3:02 PM
right, i agree with that
i wasn't putting it in my domain model.
 
it's confusing because there could also be Users in the domain, i.e. possesors of bank accounts
 
yeah, i feel like i have multiple levels/layers
or multiple domains... and that's what is confusing me
 
application domain | business domain
 
so .csproj files... are they parsed into business domain objects or application domain objects?
 
business domain
 
3:06 PM
I would agree with that, in the context of speaking about MSBuild.
 
projects, source files, compiler, precompiler, etc = business domain
 
ah ok
whats the validation part of Visual Studio then? thats the service layer/application domain that we just talked about, right?
@franssu what i meant as in different domain, is that all their products are integrated as different products/projects/etc. so there is a MSBuild domain, there is a VisualStudio domain, and they are all separated nicely. I assume that's because they were all developed "one at a time" with clear requirements and such. I don't have that "luxury"
 
3:29 PM
An ideal domain has (generally, VS is unfortunately an exception) nothing to do application, products or projects. It exists in the world of ideas (think like Platon) . It exists before it's modeled
and will continue to exist after we're all dead
 
Hey peeps. Anybody used DynamicObject with GetDynamicMemberNames?
 
so I think VS and MSBuild belong to the same domain, or at least have a common part of a bigger domain
why @Asheh ?
 
yeah, common part of bigger domain
 
frannsu im getting weird behaviour that I dont understand
I return a list from DynamicMemberNames but then TryGetMember seems to be trying to get different members than I returned
 
in what way are they different?
 
3:43 PM
public override bool TryGetMember(GetMemberBinder binder, out object result)
{
result = this[binder.Name];

return true;
}
im not sure what binder.Name is (im attempting to integrate some example code)
but i assumed that would be what GetDynamicMemberName

eg I return:

atomics.myInt32
and binder.Name is "atomics"
 
it should allow you to do classInstanceName.atomics at that point
 
So confused at what this is attempting to do
 
what are you trying to do?
integrating the example code, why?
 
How difficult do you think it would be to have say, a boarder with a binding to the VM for its background brush, which based on some calculated value, paints the background in red / greed proportionally to the calculated value (think like gas gauge)?
 
@NETscape im integrating the DataGrid from Telerik with dynamic columns
ohhhhhhhhhhhhhhhhhh
@NETscape ill bet its because I cant have "." in property names!
Ofcourse, jeez how do I get around this one...
I could hash the url. Blam genius
 
4:15 PM
Holy hell you guys, the Silk Road/DEA/Mt Gox story is amazing.
 
huh bill
@Asheh dynamic columns? wutttt
are you talking autogeneratecolumns?
 
I need to write a summary blog post or something. It's too long to relate here.
 
NETscape no unfortunately that wont work :)
Beacuse that is based on Properties that exist in the Model. My model is more complex than that
My model is dynamic, thus it can have any field name which can contain any number of fields
 
Morning all
 
Ohhai
 
4:32 PM
morn
@Asheh interesting... your type transforms and changes numbers of properties during runtime?
or, you have multiple types of objects in your collection
 
I have multiple types of objects :)
I got it working by hashing the property unfortunately now I have no idea how to set the header for the property
 
5:00 PM
@Billdr is that the story about the FBI guys stealin bitcoins?
haven't really been ontop of the news lately
 
@Asheh header for what property? column? You'd need to hook into an event
a datagrid event
 
5:36 PM
Anyone wiring up their own minimize/max/close buttons?
Seems like there's more than one way to do it... I see people using an action in their VM with a relaycommand calling the action (action is set by the view in the view's ctor).
I see people setting command to {x:Static MinimizeWindowCommand}
Curious whether one way has more advantages. We are using 4.5, so I can leverage MinimizeWindowCommand...
 
Sorry, haven't done that
 
@BradleyDotNET no problem... seems relatively easy. Window dragging, on the other hand....
 
@MarkW Guys. Stealing Bitcoins, entrapment for conspiracy to commit murder, embezzlement, racketeering, and using the federal government to irreparably damage the largest bitcoin exchange.
 
6:11 PM
I can't believe it, Servy actually said something I can agree with...
 
6:31 PM
Who the what now?
 
that did kinda come out of left field didn't it Billdr
 
Which part? The ultra-currupt cops or whatever the hell Servy is.
 
Servy
but evidently, hes not agreeable
TO HELL WITH SERVY!
 
BOO SERVY! @BradleyDotNET let's burn the MFer!
 
6:58 PM
Never run into Servy yet?
He's.... very opinionated
 
Who is he?
 
High rep C# user
Whose quality standards are a bit higher than most
and rips into anyone who disagrees
 
Did Kendall change his name?
 
lol, no
Though mention Servy in C# and you can see what they feel about him
 
@BradleyDotNET Does he frequent the chat room?
@JohanLarsson Can you take a look at my question re Min/Max/Close reimplementation?
 
7:08 PM
sure
where?
 
thanks
go up about 20 lines.
 
I idle in there in case anyone needs an owner for some reason, but man I really don't want to be involved with that room. It's such a time sink.
 
Hello
 
@LynnCrumbling never played with it, are there no built in commands for it?
 
7:11 PM
@JohanLarsson There appear to be these offered in 4.5: msdn.microsoft.com/en-us/library/…
 
@LynnCrumbling there is native / interop somewhere for this I've seen
 
@LynnCrumbling no
He's not usually active in chat from what I can tell
 
@BradleyDotNET Ahh. I think I recall seeing him on meta.
meta-se.
 
Yeah, very active on meta
 
7:27 PM
Is it possible to mark an enum that lives in a referenced assemby as internal, and still have it be referenced in XAML?
The assembly is a friend assembly, yet I'm still unable to access the enum unless it's marked public.
It complains: "Only public or internal classes can be used within markup. 'MyEnum' type is not public or internal."
Yet -- it is marked internal.
@BradleyDotNET @JohanLarsson curious if you've run into that. ^
 
0
Q: Datepicker validation not shown

Bv202I have a DatePicker on my form. When an invalid date is typed in by the user, the control gets a red border. However, I'd also like to display the error itself next to it. <Style TargetType="{x:Type DatePicker}"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value>

 
@LynnCrumbling never tried it sry
 
@JohanLarsson ok; thanks
 
blogs.msdn.com/b/visualstudio/archive/2015/03/31/… VS Ultimate and Premium will merge into one product for VS2015. Hopefully that means the price will come down. I really want access to that object modeling tool.
 
@LynnCrumbling Me neither :(
 
7:35 PM
ponders pinging Reed
@BradleyDotNET Either way, thanks for getting back to me.
 
No problem. I would say that if you intend your type to be externally visible, you should probably make it public. There's a reason they got rid of "friend" classes
 
@LynnCrumbling Why not make it public?
 
@ReedCopsey My coworker is having a fit that he doesn't want any of it to be public because it doesn't need to be.
 
@LynnCrumbling If 1) you want it in a separate assembly, and 2) you want to use it from XAML, then yes, it does need to be :p
 
@ReedCopsey I'm starting to wonder if these things aren't really correctly marked friend assembly.
 
7:49 PM
tell your friend - XAML's assemblies are not friends with yours :p
though, technically, there is no such thing as "friend assemblies"
 
oh.. it's the XAML assemblies that are the actual issue?
 
XAML just doens't support that
it could have, but it's not a supported scenario
 
Then tell your coworker that friends don't let friends use friend classes or assemblies :)
 
So - in order to use enum members in XAML, I NEED those enums to be public? internal is not an option.
 
or in the same assembly where you're using them, IIRC
 
7:52 PM
(despite their error message indicating internal or public...)
 
8:16 PM
@ReedCopsey have you implemented a "placeholder/watermark" textbox? what approach did you follow?
attached prop?
 
I started to using an attached prop + adorner
worked okay, but ended up just using one from a third party control lib instead ;)
 
8:52 PM
0
Q: Frame is Null when SelectionChanged (ListBox)?

Elite GamerI am using a ListBox to act as a "Navigation" Bar. When the user selects an item (eg: Options), ill change the source of the frame. However, I need to have the first item selected in order for it to look like that page is active. I added this to my ListBoxItem Styles: <Setter Property="SelectedI...

Anyone know why Im getting a NullException?
 
9:07 PM
pagenavigation is being initialized before pagecontainer?
@EliteGamer create a loaded event on PageContainer, try setting it's Source in that event
or even, do a null check
if(this.PageContainer != null)
{
    //set source
}
@EliteGamer i found that during initialization, the selection changed event can get called a couple times before the ui is actually loaded
 
10:04 PM
i think i found my problem trying to separate these domain"s"
these COM objects actually depend on the "application layer"/"application access level"
 
10:18 PM
@NETscape I should have known to do that. Having a fresh pair of eyes always helps. Could you please submit your answer so i can reward you with the bounty i have open?
 

« first day (893 days earlier)      last day (3256 days later) »