« first day (1404 days earlier)      last day (2745 days later) » 

7:04 AM
I have a user control in wpf
it is hosted in Winform
Now, I need to raise an event in winform control and listen to it in wpf user control. Is that possible?
 
7:18 AM
I have never done any winforms so dunno
Maybe better to ask on SO?
 
7:32 AM
ok np
 
 
5 hours later…
12:17 PM
hey guyz
need a help on wpf
 
Good morning
 
is anyone around?
hi alex
 
Hi @ShofiqulAlam
 
Good evening form here
alex im trying to make a custom keyboard in my wpf app
 
OK
 
12:18 PM
i have lots of tetxbox in my form
but when i click on my keyboard button
the textbox keyboard focus gets lost
what can i do to keep the keyboard focus as it was before in button click?
 
no no
i thin i couldnt describe my problem
 
If you're not doing MVVM and only using code-behind, you can call MyTextBox.Focus(); in the event handler of the button
 
i can set focus manually
thats not a problem
problem is suppose my textbox A is focused
then i press a button of my custom keyboard
then when i go to append the textbox a
i find it not focused
and as its not focused
on button clcik
i dont know which item was last focused
 
You might need this: FocusManager.GetFocusedElement
Also, take a look at this: stackoverflow.com/questions/1242539/…
It's what you're describing
 
12:35 PM
thanks
setting Focusable="False" IsTabStop="False" on button did the trick
 
You're welcome. Did any of the links help?
 
yes
the last one on focus
 
Great :)
 
actually im new on wpf
so getting stuck on small things
can i set a boolean value in my style ?
like this
 
No worries! Keep going with it and it'll get easier
 
12:39 PM
<Setter Property="Focusable">"false"</Setter>
 
I don't think so
 
so whats the best way of setting all the buttons focus false
data binding?
cant i do it from xaml without having to write th value on every element?
 
Hmm. Let me check
Yes you can set Focusable to false:
<Style TargetType="Button">
	<Setter Property="Focusable" Value="False"></Setter>
	<Setter Property="IsTabStop" Value="False"></Setter>
</Style>
You can also set IsTabStop to False for all buttons or just some
If you give the style an x:Key, such as this, then you have control over which buttons don't get focus:
 
oh ok
got it
 
<Style x:Key="NoFocusButton" TargetType="Button">...
 
12:47 PM
thanks
 
You're welcome
 
thanks mate
 
:)
 
1:01 PM
waves
 
waves back from cubicle
 
:)
Man.. have you ever watched any of the "songify this" videos on youtube?
 
No, but watched tons of "Honest Trailers". What's "songify this"?
 
This is my favorite:
Warning: you won't be able to get that melody out of your head after you watch it.
 
@LynnCrumbling That is so cool
 
1:15 PM
This was the original (2015 State of the Union) - youtube.com/watch?v=eq1FIvUHtt0
And of course, Trump goes hard: youtube.com/watch?v=YcGPSnswzjc
 
OK. I'm hooked!
Listening to other songs from them
 
I found out about these guys when I watch "the unbreakable kimmy schmidt"
 
Have you ever watched "Honest Trailers"? They're not singing but are fun nonetheless
 
There's a fake news report when the people are discovered ... they remixed it: youtube.com/watch?v=WYNbp0u8WjA
^ that one is DAMN catchy
 
Yeah, these guys are addicting
 
1:23 PM
I really enjoy their "outtro"
Oh, and the show, "Unbreakable Kimmy Schmidt" actually used a snippet of the song in the opening credits for the show: youtube.com/watch?v=LIdFa1qLgNQ
If you've never seen it.. it's pretty amusing.
@Alex Yep, my favorite honest trailer is frozen :)
 
Amazing what people can do with videos
 
Their "Age of Ultron" was funny too. They actually talked about poor Joss Whedon and how he got burned out
 
"...comes the feature-length music video for .. Let it Go!"
 
Loving it
"18 years since the last good Disney musical"
 
1:32 PM
I LOVE the song list.
 
"The Exposition Song"
"Wickedly Talented Adele Dazeem"
 
really nice Trump video :D
but i had to close YT before i get sucked in and its already 8pm xD
 
I listen to some epic music on YT when I can. Gets you inspired
 
have an epic
 
1:52 PM
interesting track but not one I'd use during work - my head will drop at my desk with that xD
 
2:25 PM
sweet VS15 Preview 4 is out
 
2:36 PM
Wondering what WPF changes/improvements there are
 
nothing new that wasn't already there in Preview 3 i think
@JohanLarsson you may like this one given your link above: soundcloud.com/builtbytitan/built-by-titan-the-boy-the-wolf
 
Yep, XAML Diagnostics and Edit and Continue
Interesting. Added a row to a table on SQL Server. WPF app wouldn't show it
Saw some Windows updates. Installed, rebooted. Now WPF shows the record just fine. Wonder if it needed a "Clean solution"
Wondering if VS/WPF caches data from SQL Server
 
@Maverik listening
Sounds like he has listened to enya and apex twin
 
Cool music, Maverik. Listening now
Very soothing
Any playlists of this kind of music out there? I'd like to get something that goes for a few hours
Thanks, @JohanLarsson :)
 
2:54 PM
everything by aphex is classic stuff
 
Me likey!
There's a sad quality to the music. Makes it more emotional
 
                   Method |        Median |      StdDev | Scaled | Scaled-SD |  Gen 0 | Gen 1 | Gen 2 | Bytes Allocated/Op |
------------------------- |-------------- |------------ |------- |---------- |------- |------ |------ |------------------- |
 SubscribeToEventStandard |    82.4727 ns |   8.1506 ns |   1.00 |      0.00 |  12.54 |     - |     - |              22,87 |
             SimpleLambda | 3,998.5971 ns | 123.8606 ns |  46.53 |      4.26 | 143.00 |     - |     - |             269,94 |
benchmarkdotnet is so nice, @ReedCopsey you may be interested in ^
Not the benchmark but the memory traffic in the results
 
I normally avoid soothing music during work cos I get slowed down - my brain operates at the BPM level of the music is seems
but I do love ambient stuff in general
checking Aphex
 
This is good music, Maverik. Just letting it play in the bg
 
@Alex while I dont have a playlist, soundcloud can generally spin up some good related tracks from your selected track.. may want to explore it :)
 
3:01 PM
Yeah, it's I think doing that now :)
 
I used to use last.fm for this purpose until they merged wtih spotify and now are just crap
 
Yeah, I used to listen to them. Also, Sky.fm
 
yea so far soundcloud is the only thing that has managed to come close to prediction model of last.fm - it was so good.. i used it think it could read my mind
 
I hacked exporting benchmark results so that they get version controlled, can be useful for tracking perf over time.
 
but last.fm also have years off training off my music - had seen my music listening habits shift
 
3:02 PM
Do you guys mind an SSRS question? I'm doing reports here and wondering how to approach something, not technical/C# stuff.
 
i've no experience with it but i dont mind looking at off topic stuff ;)
 
Thanks ;)
Well, here's the scenario
1. User selects a Personnel Tech from a ComboBox
2. We use the ID and fetch all the people for that tech and their details
 
@Alex fire away
 
3. Now need to populate a one-page report for each employee
 
3:05 PM
everyone
 
4. Page break after each page. So one page per employee
 
So you're grouping on employee_id
 
So if a tech has 5 people assigned, the report will have 5 pages
 
And doing a new page at the end of the group
 
Kind of. It's just returning the data for that Personnel Tech
 
3:05 PM
hello everyone :) Just passing by to greet you
 
Yeah actually, I am grouping
in the SQL statement of the stored proc
Hi @FirstStep
 
I'd have expected a group in the report
 
Did you hear back from the job?
 
with a new page in the group footer
 
Nope not yet. @Alex
 
3:07 PM
Hmm. That's been the confusing part about SSRS. Whether to group in SQL or in the report
 
I think tomorrow
 
and the group is around each employee unique id
 
@FirstStep Good luck. If it's meant to be, it will be
 
here is a smooth chill music soundcloud.com/deeperise/… "speaking of music is what i only noticed - can't help with the rest lol"
 
You need to make that your employee primary id your outermost group
 
3:07 PM
0
Q: Play video on the top of current screen

waghekapilI would like to play video on top of the current window. Another video is playing in the background of the current window. I'm using MMVM and Microsoft's Microsoft.Practices.Unity in my WPF project. I have added a Canvas and in code behind using MediaPlayer, VideoDrawing, DrawingBrush to show th...

 
You're interating through each employee.
 
Hadn't thought about that approach
Yeah, each employee gets one page of the report
 
that's your outer recordset.
 
@Alex indeed. I hope I get it though. I liked them and their status
 
and foreach emp_id (print emp_details, then new page)
in reporting, anytime you're doing foreach of anything, that's grouping
 
3:09 PM
@FirstStep Remain detached. The universe will guide you to good things. See with your inner eye and not just the outer appearance. Sometimes when a door doesn't open it's for the best
@LynnCrumbling Yep, that's precisely what I need
I've noticed that for SQL statements returning results to a report, there's no need to group in the SELECT. It should be done in the report
 
group (employee_id)
{
    details {
        emp_name
       emp_hire_date
    }
    footer {   new_page  }
}
 
@Alex thank you :) I will keep that in mind
 
:)
 
if you need to loop within the employee, that's another group:
 
Nope. Just on the employee
 
3:11 PM
group (employee_id)
{
    details {
        emp_name
       emp_hire_date
       group(emp_coworkers) {
                 coworker_first_name
                 coworker_last_name
        }
    }
    footer {   new_page  }
}
 
It's basically a letter that goes out for each employee notifying them that they're the lucky winners of a random drug/alcohol test
 
Hahaha
Nice.
Mail merge :)
 
@LynnCrumbling Yep, it's like that, minus the inner group
Yeah, some crappy mail merge. Always hated mail merge with Word. At least I get to use SQL Server and C# for this
 
Fun fact: I first did a mail merge on my Apple //c in Appleworks on 20-field table in 1987 :)
 
So I'm trying to see if each letter is a subreport or just part of the main report
And for the page break, just drop in a Rectangle control at the end of the page and set its page break to After
 
3:14 PM
My dad was a car salesmen, and he sent out christmas cards to all of his customers. So he'd keep a database in appleworks of car sales. Not relational at all, very flat. But you could mail merge the db fields into a word processing document and fill in "Dear {first_name}," from the table.
...in 1987. Pretty crazy.
 
Nice!
 
I /unicode-heart/ my Apple //c.
 
I did mail merge with WordPerfect back in the days of horse-drawn carriages
 
Hahah.. I still use the old WordStar shortcuts whenever I use the 'joe' editor in linux.
Never learned emacs or vi. Well, enough vi to save, then exit.. or exit without saving.
@Maverik This is some good stuff!
 
vi is tricky. There are vi masters out there
So I'm thinking to use a Table (tablix) control in SSRS and just make it look like a letter. Then it will automatically iterate over each employee
 
3:24 PM
Do you need a tablix?
You probably can use it, but I'm guessing you can just drop a field in there without the tablix.
It's been 2-3 years since I've touched ssrs, so I can't remember if you can just drop in fields.
 
Thanks lynn :)
 
Yeah - VERY nice background music.
 
just a random stumble today
i started from In The Darkness - then I ran into Collide (i knew both tracks from before) so thought I'll explore their other work :)
 
I've been listening since about 1minute after you pasted it
 
I'm on Aphex stream that Johan mentioned
 
3:27 PM
Currently Dj Toussels - Black Field
 
nice stream as well - didn't start how I expected but mid way now and I'm feeling nice :)
 
i just watch twitch all day. lol
laptop screen is basically dedicated to twitch
 
@Julien That works as well :)
 
Well, without a Tablix, how would SSRS know to loop over each employee? Or does it do that automagically for each record based on the fields you drop on the design surface?
Best way to learn... test it out. Doing that right now
Hmm. A List control does the trick
 
3:55 PM
@Alex To get a loop, add a grouping. That'll inherently cause it to loop
@Alex Where is the report template project?
I can't find it in vs 2015, and I have data tools installed...
 
Hmm
I installed some data tools a while back and I can right-click > Add > New Item > Reporting > Report Wizard --> which generates an RDLC file. Before doing so, it asks for a dataset in the wizard. I just point the ds to the XSD I've already created, which in turn points to a stored proc
 
Hrmmm. there's an update....
 
I think these were SQL Server 2014 Management Studio w/ SP1
Yeah, if I just drop a field from the dataset onto the design area, it doesn't give me any grouping options
 
I just did this:
4
A: BIDS for Visual Studio 2015

dundideatIt's now know as SQL Server Data Tools and is accessible via your Tools option in Visual Studio 2015 Tools -> Extensions and Updates -> Updates -> Microsoft SQL Server Update for Database.

It's currently downloading a whole bunch of stuff
So, sometime in 2017, I'll be good-to-go.
I think it's lunchtime.
 
4:12 PM
:)
 
4:22 PM
Dude -- Microsoft -- Why did your SQL Server Data Tools installer just kill my VS instance????
I WAS WORKING ON THAT.
grrrrr
 
Proceed with caution
This stuff can be dangerous
 
not a dude thing to do
 
I REALLY hope I clicked save recently.
 
never install a Microsoft product while another Microsoft product is running
 
Create a restore point before proceeding with any major installation, even if said installer will do that
I've learned the hard way
Also, commit all changes and close VS
 
4:25 PM
 
Nice!
Phew!
Now there's a dude
 
Dude where is my code
 
No, that timestamp is from yesterday afternoon...
I'm going to go look at the file...
 
Dang
 
That "recover" is going to ruin my day, I think.
 
4:26 PM
Hope I didn't cause you to lose files
 
@LynnCrumbling does that mean you are going to the garage to scream?
 
Don't worry about any more SSRS stuff, @LynnCrumbling
 
@JohanLarsson stay tuned...
 
SSRS is a nightmare anyway, even without the install headaches
You can't imagine how many circles of hell I had to traverse to get SSRS working in my WPF app
 
is there a beer in the garage?
 
4:28 PM
no, just darkness and a faint echo
it is perfect
 
Yeah. Screaming in the garage might disturb the mice and roaches, though
 
they are built for it
 
Dear god.. both of those "recovers" would have set me back weeks.
Worst case, I lost 10 minutes.
Probably more like 2 minutes.
 
Sorry
Now stop trying to help me. Don't you know anyone that tries that gets dragged into Dante's Inferno?
:)
 
Oh.. awesome. A BONUS.
I'm going to need SSRS tools at some point in the near future anyway :)
 
Arright. It really is lunchtime now.
 
When VS works, it's a thing of beauty; but when it doesn't, it's a category 5 poop hurricane
 
Ok, I'm pretty sure that I'm back to where I was.
SAVING.
EATING.
:)
 
Woohoo!
 
think its time I reinstalled windows
i'm bored - this sounds fun!
so see you guys in well how many hours it'll take :D
 
4:48 PM
haha
don't do it!!
stay away from the light!
 
lol
well its acting weird and i need to reinstall my home pc for same reason
may as well start
fortunately I don't have heavy setup so i should be back up and running in 2 hours
 
Did about a half dozen reinstalls a few years back when the HD was failing. Didn't have the drivers so that made it super fun
With Dell, they stopped shipping drivers with the laptops
You have to download them and then install in a specific order
 
why is clearing a combobox so difficult
am i missing something
 
Grids and CBs are evil
 
i have a bound combobox, setting the selecteditem to null, text to null, and selectedindex to -1 has no effect
 
4:57 PM
Hmm
When I bind the data, I usually set a blank element as the first item in the OC, with ID = -1.
That way I let the user clear out the CB if necessary by just setting it to the blank element
 
bleh. i have big master lists of stuff i dont want to modify
 
Ahh
That's trickier then
Can you set the CBs ItemsSource to null? Then set it back to the OC?
 
all my logic is in my VM's, they have no access to the cb control
 
Yeah, all the SO answers say do this, which you've already tried: comboBox.SelectedIndex = -1
You're doing it via VM
In your VM, can you set the OC that's bound as the ItemsSource to null?
 
sure, but what does that get me
 
5:03 PM
an empty box, cats like empty boxes
 
I'm out of ideas
Never mind. That was for winforms
 
i changed my VM method to accept the combobox itself as a command param
doing comboBoxControl.SelectedItem = null works
but setting a bound selecteditem to null does not
 
Didn't know that
 
i had to login just to comment on this!
like Julien is to Fody - Maverik is to IsSelected!
my EnumFoo shows the default IsSelected boilerplate ;)
of course by analogy it implies that Julien won't be using IsSelected but that's an option and actually a great option if you are following pure mvvm :P
 
5:26 PM
@Alex You probably have already, but if you've never seen the nightly news remix of rapper's delight, you need to.
^ in fact, anyone who's never seen that... do it :)
 
@LynnCrumbling How do they do that?!
 
Hours Days Weeks of carefully editing together samples?
I especially enjoy when he grabs his coffee.
 
This is from the Tonight Show
 
i use IsSelected, didnt realize that was an option for a combobox
 
5:35 PM
 
This is too cool
 
Arright. I need to deal with this bill dispenser now.
 
6:02 PM
Let's make a list of things that make my day sad.
> Server was unable to process request. ---> Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
 
6:40 PM
Got past the deadlock?
Sounds like the name of a cool action movie with Arnold Schwarzenegger... Deadlock "They killed his partner. They killed his family. Now he's out for revenge. Deadlock. Rated R."
 
lol id watch that
 
It's got about a 70% on RottenTomatoes.com. All the reviews aren't in yet so no consensus, but critics are saying it's Arnold back as his old action hero self :)
 
7:27 PM
@Alex have you used the MD:PopupBox ?
 
I don't believe so
I've used Dialog
Are you running into an issue?
 
it seems the popup menu is triggered even when you hover over the not-currently-visible popup options
which means you can't click controls that are in the way
 
Hmm.
That's annoying
Oh, I see you're talking to the developer :)
 
heyyyy looks like there is a PopupMode
 
Nice. He's a very attentive, nice fellow
Ping @ButchersBoy
 
7:33 PM
PopupMode defaults to MouseOverEager
change to MouseOver does what i want
 
Ah, nice. Knew James would have thought of all these things already
 
seems like a weird choice for default
 
Julien, glad you got it working :)
 
7:53 PM
1
Q: Radial tree graph layout: fix beizer curves

Alexander Smirnovi want to render nice radial tree layout and a bit stumbled with curved edges. The problem is that with different angles between source and target points the edges are drawn differently. Provided pics are from the single graph so you can see how they're differ for different edge directions. I thi...

 

« first day (1404 days earlier)      last day (2745 days later) »