« first day (769 days earlier)      last day (3380 days later) » 

09:02
23 hours ago, by Sean
For our friends in the big ol' US of A: Happy Thanksgiving! :D
So I was a day early. My phone confused me
So happy Thanksgiving =]
Hi.
How do I set DataContext as a static class?
I am being dumb or something.
DataContext="{x:Static local:Settings}" does not work.
I've never done that
It only accepts stuff like DataContext="{x:Static local:Settings.Property}"
09:43
what's the type of local:Settings ?
hi guys
Hey
@Denver I just had a thought. Would you not make a resource?
@franssu static class Settings
Yeah, resource may work.
<Window.Resources>
    <local:Settings x:Key="MaHumpsMaHumpsMaLovelyLadyLumps" />
</Window.Resources>

<DataGrid DataContext="{StaticResource MaHumpsMaHumpsMaLovelyLadyLumps}">
    ...
</DataGrid>
<VisualStateGroup x:Key="group1" Name="group1">
   <VisualState Name="state1"/>
</VisualStateGroup>
<VisualStateGroup x:Key="group2" Name="group2">
   <VisualState Name="state1"/>
</VisualStateGroup>
I have this inside a resource dictionary
compile time error : The name "state1" is already defined in this scope.
does that seem normal to you ?
I dunno how visual state groups get compiled
But perhaps it is
Have a look at the generated code?
But that's not gonna help
I've no idea, basically
09:57
Good day Sirs!
how do you look at the generated code ?
hi @furier
you open the file! (actually not kidding)
Any of you guys familiar with devexpress?
nope
and or caliburn micro?
caliburn micro is fracking awesome imo
best MVVM framework for WPF iv come over
much simpler then PRISM
open the file with what ?
10:01
with visual studio ?
which file ?
dont they have a name.gs.cs or some ending?
it's a resource dictionary
and often nested under another file
Still gets compiled
10:02
like xaml and xaml.cs
It will probably be in the obj folder
But that won't help answer your question
That will just show you where the compiler is getting the error from
Sean you used devexpress and or caliburn micro?
no
Who is it that uses caliburn... I think Reed uses caliburn
you should have a look at caliburn micro imo
mmhm
10:27
0
Q: Remove any entry from web credentials portion of credential manager programmatically using c#

Mustehsan IkramI am developing a wpf desktop application that will only allow 3 metro apps to be used by any user i.e FB, Skype, Viber. As soon as user End His Session via my application i have to remove the credentials used by the user to login to these apps. I found that these metro apps store there credentia...

answering my own question : of course you can't have two elements with the same name in the same .xaml
 
1 hour later…
11:37
@Denver that's because you're doing it wrong -- you're giving it a static instance.. but you're really passing it class name rather than static instance
@franssu and yes because they're members of the same compiled class :)
Morning peeps
hey. I have a WPF question!!
In svg there are the <text> (which is about the same as a <textblock>) but inside the text you can have a <tspan> what would that correspond to?
<run> ?
i'd imagine so
just a guess really though, i've never tried converting from svg like that.. only picked paths
the difference is that in a <tspan> you can specify a location, but I don't know how to do that with <run>
and an other question, if I have a code <TextBlock Name="t"><Run>te</Run><Run>xt</Run></TextBlock> can you get the text for t
(I would like to get "text")
TextBlock.Text should give you that?
nope
:(
11:51
so, I thought I was smart
defined an Array of triggers in my resources
created an attached property to add them on the fly
didn't work
can't add the same instance of a trigger to different objects
can't copy a trigger
sad sad franssu :(
actually, you can't even create a datatrigger in code.
constructor has no parameters, enteractions / exitactions are readonly
how f***ed-up is that ? what am I missing ?
12:18
I have a togglebutton that is bound to a bool?
Is there a clean way to have it go from null > true?
12:30
@Markus Sorry for yesterday btw, I properly over-reacted to that joke
Hmm, I don't quite recall what happened...
ahaa the xbox girlfriend...
:)
See nobody even gives a shit hahaha
@Maverik you were right, of course. ^
Morns people
13:04
hey @AndréSilva
@Sean and I'm confused now - markus says it doesn't?
Hey André
@Maverik Markus didn't even remember
Eloquently proving your point that nobody gives a damn :D
Also yours André haha
No one gives a damn about my point? ._.
pointception
Everyone is now currently proving their own points
13:12
You got a point...
Forgive me, that was terrible
Hahahaha
And yes, I got a point there too
Andre, have you worked with devexpress and or caliburn micro?
@furier Do you work for Caliburn? xD
And hello to you @Maverik ^^
hehe no :P
I have some problems with getting them to work together
hope somebody have some experience with them
13:16
Hey Furier!
:D
Im here every day, but iv been so busy lately I havnt had time to write :S
and I've been in JS world so much that i haven't been spamming here much
work work (warcraft 3 peon)
my spam share has gone wayyyyy down
JS :D
you can ask me anything :D
13:18
How big is your package?
The peeps in the JS SO Channel is AHoles imo
Do you have any freckles in private places?
cool! how do I create an array out of object properties that can be then traversed via index!
What is your mother's maiden name?
so say i have books.book1.name
13:19
Maverik, use lodash it makes life so much easier
and does that for you
i want to get it via books[0].name
i can't use anything that isn't builtin (restriction by the course)
otherwise i'd just for x in xs
well for x in xs is builtin, but explicitly forbidden
i know more JS than the course allows xD
@furier DevExpress, I think I have worked. That is an ASP.NET thing, right ?
No. no. Windows Forms
I remember, I used that once for Windows Forms
Maverik you can have a look at the source for lodash? :P lodash.com/docs#toArray
Andrea its a framwrok for ALOT of stuff
13:21
that library looks nice btw :)
Andrea is the feminine for Andre :X
and thats a good idea furier.. didn't cross my mind :)
WPF, WinForm, Silverlight, Web,
Maverik, thnks :P
I only used once for Windows Forms, because a coworker used that to make things look nice, and obviously he screwed up
I'm going to check the WPF version, never checked before..
well they have som DockLayoutManager in DX (DevExpress) which gives you Visual Studio IDE like window management
13:23
Reed has totally used that
I like their slogan
I remember from his application
"Become a UI Superhero"
And also he said they used the docking thing
^^
Sean okay thnxs
Well Im not having trouble with the DX Docking thingy itself its when its used together with Caliburn.Micro that things start to crash
13:25
Is there any particular error?
Hm, I don't think it is good to mix different UI plugins
not exception, just visual bugs
Reed manages it ;P
Things tend to use the same resource somewhere and everything gets bad
Dude, you can't compare anyone with Reed
I can
13:26
Reed is Skeets alter ego
It would just be unfair to make you all feel inferior like that
Ohhhh Mr. Dig Bick
Caliburn.Micro injects views into your xaml based on naming conventions etc
and i think it has trouble traversing the DX xaml tree
@AndréSilva I'll dig your bick in a minute, pipe down grasshopper ;D
"You shall kneel before my dig bick!"
to answer my own question, of course DataTrigger.EnterActions / ExitActions are readonly, but that's because they're collections, you still can Add/Clear/Remove
Ok ok, that is really confusing to me
If it is readonly, you can't pass value, but you can alter it ?
I never fully understood that
You can still call methods on read only objects
Yes I know that
It's just that add and remove on a collection happen to "alter the object"
13:39
it's a readonly normalcollection
But, the idea of having a readonly variable, is that you can't change
not a readonly readonlycollection
you don't change the variable
you change what it contains
So you, as a class author, don't want consumers to be able to overwrite that collection as it may be integral to your implementation but you want to allow them to add or remove from it
Ok, so it is not trully readonly. In concept
In human terms, no
13:40
it is readonly
Sean understands me
But if it wasn't, you could assign it to null or something
And mess everything up
Null references everywhere
Not good
I guess a true readonly collection would a Tuple..
UUUGH
Once created can't change a darn thing
13:41
Tuples aren't collections
that's a ReadOnlyCollection André
there's a type for it
@AndréSilva the property is trully readonly
I knoooow that
I'm not discussing about types and methods
I'm saying that it is confusing to read
Because you're saying the collection is readonly, but the contents are not
it's perfectly normal, not confusing to me
But when you read it for the first time, you consider the whole thing to be readonly
Yes, because you're reading it as a developer that understands the concept of collections
If you read it as a sentence, it isn't explicit
no, because it's the same as any other object
13:44
Dude
Read it as a sentence, not as a command line
I'm just saying that it is confusing if you're a learner without fully understand some concepts
public MyCollection { get; }
Yes, read that as a sentence
PEW PEW PEW
Not as a command line
i think andre means php "developers" reading such things
13:46
Never mind I got it to work FINALLY :D
been fiddeling with that for over a day
int x = 7.0f; confuses them :)
ok ok André
I'm not saying it is wrong, but it is odd when you read it as a sentence
I has set ItemCaptionTemplate instead of ItemContentTemplate
grrrrrrrrrrrrrrrrrr
13:47
Intellisense ftw
Item <tab>
@AndréSilva its a lot less confusing if you've ever worked in wcf where this thing is littered all over the place
Yeah, if you understand 5% of collections, you understand that
I tend to mentally debug my problems and reading the lines as sentences
Maverik, you got it working?
found the code?
14:14
yea i just bit the bullet and did it like a php dev!
$nastyHack = SomeLibraryIDontUnderstand::Magic($herp, $derp, $derp);
pwetty mush
except, i don't tag it as nastyHack - we dont want to stand out!
$magic ftw instead
no.. even better
$ = SomeLibraryIDontUnderstand::Magic($herp, $derp, $derp);
mush betta!
I don't PHP that hard, can you do that?
You can't. I asked the almighty Ed Sheeran
He said you need a variable name after the dollar sign
14:37
i'm in JS world remember :)
make sure the variables tell you nothing
combine them with anonymous functions so nobody has any clue what you're trying to do
or if you even did anything real!
Hahahahaha
The syntax I posted was PHP
That wouldn't work in JS, I don't believe they have any concept of ::
well i suppose i should have noticed the :: :)
It's OK Mav
Not everyone can be as awesome as me
any idea why this makes the trigger triggered :
DataTrigger dataTriggerToCopy = (DataTrigger)dataTrigger;
dataTriggers.Add(dataTriggerToCopy);
but this doesn't :
DataTrigger dataTriggerToCopy = (DataTrigger)dataTrigger;
DataTrigger newDataTrigger = (DataTrigger)dataTriggerToCopy.Clone();
dataTriggers.Add(newDataTrigger);
arf
I don't know, sorry
14:47
When copying this object's dependency properties, this method copies resource references and data bindings (but they might no longer resolve)
That explains it
"They might"
15:42
Hey guys, I have a dependencyproperty - bound to IsFocused
the problem is - I can set the focus (via a bound property). And the focus gets set, but it only fires ONCE
So, I have a command, which sets myBoundProperty = true. The dependency property is fired and the focus is set. Moving focus and then calling the same command does not set the focus back to the textbox
Aha - I did it with a sort of hack. If the value being set is the same as the previous, I force it to be somthing else and THEN set it. That seems to force the bindings to update?
So, next problem - My multi-binding only fires once
16:23
Here;
0
Q: Hide TextBox without focus when empty Multi-Binding

AshehI have a textbox which I am trying to abide by the following rules: Textbox must always be visible when it has focus Textbox must always hide when it doesnt have focus AND it is empty I have a dependency property setup which allows me to refocus the textbox, so that it shows. This works "one-w...

 
1 hour later…
17:27
Written a demo app now - still same problem! Sigh.
@Maverik you around?
17:40
Must try to write an adorner again
Back to basics - DependencyPropertys SUCK they just dont work.
Of course they do, never the way you plan it, but they do
Actually I don't even know how to use them, so I can't say much
18:00
Well I cannot get them to work

« first day (769 days earlier)      last day (3380 days later) »