« first day (2649 days earlier)      last day (1500 days later) » 

9:43 AM
Good morning :-)
 
 
3 hours later…
12:30 PM
hey XAM
silence here lately
 
12:43 PM
Hi grandangelo, yes it is :-)
 
 
1 hour later…
1:59 PM
seems like sometimes people really have to work :-)
ok sorry now I must leave I've a chess ga... ehm, a wpf app to develop
(then the sound of Homer running away, and a car accelerating fast)
"Smithers, why am I showing my teeth like this in that drawing?"
"Because you're smiling sir..."
(absolutely not sure about the translation)
 
2:34 PM
Hehehe. That sounds pretty close.
 
 
2 hours later…
4:14 PM
guys a new rookie question: I've an observable collection of (text + boolean status) objects. I want to bind this observable collection to a set of toggle buttons, with text bound to toggle content and status bound to toggle checked, sticking as usual to MVVM pattern.
What is the suggested solution? Should I use a grid view inside a list view?
 
It depends, does your user needs to know what each of those properties do? You can either use a template with textblocks to explain or use the columns. Columns usually indicate sorting though
Bear in mind that columns will also keep content aligned.
 
user can click on a toggle button to toggle (oh yeah...) some discrete output from a test bench. User just needs the name of the output, written inside the toggle button.
Seems that the following is enough:
<ListView ItemsSource="{Binding MyCollection}">
    <ListView.ItemTemplate>
        <DataTemplate>
            <DataGridCell>
                <Button Content="{Binding Name}"/>
            </DataGridCell>
        </DataTemplate>
    </ListView.ItemTemplate>
</ListView>
To be true I'm really confused about data templates, item templates, list view items inside grid views or plain list views...
Can't "orientate" me in this jungle :-)
 
data templates are easy
when you have a collection the ItemsSource looks for DataTemplates instances in the resources. When it finds one that matches the data type or key then it instructs the ItemsPresenter to use that, otherwise it will create a textBlock with default ToString() call
 
4:30 PM
can you please point me to the doc explaining this? up to now I'm copy&pasting with not so much brain... I don't get the general idea...
 
Rather than ItemSource it would be ItemsControl :-)
 
now I'm leaving tomorrow I'll look at the terms you just wrote me to try to better understand
thank you as usual XAM
 
It's simple if you want to test it. In your list view remove the Data Template and just leave the Binding for source like this: <ListView ItemsSource="{Binding MyCollection}">
 
(or XAMl? how should I call you?)
 
xami is fine
 
4:32 PM
:-) people leaving SO for things like this
so bye mister, enjoy life
 
ha ha see you tomorrow. take care
 
hello
 
Hi
 
 
2 hours later…
6:32 PM
Hi all :)
 
@grandangelo If I were thinking about toggles, I would probably use a checkbox for this. As a result, I would use a ControlTemplate to change the way the checkbox appears, and then use a DataTemplate to create checkboxes with that template when you have objects of your datatype, and bind the text to the Content property, and the bool to IsChecked. (You may also want to force IsThreeState = false
Heya Reed. How've you been?
 
@Zarenor Doing alright
kind of remembering why I don't go onto the SE sites much anymore, but other than that ... grins
 
Heheheh. The shog9 and Cartaino news is a shame. I've never been much for browsing and answering, and my rep reflects that. But I guess I'll be around a while longer :)
Glad to hear you're doing well. Up to anything interesting lately?
 
mostly just plugging away at the same ol' stuff ;)
probably going to try to hire another WPF dev at some point, though - so that's fun
if you know of anybody looking to get a new WPF gig who also happens to be fluent in Chinese, have them ping me :p
(that'll be a fun one to try to find :p )
 
6:49 PM
Oh, geez, fluent in chinese?
That does sound like a more-difficult hire.
 
 
1 hour later…
8:02 PM
Yeah - but heh, always fun :)
 
8:45 PM
@ReedCopsey Do you ever hire remote workers?
 
@LynnCrumbling All of my workers are remote :D
we're 100% remote
so it's not an impossible task
just still ... difficult :D
 
9:28 PM
Hey all, I'm back
for a few weeks anyways
 
Hi @BradleyDotNET - how's life been treating you?
 
9:45 PM
Not bad, just started with a new company
 
9:59 PM
More Angular work, but hopefully with more opportunity for advancement/growth
 
10:23 PM
@ReedCopsey Wow, never realized that. Imagined you owning a big office building and commanding around a couple dozen on-site folks.
@BradleyDotNET Welcome back!
 

« first day (2649 days earlier)      last day (1500 days later) »