« first day (1084 days earlier)      last day (3065 days later) » 

6:08 AM
Goood Mooorning WPF
 
6:26 AM
Morning
 
6:50 AM
Ha! Take that, obscure XML protocol!
 
 
5 hours later…
11:23 AM
Learning about Unit testing.. new stuff to me...
 
 
2 hours later…
1:41 PM
not much action here today...
 
very quiet....
 
lets change that!
 
I have to go get a haircut in 30 minutes :)
^ random information
 
very good!
btw, Lynn (sorry for asking this...) is that a male or female name? (at least I have a friend who's daughter's name is Linn, but it's here in Sweden)
 
I wish I understood the correct way to use a CollectionView with a DataGrid with regard to changing sort based on column click.
I am commonly mistook for a female.....
 
1:44 PM
ok
 
It's pretty common for it to be used as a girl's name here, but still used as a boy's name occasionally.
I have a coworker -- Shannon -- he's in the same boat.
 
so does it come from the Lyndon or something?
 
Not sure... possibly.
My name isn't "short for something" though... :)
Kim -> Kimberly and the like
Do you ever go by Mark?
 
1:57 PM
Never! :)
I didn't really mean that your name was short for something, at least not now, but it's usual that short name reminisce (if that's the word) from some longer name
for example Mobutu is short for Mobutu Sese Seko Kuku Ngbendu Wa Za Banga (which of course means "The warrior who knows no defeat because of his endurance and inflexible will and is all powerful, leaving fire in his wake as he goes from conquest to conquest") :)
 
@AnjumSKhan - u there ?
 
Markus might come from Marce ("to harvest").
I mean that's a little lame actually...
 
morning
 
Morning
 
@LynnCrumbling do you know any other Lynn's?
I actually have only met one Lynn in my life. It was a female, but I know there are a handful of male Lynns as well. Definitely a unisex name. Same thing with Shannon as you said.
obviously both hard to determine when you're not face to face with the person
 
2:10 PM
NETscape is definetly a male name
 
setup a teamspeak so we can just chat and not have to ask about it haha
@Markus i have no sex, i'm just a browser, mannn.
;)
 
:)
ohh 2.0
 
quick everyone post the images they've been holding back. Mav isn't patrolling us! go @Julien go!
 
where you involved in the development of Netscape? Noo?
That would have been awesome! :)
 
there is a new-ish completely free teamspeak sorta thing called discord
pretty nice
pretty sure the windows app is written in wpf hehe
 
2:25 PM
haha i bet you wrote it!
@Markus awesome to have your product discontinued?! yaaa rightt.. haha ;)
but if i was, i'd probably be well off in life... on the chrome team or something
@789 stop back in sometime...
 
well not just that part, but being part of something that almost everyone knows what it is, and have some sort of relationship to. that's big.
well gotto go for today. hope for more action tomorrow :)
 
cheers. have a good night
 
 
1 hour later…
3:31 PM
@user3798700 hi im online
@user379870 hi i am online
 
 
1 hour later…
4:34 PM
@NETscape I have an Aunt with the same name. I never ran across another guy named Lynn until I went to college, and he lived right next door to me. No doubt that it was a first time to be in a room, have someone call out "Lynn", and have it be ambiguous...
^ first time both him and me.
 
haha that's great!
want to ask a question, but i know @Julien will laugh already
 
do it.. do it!
 
@AnjumSKhan - u there now ?
 
@user3798700 yes
 
basically a datagrid, with row details that has the same datagrid as the parent... i don't want to use another DataGrid though
 
4:39 PM
 
basically I have a JobQueue, and that has a List of Jobs... and i want to expand the JobQueue to show each Job that makes up the JobQueue
and each job has a Status, PercentComplete, etc...
 
sounds pretty reasonable
 
but so does the JobQueue. obviously it would have the same PercentComplete which would be a calculated value of the completed jobs within it
so basically, how should I go about htat
 
JobQueue is obviously a class that has an OC<Job>
and a calculated property for your PercentComplete
 
right. but i think it would be hard to probably align rowdetails up with the parent item
properly*
 
4:44 PM
Probably listens to an event on each job to update said property
Not sure what you mean there
 
I know how the design should go. its displaying it that may be a challenege
my row details would be a list of the Jobs right
 
Like you already showed, an expander makes sense here
 
it'll have the same fields as JobQueue.
 
or is that not an expander?
 
but I don't want to put a datagrid inside a datagrid... i want to keep them all lined up
ahhh an expanded would work, and itemscontrol
 
4:46 PM
I would think a Job would have far more fields than a JobQueue
 
expander
the one i showed you already isn't related to this... that was something else
@BradleyDotNET i mean bindable properties... but in reality it would only be added for sex appeal... so I would only be showing statusbars and percentages complete... also ability to stop jobs, remove them from the list. etc.
expander kinda works
expander really doesn't have concept of columns
 
I would think the primary expander template would have a grid with your JobQueue details
and that the internal thing would be a ListView/GridView
Which doesn't make everything line up of course
but that goes back to me not thinking you would need/want that
 
DATAGRIDS = EVIL
 
@Julien Care to expound? :)
 
it forces you to use datagrid specific formats and controls
all so you can select rows and sort by column
if you dont need either of those things, its harder to use then an itemscontrol
 
4:59 PM
oh...
 
it gives column headers too, cant forget about that i guess
i dont know much about what @NETscape is doing but from i've seen I already would have ditched datagrid. hehe
 
haha
i'm basically wanting to take advantage of rowdetails
and not require the row details to contain another datagrid of the same columns as the grid used for the parent
 
is that supposed to be a requirement?
ive never worked with details but a quick google seems like its seperate and you can do whatever you want
 
well I think it would be ugly to put another datagrid inside the row details when I could just line up the rowdetails with the existing datagrid
i think I'll go with items control,
 
i dont think you are going to get lined up controls in the details
its meant to be its own entity seperate from the columns
 
5:04 PM
i could use datagrid, and basically when a JobQueue is expanded, I'd just add the child jobs to the collection right after the jobqueue item.
when is expanded = false, I'd remove the jobs
 
an items control with an expander on each row does what you want
 
@Julien that's what I was afraid of
 
just seems easier to me
 
yeah, just wanted to think it out so i could end up with a better solution, like i think we've just done here :)
 
you can have an items control with an expander containing an items control
and you can line up the columns if you are careful
 
5:06 PM
right
i'll need to kinda have a "parent columns" grid for the column headers, right
 
yeah items control doesnt do headers at all
if you need them it has to be custom
i lied
ive never used it, but appraently HeaderedItemsControl exists
and you can define a template
 
nice. works for me
make it starrable :p
 
lol i dont know how to do stars
all you
 
im the man
 
5:13 PM
Indeed... your name, up in stars!
 
 
1 hour later…
6:13 PM
GridView is much easier than DataGrid :)
 
looks nicely suited to your needs
but can it do in-line expansion?
 
No, my statement was in general, unfortunately not for NETscapes's case
Somebody might be able to hack it for that
but I don't think it will work out of the box
 
 
1 hour later…
7:28 PM
hi guys, A quick question, I want to ink an image and save the image with the strokes, but in uwp the InkCanvas doesn't have Background property
So I put an image control and the InkCanvas above, but I don't know how to save both one jpg file
 
8:03 PM
So you need to composite the two images...
Can you get the bmp's for both controls?
If so, the question to ask is : how can I composite two bmp's.
Although, you need alpha...
Does this help?
@AlexanderRojas ^
That sounds like exactly what you want.
 
8:18 PM
If I have an event on thread y, but add a method to that event from thread x. When that event on thread y is called, the method from thread x will be called and executed on thread y, correct?
 
yes, there is no "thread" associated with a method
it'll just call a method
 
Awesome, good to know.
 
 
3 hours later…
11:11 PM
Is there anything required to bind to a ConcurrentQueue (non-observable collection)?
Rather, not bind to it, but refresh the ItemsSource of the control that binds to the ConcurrentQueue.
 
11:34 PM
@FatalSleep You pretty much need to refresh the entire property, so the entire collection is recreated
like binding to any other IEnumerable
 
Wrapping it creating an ObservableQueue<T> is perhaps an alternative
 
@ReedCopsey Isn't that slow though? That's means for every element added, I have to dorp the current list, clone the source list and throw it back at the control?
 
yes, very slow
 
@JohanLarsson ObservableQueue would help?
 
you'd need something that updates, though
@FatalSleep there isn't one built in - and it wouldn't be threadsafe anyways
 
11:43 PM
Hmm...
 
are you doing a lot of updates?
 
Yeah. I've got a secondary thread which creates a list of results asynchronously.
That's why I'm using ConcurrentQueue--thread safe.
 
is it constantly updating?
 
Yes.
 
problem is that the visual update is not thread safe
 
11:45 PM
ImmutableCollections?
 
so you could always just do a timer, and build a new collection using CQ's enumerator in snapshots
how big is the collection?
 
The collection size varies. It's a search output.
@JohanLarsson Why ImmutableQueue?
 
why not? feels like a clean solution to your problem
updating the ui can still be slow though
 
I've never heard of Immutable structures, not sure why it'd solve my problem.
(looking it up now though.)
 
11:52 PM
I failed to make a fiddle using the Immutable package
var updated = queue.Enque(...);
they work like ^
modifying returns a new immutable
makes thread safety trivial
 
Ahh.. the enqueue returns a new queue unlike ConcurrentQueue...
 
yeah - they're thread safe
and you can push the new queue to the UI thread in a BeginInvoke
and then still update in the other thread as needed
 
So that's why it'd solve my problem.
Great.
 
just remember that all methods ~mutating returns a new
for some reason R# fails to warn about 'return value of pure method not used' for immutable collections
 
Gotcha, that's perfect. I never do more than an Enqueue() anyways.
 
11:57 PM
it grows infinitely?
 
NO, no.
 

« first day (1084 days earlier)      last day (3065 days later) »