« first day (781 days earlier)      last day (3368 days later) » 
11:00 - 21:0021:00 - 00:00

11:02
Morning
Morning
Morning
11:18
So I were (or is it was) in Paris this weekend
how was it ?
it was nice! long queue to Arc de Triomphe and even longer to tour eiffel
eheh.. as always
did you get to the third floor ?
summit? yes
I think I've never been
11:23
just stand in line for a couple of minutes (like an hour)
(at the second floor)
if the weather is nice and clear that's worth it
I suppose
it was really nice actually. I was there saturday
I wasn't in Paris this week-end
but saturday was nice I think
ah, sunday and monday was not so good
I was also impressed with the metro
line 1 ?
11:28
the departure times
never more than 5 minutes wait
compared to gothenburg it's amazing :)
it depends on the lines
my line is very punctual on its lateness, its a miracle when the train's on time
but how often does it leave?
it's not a metro but train
rer?
yes
every 20 minutes maybe
11:33
that sounds like here
this is a false news about a guy trying to get across paris using my line
RER B? north or south?
south
I went from CDG to Gare de nord
But it was leaving much more often than every 20 minutes. at least around 16 monday
sorry I'm a grumpy parisian
11:40
:)
never satisfied
I guess you never really are, about where you live
so in what area do you live?
one of the nicest place to live
and why is that?
half of the city is a garden
and it's only 20 minutes train from the center of paris
11:47
so just a question, paris wasn't bombed during WWII?
no because Hitler loved haussman
and paris architecture
and also we built a false paris
good enough reason
false paris?
yes
they would black out the real paris during the night
Hehe, that's awesome!
I really enjoyed the architecture in Paris.
hum... that might have been WWI
yep most of it thanks to Haussman
11:54
but did they build a fake eiffel as well?
I don't think because it was not illuminated at that time
ahh of course not
 
2 hours later…
13:56
Hey dudes! :D
14:36
Oh @franssu I did visit Lafayette as well... do you go there often?
14:53
heeyyoo
@Markus I used to go there every christmas with my mum to see the shop windows
and the tree inside
but it's too expensive to shop there isn't it
I wish I could say that I use to go there to buy my watches... but unfortunately that's not the case...
I saw a Jaeger-LeCoultre watch for €56 000 (!)
I don't like watches
> sorry I'm a grumpy parisian
:p
though in my company it seems to be a social rank marker
:p
15:06
i'm grumpy today as well
why are you
somebody messed with my chair
i wish i could go to France. Feel free to pay for my travel and host me
where are you from ?
yes I know but precisely ?
east coast ?
15:11
midwest
near chicago
cool
there's a job open in my company :p
mhmm... good pay 0_o ;)
not too bad
i want to make sure i like EU first ;)
europe ?
it's so broad and heterogeneous
15:18
yeah, and more specifically FR
my friend got jumped near paris this past summer. they took all his belongings
or mugged, or whatever you might call it
french tradition
haha
vicious
it's like in any big city I guess
you have to be careful in some places at some times
yeah definitely. he kinda had it coming. was walking home late from the bar
do you know where exactly it was ?
15:28
no i'd have to ask. it was probably you wasn't it :O
maybe if it was full moon
15:44
@MosesAprico I just noticed this! Congratulations
Congrats @MosesAprico!
16:37
Thanks guys. I made a special mention in the preface for you guys. I'll post that when the whole report is finalized.
Btw, I haven't seen @Sean for quite a while. What happened?
I died
I think he is coming..
It's all good though, I figured out how to transfer my consciousness
I'm like Johnny Depp from Transcendence now
didn't see that coming. I can't mentioned you earlier.
16:40
Wut
Blame André
gotta leave guys. bye
Always blame the foreigner
._. Bye then
@MosesAprico OHHH!! That's why! Congrats dude!!! :D
16:43
@MosesAprico Aww thank you so much :) looking forward to seeing a snapshot :)
Yeah that's awesome ^_^
17:31
Sean is here? damnit
17:56
I don't think so @NETscape haha
18:15
@Sisyphe you sneak!
18:33
good afternoon!
:D Hey hey
Does anyone know how to add an object to a collection within the data context for a view via XAML? such as if I have a template like this:

<ControlTemplate x:Key="3x1x3PickingGrid">
<Grid Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Views:BinView Grid.Column="0" Grid.Row="0" />
if its even possible
What do mean "add an object to a collection"?
You can always do that, but I'm not sure what you are asking
sorry, missed the question at the bottom
as in the View which uses this template has a data context of type PickingView, and Iw ould like to have a List<BinView> in it
18:43
Normally you would just use an ItemsControl, with the Views.BinView as the ItemTemplate
Grids don't play nice with ItemsControl though, I'm working through that exact problem right now
ItemsControl in place of what in my example?
as in in place of the Grid?
In place of the list of views
Of course, you need bound data for the views to make sense
so what are my options
x:Name woudl be cumbersome
Yeah, you don't want to do that.
I don't see any bindings on those views, which seems really odd. How do they get their data?
I would use an ItemsControl with all the information given
and figure out the grid problem
you got an example of how to use one?
never touched an ItemsControl
but
I need to be able to specify their location in a grid
grid != Grid
I mean it has to look like a grid on the GUI
doesnt have to be an actual Grid
18:47
Right, thats the trick
The ItemsControl is simple enough
<ItemsControl ItemsSource="{Binding BinCollection}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<local:BinView/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
Then you have to get the Grid.Row/Column numbers on it
Which isn't that hard (just use a converter)
The real problem is that the attached properties don't work right
but haven't been able to work on the problem recently
lol
stackoverflow
eyah
nothing renders at all now
:/
Of course you need to have a BinCollection
I do
Are you getting binding exceptions?
ok... I think I understand whats up
the collection in my picking view is empty
so no bin views
but it should be empty
18:54
That would be a problem :)
the idea is that I will have templates which will result in a variable number N BinViews
and the user will be able to select a template to use for that view at runtime (at some later date, im developing with just a 3x3 grid)
maybe I could read from some config or something in the PickingViewModel to initialize the collection correctly?
Without data, what do the bin views do?
display labels with no data adjacent to them until an event is received
then they display actual data
So that sounds like you have a "Bin" view model/DTO object
That you could hold a collection of
no no no
18:57
and the "BinView" objects could be bound against
um
lol
sure.... I think so
my PIckingView has a collection of BinViews
a BinView has a data context of Bin
Bin contains several properties for values that a Bin contains
SKU, Description, whatever
Sounds right
and I wont know what those values are until a user scans a barcode at runtime, because Bin assignment hasnt been made yet. All I will know in advance of that is that a user has a cart which matches a template in terms of its physical characterists
like they have a cart with 9 slots, so they pick the 3x3 template
then scan the locations to populate the BinViews
Could you pre-populate the collection with "blank" bin objects?
Then fill them in as they get scanned?
thats what im trying to accomplish
<ContentControl xmlns:UserControls="clr-namespace:CartControllerForms.Views" x:Class="CartControllerForms.Views.BinView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Border Style="{StaticResource DarkRoundedBorderStyle}" Grid.Column="0" Grid.Row="0">
thats the BinView
19:01
I'm suggesting getting rid of all that Path=Bins[0] nonsense
Your view should bind directly to a single bin
and not worry about what its contained in
it does, thats sorta... out of date
alot of 'undo' happeneed today
thx for catching it
Then you initialize your collection with 9 empty "Bin" objects
so the ItemsControl creates all the views for you
I cant just do that
it has to be based on a selected template
for now it will work, but in the future the user MUST be able to specify what the cart looks like
and in addition... not all cells of the grid will have a BinView
19:03
So when you select a template, can you invoke a method on the view model to create the blank bins?
some wont contain anything because that physical slot on the actual cart may be occupied by a printer or something
That parts just business logic, if you solve the rest of the problems it will be trivial
I think ill just init it to 3x3
see what it does
well it made them, they are just tiled from top to bottom with no columns
:P getting closer!!!!!!
Right
Now you need to grid the "ItemsPanelTemplate"
which has problems detailed in the posts I linked to
<ControlTemplate x:Key="3x1x3PickingGrid">
<ItemsControl ItemsSource="{Binding BinViews}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentPresenter Content="{Binding Items[0]}"/>
<ContentPresenter Content="{Binding Items[1]}"/>
am I even close?
19:16
No
Nice try though :)
I guess you could do that
but you are fixed against a set number of items
Doesnt change the result
literally has no impact on the display at all
In your case, that actually might be a good idea
Wait, scratch that
@MarkW You need to set the grid row/column on your content presenters
<ContentPresenter Content="{Binding Items[0]}" Grid.Row="0" Grid.Column="0"/> , etc
@ReedCopsey That would work, except its creating that grid for every item.
yeah - but that's going to be difficult to avoid
19:18
He can set the grid as the ItemsPanelTemplate
you'd have to use code to set the positioning, though
at which point, you'd be better off writing a custom items container/layout to handle it automatically
Getting the attached properties to work, is, problematic
Hmm... Thats a good idea
Then for all the different templates you just swap in the correct panel for "ItemsPanelTemplate"
you could use a "list" of items controls
where one item control represrents all the columns in a row
and the list controls how many rows
19:21
        <ControlTemplate x:Key="3x1x3PickingGrid">
            <ItemsControl ItemsSource="{Binding BinViews}">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
that has no effect on the UI at all either
either at runtime or design time
there is a contentControl on my picking view whose template is bound to that like so :

<ContentControl Template="{StaticResource 3x1x3PickingGrid}" Margin="188,166,0,0"/>
renders the controls... only in a single column
You are mixing ideas here, which is causing you problems
An ItemTemplate should display one item
@Julien
hum...
nvm
This really should just be a custom items presenter
because then the ItemTemplate would be per-item
and it'd "just work"
bit of work setting up the layout yourself, but it's not that bad - probably easier than trying to work around it
Agreed 100%
Doing a custom panel isn't that bad
:/ I would like to agree... but I'm like 1.5 weeks into WPF
its rapidly getting very complex to accomplish this
19:32
well,it's 1000x easier than it'd be to do this in Windows Forms ;)
ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='BinView'
any idea what that means?
that was with this markup


<ControlTemplate x:Key="3x1x3PickingGrid">
<ItemsControl>
<ItemsControl ItemsSource="{Binding BinViews}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentPresenter Grid.Column="0" Grid.Row="0" Content="{Binding BinViews[0]}"/>
and yeah ill take a look at the panel thing, but honestly this seems like a step backward. I had started out buidling custom controls, and was told that templating was the way to go... and now im told I should be building a custom control
You aren't building a custom control
You are building a custom panel to layout your controls using the ItemsControl system
lol if a CustomPanel isnt a custom control then what is
and the distinction is?
19:37
Well, in some ways its a control
but all a custom panel is is two functions
Layout, and measure
a custom control is a whole view
so the scope is a bit different
Though in the purest definition, both are controls
No XAML for the panel though
In all fariness, you are doing a pretty complex project
Probably not the best "Intro to WPF" app :)
I was in way over my head today. Implementing interfaces I didn't know existed nor what they do.
so it would seem... im just, unfortunately getting frustrated. I just want to data bind some views on a grid :(
Not gonna back away slowly. Turn around and run at this point.
Which is super easy; except you want a whole bunch of stuff to be dynamic
trying to take deep breaths... the last few times Ive tried to progress on this project its gotten orders of magnitude more complex
19:40
Like the layout, and number of views
I could have done this in Swing in 20 minutes.... if I wanted it to look like a 1990's era Windows app
It certainly seems that way from the chat conversations :)
lol
@MarkW Well, that'd be the same approach as just doing it in code ;)
set the attached properties in code, and it'd work almost exactly like Swing
but it's not as maintainable as just making a custom panel (once)
hehe
I have to think
19:42
basically - a custom panel is pretty easy - you just have to tell it how to layout the children
it's 2 methods ;)
look at that link I sent - it walks through it
googling as we speak
You can hide some complexity in Helper classes :)
@ReedCopsey While I totally agree, panels mess with my head :(
Took me over an hour to make a panel that even-spaced all its children
Granted, it was like 2:30AM
@MarkW That walks through it in detail
11 mins ago, by Reed Copsey
@MarkW http://www.codeproject.com/Articles/25256/An-article-on-sorting-ItemsControl-wit‌​h-some-bonus#CustPanel
yeah I got it open
sorry I didnt mention that
19:45
What is the plan of Microsoft about Silverlight?
Will it be strongly supported?
AFAIK Silverlight is "dead"
Just like XNA
Ok, It is good to know before proceeding forward with my SL Windows Phone app
I should start converting it to Runtime App. Today.
Just could not find a strong article or press release about what will happen to silverlight
you have to if you want it on WP8
At least going to the windows 8 API isn't so far from silverlight
unlike going to straight DirectX from XNA :(
19:48
there is already silverlight 8.1 vs runtime 8.1. When I start project I was like "Who cares?" and I do care right now. lol
@Teomanshipahi If you're working on stuff now, I'd stick to universal apps
Hmm... maybe I'm wrong then
Silverlight is just dead for the web?
Agreed on the universal apps though
Silverlight is "supported" until end of life, but I doubt it'll get any new features - and it'll only be supported on browsers nobody uses soon :)
I see, I made similar mistake to use MongoDB against SQL server for my project. I just migrated all data 2 days ago :) I will do right now code migrate lol
xamarin is pretty neat if you want ios/android/wp
19:54
expensive :(
yeah like 800 a year i think
I would more rather give me IDE free and share my profit from my apps
they have a monthly, inexpensive indie license now
actually 50 for ios + android
if I would use xamarin I would go all the way
20:09
well, you can start with just one, though - develop it, and then buy everything when you're ready to start deployment
Hey @ReedCopsey. I have a C++ project with a .rc file. Is there a way, in Visual Studio, to change the VERSION_INFO across multiple projects without having to open each .rc file?
indie does not include xamarin forms
which is the big draw for me at least
@ReedCopsey got it, I gotta finish at least 1 or 2 xamarin book to decide if it is a good way to go or not. Not sure about all limitations of it
xamarin forms has a 30 day free trial
even if Windows Phone itself is enough to drive me crazy :D
not event touched android and ios yet
20:13
@NETscape Edit the .rc files to use includes - and include a shared file
@ReedCopsey that is brilliant! Heck ya!
still have to change them all, but only once then ;)
20:39
Anyone got time for a quick question?
probably just missed something smiple
just ask ;)
ok, well I decided to skip over the templating stuff for now, because I need to play with that more before I can move forward
seems reasonable
for the time being I have a PickingView which is embedded into my main window. The template it uses is like this:
<ControlTemplate x:Key="3x1x3PickingGrid">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentPresenter Grid.Column="0" Grid.Row="0" Content="{Binding BinViews[0]}"/>
pretty much what it was
those BinView objects in the collection are constructed in the PickingViewModel's constructor
and stuffed into a list
the Bin objects which are the data context for the BinView objects are constructed in the BinView's constructor
and the BinView has binding like this:

<Grid>
<Label Style="{StaticResource SmallGenericSemiboldLightText}" Content="Bin:" Margin="46,35,0,0" RenderTransformOrigin="0.523,0.536" VerticalAlignment="Top" HorizontalAlignment="Left" Height="29" />
<Label Style="{StaticResource SmallGenericSemiboldLightText}" Content="{Binding Path=BinID}" Margin="86,35,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="29" />
<Label Style="{StaticResource SmallGenericSemiboldLightText}" Content="Container:" Margin="2,64,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="29" />
with matching properties in the Bin class (the BinViews data context)
now the PropertyChanged events are raised in the Properties in Bin for when something changes in there
I can debug and watch those events get raised
but my UI never updates
even though in code, the Bin object im referencing when I set the values exists, and does raise the PropertyChanged event
can you format your code from now on @MarkW
20:44
ill use paste bin, so sure
@MarkW no need for that, just paste your code, and before you hit enter hit Ctrl + K
oh sweet... Ill do that then
<Grid>
    <Button />
</Grid>
and no errors in the output as well
If I inspect the Bin objects at runtime, they have the correct values, but the UI displays only the default values I gave them in the Bin class
if you say that property change events are firing
and your VM has the correct values
then you are not binding the way you think you are binding
20:51
I can show you the code for the BinView
can you put your PickingView, PickingViewModel, BinView, BinViewModel on gist?
the PickingView stuff works correctly
sure give me a sec
name the files correctly and it will format nicely
also the code behind for your views if you are doing any work with data contexts/binding in there
i am starting to feel like you might need to provide a sample project
20:55
that should be everything meaningful
ok so your PickingViewModel generates 7 bins
yeah
but then your BinView does this.DataContext = new Bin();
shouldnt a binview be referencing one of the bins created in the pickingvm
no
my PickingViewModel generates 7 BinViews
which themselves create the bin
right?
yeah thats right
11:00 - 21:0021:00 - 00:00

« first day (781 days earlier)      last day (3368 days later) »