« first day (101 days earlier)      last day (4048 days later) » 

8:26 AM
Morning WPF !
 
8:43 AM
morning @Sisyphe
 
hey @gregory.bmclub
 
Morning all
 
morning
 
hey @RudiVisser
 
morning
 
8:59 AM
mornign @Sean
 
How you all?
 
Where did the weekend go?
I want it back.
 
yeah me too T-T
 
I don't
This weekend can't be forgotten about sooner
 
was it this bad ?
 
9:13 AM
Yes
 
he showed his ass in Woolworths
while drunk and kissing a monkey
 
That would've been more fun
 
9:48 AM
i have an entity that contains "Projects"
 
High five!
 
if i assign that to listbox ,it doesn't reflect the updated values in silverlight mvvm
any help?
 
10:05 AM
Good morning.
 
s gud mg
 
morning peeps
 
Morning @Maverik
 
hey mate
 
hai maverik
 
10:15 AM
hey
 
Hai need help,
  In my Silverlight5 with MVVM pattern project I have one listbox.
I load the data to listbox using entityframework. Initially all data are load into listbox without fail using entity framework model.
But if I add new data, the listbox doesn’t show the newly added value. But the newly added value is available in entity.
What is the problem? What I have to do to achieve this.
Listbox xaml coding:
<ListBox Grid.Row="1" Margin="8,0,0,8" BorderBrush="Gray" BorderThickness="1" ItemsSource="{Binding Projects,Mode=TwoWay}" SelectedItem="{Binding Project,Mode=TwoWay}" SelectionMode="
My ViewModel Code:
private IEnumerable<Project> projects;
        private Project project;
        private Customer customer;


        PartsDomainContext _context;
        public IEnumerable<Project> Projects
        {
            get
            {
                return projects;
            }
            set
            {
                projects= value;
                if (projects != null)
                {
                    OnPropertyChanged("Projects");
                    Project = projects.FirstOrDefault();
 
Projects should be ObservableCollection<Project> for listbox to pick changes
problem is, you're not changing project itself, but the collection that it contains
INotifyPropertyChanged won't do anything for that
 
mm let me change IEnumerable to ObservableCollection Maverik
Error coming Maverik.. In the function GetProjectsList(int userid){}
Projects=param.Entities;
Entities is declared as IEnumerable in public IEnumerable<TEntity> Entities { get; } System.ServiceModel.DomainServices.Client.LoadOperation<TEntity>
 
yes because ObservableCollection isn't as easy as going in and changing the type
you need to read up on how to fix it
basically translate the entities into new observablecollection
 
how to translate it Maverik.. any idea?
 
10:29 AM
nope
its project dependent
you have to figure it out
 
mm will check and tell maverik
 
i can only tell you what to do, but you know your project and logic to figure the how bit
 
With IEnumerable it's not possible a ah?
 
it is, if you can implement ICollectionNotifyChanged
on the IEnumerable that you have
(you probably can't - hence the observable collection route)
thats whats needed
 
10:52 AM
still trying Maverik
 
:) keep at it
like i said, this isn't a small conversion
but you shouldn't have started with IEnumerable
you do not bind to IEnumerable
bind to an IList if you have to
and if you want updates then you need INotifyCollectionChanged implemented
@Sisyphe hey :) When you get a sec: any way to implement a height binding to the available Height? (this is the list within list thing that i was doing earlier - and i want the inner list to expand to max visible area only)
 
I'm using IList it doesn't throw error but it doesn't updating the value
 
yes IList NEEDS INotifyCollectionChanged TOO
 
INotifyCollectionChange is equal to OnPropertyChanged Event a ah
 
sort of, but for collection updates
there's d at the end of that
 
11:05 AM
oh, i thought they were the same.
 
check the link above if you haven't already
@gregory.bmclub what do you mean?
INotifyPropertyChanged -> sends notifications when set accessor is accessed
 
INotifyCollectionChanged and OnPropertyChanged
 
INotifyCollectionChanged -> sends notifications when collection set goes into action
 
where i need to write it Maverik
 
Jasper -> Google mate
 
11:07 AM
Yup.. Cool
 
google is your friend - thats what I have learnt, haha :)
 
I Tired
 
try harder then
because if you can't find it on internet, then may be you should improve your searching skill first
 
i know most people think its about just dropping words in search box
but its more than that, especially if you're using google - it can give you much better results
if you use its operators
did you know you can find sample code by searching code.google.com ?
that subdomain has crawled all the public code repositories that it knows about
look up "how to search" if you can't get search to yield
plenty of useful articles out there
 
11:34 AM
@Maverik : hey dude !
 
hey
 
about your acutal height binding
it's almost always a bad idea :)
Panels are responsible for assigning a correct height for UIElements
 
well i can see that much by actually doing it :D
hence ping
Listbox within Listbox has infinite height, or height that i set
but nothing in between
 
thats reminds me of an old question from DotNET
I think he wanted something more or less the same
 
did he find a solution?
 
11:37 AM
there should be q eustion from him somewhere
I'm looking for it
it was a bit more specific though
damn, cant find his profile
 
yea i'm going through his profile now
 
I think that's not him :)
he's got sioemthin like 1 or 2k rep
 
i was wondering
the questions are too nooby :)
jesus christ.. have you seen how many DotNets there are on SO
nvm.. i'll just wait until he shows up
 
There are a lot of Rudis too
 
well only 6 Maveriks
and only two of them are active :)
the other guys a russian cryptologist
why doesn't that surprise me?
 
11:45 AM
only 1 gregory.bmclub ;)
 
:)
if i added a last name, i'd be Single() too :P
 
How many Sisyphes ?
 
probably one
yea exactly 1
 
 
2 hours later…
1:45 PM
i just wrote the "Datacontext = new ViewModelName();" under Listbox_Loaded() event it reflects the value Maverik..
 
2:01 PM
way to go dude!
while you're at it, why not throw some winforms in there?
is afk for unforeseen duration
 
<3
 
github just came back
or nuget team finally fixed the link. i wrote them an email in morning and it magically works now
 
Matrix m = PresentationSource.FromVisual(Application.Current.MainWindow).CompositionTarget.TransformToDevice;
double dx = m.M11;
double dy = m.M22;
Horrible
 
3:17 PM
posted on January 28, 2013 by Eric Lippert

Integer arithmetic is surprisingly difficult to get right. There are usually lots of weird corner cases,1 and the temptation to use too-clever bit-twiddling tricks is high. Today I thought I'd give an example of how I approach solving integer arithmetic … Continue reading →

 
if anybody's interested, free download of SyncFusion Metro Studio to go with MahApps
 
snazzy
 
 
2 hours later…
5:09 PM
Morning!
 
Morning
Anyone have best practices for multi-language support in WPF?
 
not me sorry
will have to msdn it
 
ok I found it on MSDN, it looked ok, just wanted to check here so I don't spend time on a stupid tutorial/sub optimal practice
 
well ping Sisyphe
but i think he probably left for home
 
ok it is np, I'll hack up a dummy and try it
 
5:20 PM
:)
i "fixed" your mahapps star
 
You answered the question if there is something everybody knows about it :)
 
i got the official link from nuget - updated star for you
 
@JohanLarsson sorry you lost me
 
@Maverik about the language thing, if there was a best practice that everybody knew someone would have replied. Kind of like if I had asked if I should use WPF|winforms|java for a new app :)
 
5:23 PM
oh xD
 
0
Q: What do binding Error codes mean, and where can I find a list of them?

RachelWhen I get a binding error in WPF, there is an error code that goes with it. For example, System.Windows.Data Error: 40 : BindingExpression path error: 'Product' property not found on 'object' ''ProductModel' (HashCode=57788087)'. BindingExpression:Path=Product; DataItem='ProductMode...

 
but nobody is around >.<
omg POUNCE!!
 
pounce?
 
yea nvm
its already answered
brb
 
5:38 PM
Do you use behaviors much? I wrote my first today, think it was nice.
 
nah
never needed behaviours
 
Might as well rep-whore some, I'm a little proud tbh :). Did not get rid of a compiler error that messed up designtime, probably due to references, did not spend time solving it.
 
5:57 PM
she seems to have managed it
my guess is, you linked against blend sdk 3
and she had blend sdk 4
(judging by the namespace she linked against)
 
How do you know (s)he is a she?
 
lol i can't answer that here
well i guess i can.. not the answer i had initially - but the nick sounds more of a female than a male
what do you see?
besides the landscape!
 
ok fair enough
 
though i hadn't googled when i said she :)
but you got me curious and i thought may be!
aht hat unicorn image in Trashcan, its burned into my mind! :)
 
6:05 PM
For some reason it shows an error in designtime The name "SnappingSlider" does not exist in the namespace "clr-namespace:WpfGridView". don't know why tbh. <-- you have to build the thing for designer to see
assuming your namespace is correct
 
I did build it
 
odd then, thats usually my issue
 
But I think you are right in the version of Blend, found some answer indication that
Did it at work, don't have the code here
Don't want to annoy myself to the point where I have to spend the rest of the evening hunting it down either :)
 
lol shouldn't - she figured it out
or he :)
 
I tried running it and it worked well
 
6:08 PM
Johan i gave you the original answer on skype ;)
 
ok, still reading today's transcript, will be a while before I'm realtime
 
no need
nothing useful related to project
but if you still wanna read.. feel free of course
but we didn't really talk about project as rudi's been busy with his work and sean's been busy with his job
we just random stuff in there
and i'm gonna head home
catch u later in skype or tomorrow if i dont see you on skype
 
on skype for sure
 
 
1 hour later…
7:18 PM
how is the wpf room today?
 
Exhausted from doing nothing productive all day.
And how are you sir?
 
im am not to bad also tired, thank you for asking :)
 
7:33 PM
Yay it's @E.LDunn!
 
yo yo mr Rudi how you feeling today :)
 
A hell of a lot better than I was 24 hours ago
 
lol
did you dip into the £200 bottle?
 
Nope, I'm never drinking again
 
Starring those to be able to reference them later
 
7:37 PM
haha
 
Argh not again! I haven't touched a drop of alcohol since Sat
and will continue to refuse to do so until the memory passes
 
until next saturday ;)
 
Which I think may be several years
No
 
what did you do rudi :P
 
I must not repeat it
 
7:40 PM
lol, so it wasnt just a case of drinking to much :P
 
Mmmhm
 
lol
 
Like I say the sooner that memory passes from existence the better :)
Amazing
@JohanLarsson ^
 
Yep, guy's a pro!
I play TJ on saturdays mostly
 
Maybe this Saturday
 
7:51 PM
I really enjoy the effortless perfection that comes with true talent
 
Like me!
@E.LDunn Let me find some screaming so you don't feel left out, sec
 
hahaha
 
That seems about right
I might have nightmares, but it seems right...
 
guess we have to wait for @E.LDunn to tell us
 
7:59 PM
i like :D
 
I think they have had some success outside of Sweden, they have been around for twenty years I think. Remember them from when I was young.
 
8:14 PM
This amazes me
I mean, how they are to have any "success" at all
 
8:40 PM
still better than Justin Bieber
 
9:08 PM
gonna go get some chinese anyone want anything?
 
YES SALT AND PEPPER SOFT SHELL CRABS
 
WTF
 
hahaha
 

« first day (101 days earlier)      last day (4048 days later) »