« first day (1014 days earlier)      last day (3135 days later) » 

1:33 AM
hi
 
 
7 hours later…
8:44 AM
ello ello ello
 
 
2 hours later…
11:13 AM
Whoa.. @E.LDunn long time!! how have you been :)
 
not to bad my friend, how about yourself?
 
not bad not bad, thank you
just busy busy as usual.. moved focus away from wpf
in the world of linux :)
 
sacrilege! :P
why the move?
 
I can scale out much better on linux + mono combo than I can on winblowz
and with .net for linux now in progress, i have no real excuse not to go linux
(i barely use a subset of core framework so limited functionality isn't my big problem)
 
fairplay, have you always been a Linux man?
 
11:17 AM
nah not really
wanted to.. but video games prevent me from making the move
 
isn't that still the case though?
I know valve has been making a push for Linux but
i cant think of many other studios that have Linux ports, granted i haven't really looked though
 
11:35 AM
nah its still a 99% windows gaming world
very few big names have actually offered linux gaming clients
I'd say there's progress.. but it's a very very slow progress
 
 
1 hour later…
12:54 PM
Why doesn't System.Windows.Media.Colors contain Grey?
And what should I use if I want grey?
 
Gray ? :D
 
have you tried Gray ?
 
...Ah.
Yeah.
Yeah words with multiple spellings screw me over far too often.
 
i use this...
when i have to decide which spelling should i choose
 
Ah that's cool.
That's really cool.
I mean it won't help me I just don't remember there are multiple spellings but that will give cool charts on random stuff.
 
1:00 PM
xD
 
SJD
Hello geeks
I have a question.
Do you know if I can handle this situation?:

Have 2 spinners. If I click on second one (focusing it) and push scroll inside it, it works (counts up/ countrs down). If I just move the mouse pointer outside the spinner but the focus remains in the second one, and I scroll nothing happens. The weirdest thing is that, considering this situation also, if I move the mouse pointer on first spinner but the focus is on the second one, and scroll.. WEIRD... the first spinner will modify
I expect the window to respect the current focused control and to modify it :D
Is this situation familiar to any of you?:) Thanks
 
1:15 PM
0
Q: Catch does not perform it's code

YesterI'm developing C# application for windows phone 8.1 (Silverlight). Lately I've came across the problem connected to application falling asleep and storyboards. The construction goes as follows: class X : DependencyObject { public static readonly DependencyProperty vProperty = Depend...

 
@SJD Mouse scrolling follows mouse, so I find that perfectly reasonable.. at least to me.. i've seen this sort of thing in many apps.. but i've seen the opposite too (as you expect it)
 
It should scroll only the focused element in this case, like the selection is changed in a ComboBox with mouse wheel.
 
SJD
Yes. @Maverik is there any way of doing "the reversed way"?
I just can't find if there is such preference in WPF:)
 
Lock the mouse in place and don't let them leave the hitbox.. code behind ftw xD
I kid, of course :D
 
SJD
Oh... So you will block forever the mouse in THAT!!
:P
 
2:03 PM
Hello. I've a "big" problem with a WPF customcontrol I made. Sometimes, apparently "randomly" it just freezes, its UI won't update anymore. The surprising thing is that it's still completely usable, it just doesn't refresh UI. Did you ever encountered such behavior? I'm using framework v3.5
 
2:23 PM
@nkoniishvt Can you make a minimal case that reproduces the problem?
Distill it down to only the xaml/code needed to debug it?
 
3:20 PM
Does any one know why I get these errors when I make ListBoxItem in code? pastebin.com/yc1vuJU0
 
Yeah, don't use ListBoxItem anywhere outside of a ListBox :)
It expects its parent to be ListBox
 
Well I do put it to ListBox
Well not in the example i posted but in the program the problem occurs
Hmm i guess i'm doing something wrong then since i don't get any errors if i change the panel to ListBox
Is there any way to see the line this error occurs? I don't really know what to do since I am adding ListBoxItem to ListBox and i get this error.
 
3:41 PM
@LynnCrumbling i'll try. Problem is it seems to happen after a long time collapsed (few hours apparently). Another worthy piece of information is that the top control (a window) seem to behave correctly: it shows at the right time but my Custom control inside won't update its appearance
 
@nkoniishvt can you show us your control's code ?
@FINDarkside "i don't get any errors if i change the panel to ListBox" "I am adding ListBoxItem to ListBox and i get this error."
are you or aren't you getting errors ? :)
 
@franssu Well that was a bit unclear. I have a test project with only listbox in it. In that one I don't get errors after I changed StackPanel to ListBox
But in the program im working on i still get the error
 
do you have a style on your listbox ?
 
But seems like I get the error only when I don't add that ListBox item to anything so i can fix that
But shouldn't it just be garbage collected if I don't add it to anything?
 
well adding an item via code is a bit strange
@FINDarkside did you mean the opposite ?
 
3:52 PM
@franssu No, I have 5 ListBoxItems and if i add all to ListBox i get 0 errors. If i don't do anything with them I get 5x those 2 errors.
 
what do you do with your item if not adding it to a listbox ?
nothing ?
 
Yes nothing. I fixed it know since obviously I don't need to create them if I don't use them but i'm still wondering why i get those errors
 
so if I write : "var a = new ListBoxItem();", I should get the same errors as you do ?
 
No, but you should get it if you add
a.Content = "Something";
 
@franssu i'm on my phone right now. I'll be on a computer in a few hours
 
4:02 PM
@FINDarkside I confirm I do :)
@nkoniishvt I'll be gone by then..
 
@franssu Any idea why that happens?
 
not really
but I'm not really surprised it does
I think you can ignore it
but the real question is why do you create controls via code ?
 
^ this
"inb4 mvvm"
@FINDarkside Have you tried applying mvvm to your project?
 
Yes I have tried, but i'm not going to change my project to mvvm anymore
 
well there's a gap between not instanciating controls via code and applying mvvm
 
4:19 PM
Not going to do that either :p Maybe on the next project even though it seems like a lot more work.
 
@franssu True...
 
Obviously I'm not creating everything via code, just a small part.
Didn't know anything about WPF when i started this so I did it like i would have done it in java :P
 
it's like little kids riding bycycle and not using pedals..
no offense of course, we've all been there it's a normal step
 
I had to create a control at runtime yesterday. It made me sad :(
I still did it MVVM-y though :)
 
lol it sounds like you created the control in the immediate window :)
 
4:25 PM
Either having a collapsed element overlaying my video, or running a storyboard to make it visibile at a certain time was causing my awful hardware to dive in frame-rate
So I made the control the content template of a content control and set the content property (bound) to "create" the control
worked a lot better
I just wish I knew why...
 
Something down in the media player testing for not being visible?
 
I'm curious about what kind of project you're working on @BradleyDotNET ?
 
@LynnCrumbling The overlay was what I created, not the video
though the video caused all sorts of issues
 
I'm wondering if the media player had logic to test for being covered, and attempt to deal with that condition....
 
maybe
 
4:34 PM
What control were you using as a player?
 
In which case, we likely stumbled upon the best solution. The weird thing was that it worked perfectly once the overlay was in place, it was only an issue when it was invisible
MediaElement
 
@BradleyDotNET What happens if, instead of using visibility, you physically move the overlay?
 
Same issue
 
Only while the two controls intersect?
 
Nope, even entirely off
(with a TranslateTransform for what its worth)
 
4:37 PM
What if the overlay NEVER sits over the mediaelement.
Are you saying this only occurs if it begins its transition while over the element?
 
With the overlay never sitting over it, it worked IIRC
It could have been the presence of the MediaTimeline created by the storyboard. I just didn't think those were that expensive.
Obviously we are running stupid close to the edge of our hardware's capability anyways
 
what's your hardware ? :)
 
@franssu Specifially, its a display of a jackpot bonus win for a casino's in-house progressive
Custom, and terrible
 
ok :)
 
we are supposed to get a new set of hardware soon. But we were also supposed to get that 6 months ago
 
so.. this:
 
not something we tested
we just tested moving it in from off screen
and not moving it at all
 
@franssu Is that you, talking? (in the youtube video)
 
no, he's from sales
 
Oh.. that's your hardware.
Brad ... curious what casino you're dev'ing for.
 
4:44 PM
the remote control is the project I've been working on last 2 years
 
@franssu Very cool stuff.
 
yes it's cool :)
going home, have a good day
 
You too :)
 
5:29 PM
@LynnCrumbling This one is for MGM Detroit
but we do several properties atm
 
@BradleyDotNET Is this in-house, or are you contracted?
I didn't know there was an MGM in Detroit. huh.
 
5:44 PM
They bought our ecosystem of products
so this is a bit of custom development we are doing on top of that
 
Oh, nice.
Your company does off-the-shelf digital signage?
@JohanLarsson o/
 
Picture-in-Picture actually
so the EGM becomes the "sign"
And everything is interactive of course (at least, everything can be)
 
@LynnCrumbling hej killen
gah, I forgot about the sync code
 
Eh, whenever you get to it.
Trying to hit another release deadline atm.
Have you guys ever had to deal with this?
2
Q: Customly chromed Windows in wpf

AlxandrI've tried creating a customly chromed window in wpf using WindowStyle None, and AllowsTransparency True, however, when I maximize the window it covers the entire screen (and goes beond it's edges, it also hides the Windows-bar at the bottom of my screen, just like a game in fullscreen). How can ...

Custom WindowStyle=None causes maximized window to cover start bar.
The shell integration library deals with this.
The answer originates from an MSDN blog. And the answer has some shortcomings.
 
6:12 PM
yeah
that's probably one of the better solutions you'll get
its a pain in the ass, and i ended up going pretty deep to the point I was going to say F the WPF window, I'll make my own... I believe @ReedCopsey ended up doing that or something? Look through some Chromium source code and you can see how they did it.
 
there's lot of shortcomings
 
@NETscape Which solution is better... the Shell integration lib, or creating my own winproc to handle WM_GETMINMAXINFO?
 
I worked on one for a while - but we abandoned it since we ended up going with a 3rd party library that does it for us anyways
shell integration library is probably nicer, though - and definitely easier
 
We've already custom-chromed ours, without the shell int lib. Now I'm fixing this bug.
Long term, it may be better to switch to the s.i.l., but that seems scary and destabilizing to our current code base.
 
6:42 PM
I want to do a bubbling event but the other way
tunnel down to all children
it is for navigation cancellation
 
that'd just be setting them to tunnelling
shouldn't be too bad
 
but tunnel goes from the root and stops where you are no?
I want to start at my current frame and tunnel down to all subframes
giving them a chance to cancel navigation
 
tunnel goes from the root/starting point down the tree
until it's explicitly stopped, or there are no more children
 
7:04 PM
hmm, i'll have to test some
just assumed it went from root to current
 
I have an enum for dirty state. unchanged, changed, saved.
It is set in the viewmodel, because I'm using the OnPropertyChange events to track dirtyness, but what are your thoughts on if I should actually store the state in the model or the view model?
 
@JohanLarsson no - they're just typically defined at the top level
basically, tunnelling events just tunnel down ;)
 
ah, very nice, sounds like it will solve my issue in a nice way
i have something crappy where children register with parents now
 
0
Q: Make specific of DataGrid cell span multiple columns

deathraceI referred this Answer but Its not working. Column still expands to the Row content. Screenshot: My Custom DataGridCellsPanel: protected override Size ArrangeOverride(Size arrangeSize) { var firstCell = Children[0]; firstCell.SetValue(Panel.HorizontalAlignmentProperty, Hor...

 
7:21 PM
tunnling must be pretty expensive then
the tree can get wide
all controls in the entire app
 
well, normally it tunnels and gets trapped by something and cancelled
 
do only visible controls get the event?
i shoud write a prototype
 
 
1 hour later…
8:36 PM
posted on July 30, 2015 by Rich Lander [MSFT]

This post was written by Lucian Wischik, a Program Manager on the Managed Languages team. We just released the Universal Windows app development tools for writing Windows 10 apps in Visual Studio 2015. It is an exciting release: you can now use the latest .NET technology to build Universal Windows Platform ("UWP") apps that run on every Windows device - the phone in your pocket, the tablet o

 

« first day (1014 days earlier)      last day (3135 days later) »