« first day (774 days earlier)      last day (3375 days later) » 

yes
I want it NOW
they basically integrated Snoop into VS and made it so that changes done in the visual tree actually impact in the source XAML
That will be awesome
Snoop is okay, but it could be a lot better
I suggested MS that they should enable the same features on Visual Studio for Xamarin.Forms XAML
imagine being able to do an Android app using that kind of XAML goodness
That would be cool
00:07
hey HighCore, nice to see you stop in!
hi @NETscape
I just stopped here for a couple of minutes while drinking my mate
wanted to see what are you guys up to these days
how's everyone feeling about MS's recent announcements
Getting away from Mono will be nice
@BradleyDotNET looks like Mono will continue to exist, though, and that MS might grab some of their code to do the .Net port to Linux?
unless I'm totally drunk and insane?
No I think you have it right
I'm just hoping MS does a better/more complete job
The lack of WPF was a deal breaker for me
we've discussed that extensively in the .Net Foundation forums
Miguel de Icaza suggested that people might want to create a XAML + MVVM stack on XWT
that looks like one of the most feasible alternatives
WPF will not be crossplatform in the short nor long term, IMO
it just doesnt make sense for MS nor Xamarin to do that
and there's not enough manpower in the community for such a project
00:19
I can dream
whats XWT?
it's the UI framework that currently powers Xamarin Studio
though they're moving to a native approach (WPF on Windows, Cocoa on OSX, GTK on Linux)
Interesting
it's a sort of Xamarin.Forms, but for desktop
of course it suffers the same limitations, depending on what you're doing a platform specific app might suit you better
BUT, for typical CRUD stuff....
00:37
CRUD is a lot of the programming world
 
7 hours later…
07:40
Moorning!
08:15
Morning
I have created an expand all option in my tool. If i use it, it takes 10 secnds to expand everything (the first time). Obviously doing lots under the hood creating the controls and calculations.

Is there any way I can make this faster?
Mooorning.
(Y)
08:41
Maybe it is that it really takes a lot of time to load the things, and then you might want to think about having it threaded and load peaces at the time (like the old webbrowsers did)
How can I thread it when its all data templated?
 
2 hours later…
11:08
Morns
11:37
Morns
good morning
0
Q: Adding DataTriggers to Interaction.Triggers via code

franssuI'm trying to do the equivalent in code of what this xaml does : <CheckBox x:Name="cb"> <i:Interaction.Triggers> <ei:DataTrigger Binding="{Binding IsChecked, ElementName=cb}" Value="true"> <ei:ChangePropertyAction PropertyName="Content" Value="blablabla"/> <...

12:09
i've never tried that.. and i dont use interactivity either :(
"Heey, take this compiled web project in VB and make it look like it is a normal project with classes and such"
i kinda have that same thing
a 10 year old project
Ouch, mine is a more recent
only thing i've learned so far is, fixing a decompiled vb project is far harder than a c# project
I can make it work, just like a common project. But most of the DLLs are not with the compiled project
Use Dis#
12:12
so you want to code in vb and save on an obfuscator!
Dis# decompiles, deobfuscates and put it in c# ._.
O.o
can't find its link
I think it does something wrong, I'm still testing it out
Because mine is trial, so a lot of things it is hiding
But if this project is in C# and we can decompile it, we can activate it to test :X
Last updatge from Aug 2008
I wouldn't spend money on that
especially with DotPeek and the like around
dotPeek decompiles from obfuscated published web projects?
12:21
probably creates gibberish as its not a deobfuscator but give it a go
its free and constantly updated
True
I'll give it a try, I'm downloading
Aaaand a excel thing appeared.. I'll leave this project for another time :(
private void _Lambda$__1(object a0, System.EventArgs a1)
{
// trial
} <-- I definitely won't pay for that shit
Haha the intention was to not pay
If a decompiler gave me source for this shit project that actually compiled, i'd happily pay out of my pocket
but so far not decompilers been able to do it, and nothing beats dotPeek in free category
So, basically you're saying that there is an open market right there
12:35
yea but if it was that easy to do, we'd have choices :)
We can stream torrents across the web and we can't decompile without doing hard work :(
12:47
R# 9 exits alpha :) Hello betas!
seems on track for december release
13:06
JetBrains new installer is so slick! we must stealz itz!
gief torrent @J3tBrainz
It is pretty neat
14:07
huh?
tell me all about it!
14:23
Wow, why can't you have both sync fw x86 and x64 installed simultaneously?
14:33
Challenge du jor: except a generic DbContext to a class, and use that context to write to the database. Any ideas?
public BillsErrorHandler(DbContext context)
{
     //TODO: validate the data.
     _context = context;
     _context.Table.add("NewItem"); //dafuq is 'Table?'
}
14:49
whats the point of generic DbContext in this scenario?
This is intended to be an external library that writes to the db on behalf of the calling app.
I guess I could request a connection string and do it myself.
15:12
Hello
anyone know where I can find the Caliburn dlls?
they evidently are not included in my visual studio
makes it hard to do the tutorial when OnPropertyChanged has no implementation
16:15
We just did quad-copter battle-bots in my office.
The bigger one won, but my small guy got a few hits in by dropping directly on top of it, knocking the other to the ground.
 
1 hour later…
17:22
@Billdr that sounds more reasonable - the point of generic dbcontext is to do reflection based modifications and i don't think you're doing that?
I'm tired, and I'm not going to parse what you're trying to say there.
of course that also means that if you were doing reflection based query, you wouldn't know what to do at all until the user wrote that sort of code
My goal is to write some lines to a table.
just use connection string, yes
hmm there is one other scenario i can think of that would warrant a "generic" dbcontext
you'd treat it like your own dbcontext, but you pick reference from constructor or in a property so that IoC can fill it up
but thats not really generic.. thats more you supporting IoC functionality and letting the end user decide lifetime of dbContext
 
1 hour later…
18:33
hello
anyone around?
Good morning
howdy!
so, I learned a bunch about MVVM
and styles
and now ive abandoned the custom controls entirely
and went for usign styles in my App.xaml
much easier
now im at this point where, the majority of the examples ive seen online, while informative, are very simple
IE, a single view, with content that comes from usually primatives in some model
what I want to do, is to be able to embed a view inside of another view
such that, on a button click in the outer view
the content of the inner one changes to something
how should I approach that
Wow, you learn fast :)
lol not a slouch
What you are talking about can be done several ways
I've done something similar when I wrote a custom installer (multi-page)
The answer kind of depends on the context though
18:40
yeah... think... like android type UI
a single form
whose view content changes
Like different pages?
what I imagine is that my outer view will have some control whose content is dynamic. That control will take up the majority of the space on the form. When a user clicks say, button 1, the content of that control displays view A
they click button 2, it displays view B
and so on
Ah
On the XAML I would use a simple ContentControl
and, in a statement that will no doubt make everyone else here cringe, put a UserControl variable on the view model to bind Content to
You could use a factory pattern and jump through a bunch of hoops
but it works, and is simple
that sounds pretty strait forward
you can use templates for content controls
dont need a UC
18:44
@Julien and type it against a bound object?
hadn't thought of that... it could work
you can use a template selector if thats what you mean?
Something like that
let me dig up my code
You could probably match MVVM a bit better doing it that way
reading a bit about this stuff
18:46
<ContentControl ContentTemplate={StaticResource YourTemplate} />
i am sure you could use a template selector there
but i am not
In the case of switching views, I think you would have to
or use typed data templates
Or you can just store the user control in the view model and use a converter to generate the view objects
in some spots i also just overlapped content controls and toggled their visibility
Not quite as "pure" MVVM, but like I said, its simple and it worked
anything to limit use of user controls
Whats wrong with user controls?
Sure they get over used
But you either have a giant XAML file of templates and your view model is ridiculous
18:49
i just found templates were the more wpf way
or you put the template in a resource XAML file and its basically the same thing as a UC
yes that is the way to do it
I'll have to agree to disagree there
I have lots of cases where I just don't see a template working out
:D
a content control with a template is essentially a uc
i think user controls have their place if you need a lot of code behind interaction, custom events, that sort of thing
Which I tend to :)
In this case, I'm simply suggesting using the content control as a placeholder for the other views
18:55
no argument there that is the thing to use
im leaning toward the UC in the model route so far
but I know next to nothing about templates
so im reading
19:25
Typed DataTemplate fan here too - and no i use ResourceDictionaries instead of a giant xaml :)
anyways, catch you guys tomorrow. bbye
19:36
lol
thought i was almost done yesterday...
bye @Maverik!
sometimes i wonder if everyone has to experience this BS
hey reed
Hey all. I have a DataTemplate that contains a datagrid. The datagrid has a DataGridTemplateColumn. Is there any way I can bind something in that templatecolumn to the object the DataTemplate is bound to instead of the row from the datagrid?
Never mind. The Tag property saves the day again.
Solution (for those who were just dying to know): DataGird.Tag = {Binding}
Control inside of DataGridTemplateColumn: CommandParameter={Binding ElementName=myDataGrid, Path=Tag}
@BrandenBoucher any chance you can open source the control you're making + example? you've been putting a lot of time into it, I'm interested in seeing how it all works out
19:51
Oh, this is totally a different project now
But I will be doing a bit of rework (to clean it up) on that control I was making. I'll actually have to check with my company, but I would love to open source it.
did you get that datagrid all figure out from before?
For the most part. It works pretty well. I just think the way I am handling some stuff is a bit kludgy in the code-behind for the control. Nothing that can't be fixed though.
The code was just kinda thrown together without a better knowledge of the details/gotchas so fixes were just put into place. I'd rather have the code set up to handle those details intrinsically
20:09
@ReedCopsey COM question :/
so i created an interop .dll using a .tlb
and i referenced it in my C# project
previously, I had the dll in the output folder
because i thought it was required. after I removed it from the output folder, my application still works as expected
now that I look at it, the referenced DLL in my C# project has Embed Interop Types = True
is that why it works?
@ReedCopsey that must be what it is. cool
yes, I believe so
embed interop types eliminates the need to deploy the interop assembly
though the COM object needs to be there and registered, of course;)
yep. i never realized I chose to embed interop types, one less file to install. woo!
it's great, provided you're not using that interop in multiple assemblies
if you're using it across >1 project, it's better to not embed (IMO)
20:28
luckily i'm not. whew
what problems occur if you use in >1 ?
the types have problems passing across the assembly boundaries
since each has their own definition of the type embedded inside that assembly
causes all sorts of craziness to occur (that's very difficult to diagnose)
20:53
16
Q: WPF MVVM DataBindings stop updating

shansenI am working on a medium size WPF application that utilizes the MVVM pattern. ViewModels use INotifyPropertyChanged to refresh their respective Views. This approach works perfectly, except for one problem: when this application is left running for long periods of time (3-7 days) the Views (every...

Have any of you seen ^?
I don't use a framework
But I have seen leaks if you aren't careful
I wrote the command implementation like this:
RelayCommand(Action, Func<bool>)
RelayCommand<TParameter>(Action<TParameter>, Func<TParameter, bool>)
My thinking is that parameters are almost always a kind of ugly hack and wanted to be explicit about when/where it is used.
I can see that
Having my delegate be (p) => SomeFunc()
Is kind of annoying
yeah noisy
SaveCommand(Save, CanSave)
will probably be lambdas most times, especially CanSave
@BradleyDotNET I have as convention to write _ => SomeFunc()
when _ is not used
think I saw Erik Meijer use that convention and liked it
I'm not sure I like reading that, but its a clever idea
21:10
OK, this one feels like a simple question. If I have a property on my view's code-behind. How do I bind to it?
I sometimes write SomeEvent += (_, __) => :)
@BrandenBoucher implement INotifyPropertyChanged in the vm
It's and observablecollection
and it needs to be on the view, not the vm
I'm a bit lost now
why does it need to be in the view?
is it a control?
It only has to do with view logic
@BrandenBoucher You don't bind to the code-behind; ever
if its data (for binding) you bind to the view model
21:12
OK, you know what. Never mind.
It was a simple, direct question I though.
But if you had to, name your user control element "Root" and do {Binding ElementName=Root, Path=SomeProperty}
Bad, bad practice
but you can do it
also works for window element
or relativesource
OK. So if you had a list of user-friendly column names, where would you put that list?
In your VM?
for a datagrid?
Why would your VM know anything about what you decide to name a column in your view?
Ya, let's use a datagrid in this example
21:14
I write column names in xaml most of the time
I don't think column headers are bindable. Not sure though.
Don't think they are n the visual tree.
So let's say in the code behind, you had some logic that went through the list of columns in your dg and matched the friendly column name to the actual column name
It seems like all of it could be hard-coded
I've never seen an application that lets users name the columns for pre-existing data
Why would you want to hard-code it?
21:17
Unless this whole thing is a dynamic do-anything datagird
not what I meant
I do agree that if I wanted to have a combo box that listed out these columns, I could hard-code the list of columns in the combo box AND in the datagrid. But if I made a change to the datagrid's columns, I would have to make sure I changed the hard-coded list for the combo box as well.
hardcoding is an issue for localization
If I let my code do that for me, I wouldn't have to worry about it.
And I know it works!
I'm just having a problem getting the binding to work on the combo box
I still think you should bind to the vm
but if you feel view is better, be pragmatic about it
@JohanLarsson do you always put your view logic in your vm?
21:22
I don't know what you mean by view logic but a collection of user friendly names feels like vm business
I try not to have controls show up in the vm though
So would you define the user-friendly names of your columns (that would be visible to the user) in your VM?
I find a lot of controls in our VMs. Usually mark it with [Obsolete("WTF")]
That's an awesome practice!
@BrandenBoucher yeah feels like a decent fit
@JohanLarsson I would NEVER do that because it's part of the view logic and could be completely different from what you end up naming your columns in your view.
(obviously, NEVER, is a lie. But I would do whatever I could not to)
21:26
hard to say without reading the code
but be pragamatic, and things can be moved
but keeping code behind clean is a decent idea in general
I generally agree with that, and strive to keep code out of there as well. But sometimes it's not a bad idea
In the end, to follow MVVM, code-behind is OK to use as long as it's only dealing with the view logic and not the business logic
(btw, I hate the term business logic)
one downside with any logic in the view is that it is more painful to test
BTW, I cannot get this to work: {Binding ElementName=Root, Path=SomeProperty}
I get: System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element.
21:30
have you named the root element x:Name = "Root"?
I would probably use relativesource ancestortype for that binding but same result
Is this in a template?
Not this time
maybe the header does not have namescope
21:32
You will occasionally use {x:Reference } instead of Element Name
you could try it here
not sure but think I struggled with binding column headers
I have a feeling x:Ref would work but I try to avoid it (for now) because of the error
Is there a work-around for that error in 2010?
Oh, @JohanLarsson, I'm not binding to the Header prop of any columns
And what the hell does this actually mean anyways: Cannot find governing FrameworkElement or FrameworkContentElement for target element
@BrandenBoucher Are you in a popup or someting outside of the visual tree?
No. Litterally a combobox in a grid in the usercontrol. The usercontrol is the root element in this case
is this in the item template for the combo box items?
because that's a popup ;)
21:44
nope
OK... so for now I am going to say never mind and pretend my problem wasn't because I was being an idiot and not realizing the error was coming from a different control...
lol, love those errors
le sign
sigh*
le sigh
Found my problem. And the problem would have still been a problem even if I was using the VM
In my actual code, the combo box is really an DataGridComboBoxColumn
hence it was actually related to what @ReedCopsey was hinting at. It's not in the visual tree.
That's what the error means, most of the time
21:59
OK. This part confuses me:
This does not work:
                        <DataGridComboBoxColumn ItemsSource="{Binding RelativeSource={RelativeSource AncestorType={x:Type l:MyView}}, Path=AccountColumns}"

                                                SelectedItemBinding="{Binding Column}" DisplayMemberPath="Item1" SelectedValuePath="Item1"
                                                Header="Column">
But this does:
                        <DataGridComboBoxColumn

                                                SelectedItemBinding="{Binding Column}" DisplayMemberPath="Item1" SelectedValuePath="Item1"
                                                Header="Column">
                            <DataGridComboBoxColumn.ElementStyle>
                                <Style TargetType="{x:Type ComboBox}">
                                    <Setter Property="ItemsSource" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type l:MyView}}, Path=AccountColumns}" />
22:14
Is /Themes/Generic.xaml supposed to be implicitly imported?
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Gu.Wpf.ToolTips;component/Themes/Generic.xaml" />
            <ResourceDictionary Source="/Gu.Wpf.Reactive;component/Themes/Generic.xaml" />
        </ResourceDictionary.MergedDictionaries>
or is ^ needed?
22:27
IDK
22:59
> An unhandled exception of type 'System.StackOverflowException' occurred in Unknown Module.
grejt
23:13
Is this related to your import problem?
don't think so
<SolidColorBrush x:Key="{x:Static toolTips:PopupButton.InfoBrushKey}" Color="CornflowerBlue" />
public static string InfoBrushKey { get { return "InfoBrushKey"; } }
^ does not work
public const string InfoBrushKey = "InfoBrushKey"; seems to work though
Sure you have the quotes in the source?
without them, you'll infinitley recurse
Easy enough to tell if you change either the string or the variable name
23:34
@BradleyDotNET yeah
that is unrelated to the SO problem
the SO problem was due to an elementname binding
nice guess though!
@BrandenBoucher looks like it is needed
the import?
@BradleyDotNET how long you gonna be around for?
23:43
the control renders blank without it
At least a few hours
ight, might have some comms questions later ;)
@NETscape no one ever leaves!
I'll check again sometime tonight even if I miss you right away
Just ping me on the first message
sounds good. i'm going home, going to see if i can squeeze in some time to learn more, i know i'll have questions
the only part of those directions i won't follow is pinging you on the first message
instead i will ping you on every. single. message
23:48
Well, they all dismiss on one click, so go ahead :)
Just finished a thing, all I want to do now is rewrite it :)
but 00:51 should mean sleep
Yes it should
do you use rx much?
I have this but dunno if it is right.
As in recieveing things? I'm not sure what you are referring to
So probably not :)
Find it that I often want to observe on dispatcher except for in tests
23:58
Nope, never messed with them
Not even sure what they do, so I haven't had a reason to look at them

« first day (774 days earlier)      last day (3375 days later) »