« first day (7 days earlier)      last day (4142 days later) » 

4:00 PM
:)
 
Hey @JohanLarsson
 
hej
@Sisyphe Everything good?
 
tired
exhausted
working on WPF performances in a large scale app
 
:)
 
0
A: Optimizing WPF 4.0 TreeView Scrolling performance

LastCoderI would try to fix the error(s) in your second approach. Give each node/item of the tree a unique key Have dictionary that holds the control(s) in each node/item While scrolling (or even while not in focus, just have a text/simple representation of the data in the tree. Once a node/item is focu...

i'm over 70hours of work this week...
 
4:03 PM
@Sisyphe 30 unpaid? also whats your average ?
 
yeah 30 unpaid :D
what do you mean average ?
 
@Sisyphe [x] Advanced
 
@Maverik Regarding the issue, someone posted an answer to the question. It seems to be a different approach but i havent got it to work. What do you think?
0
A: How to set source for only one column

RachelSpecify your own DataGridTemplateColumn in DataGrid.Columns, and set the DataGridTemplateColumn.CellTemplate to whatever it is you're looking to place in that column. For example, if you wanted it to be a ComboBox pointing to some other list of fields: <DataGrid.Columns> <DataGridT...

 
@Sisyphe how many hours do you normally work per week on average
 
a normal week is supposed to be 39 hours I think
that's waht I get paid for anyway
 
4:14 PM
@Sisyphe i know .. mines supposed to be 40
 
:D
 
yet i average at 50ish
 
that's my average too I think
 
60-70 when i have a project peeking
(i'm in my slow zone right now)
hence on chat so frequently
 
I have been in a strange mode lately, been at work less than 40 hours per week but working ~60
Inverted overtime
 
4:18 PM
@Maverik yeah same here ^^
well at least I'm well paid... I used to have a miserable salary
 
@JohanLarsson you've been working from home or something?
 
@Sisyphe i'm still at that state
the only hopeful thing is - my manager acknowledges it openly
and he's like you know as soon as some extra cash starts coming in, you'll be the first person to get your share
apparently the cash flow is pretty slow to come in >.<
 
I guess it is bad manners to ask what you guys are paid
 
well actually I'm not shy about that if you are curious
it's not that bad
 
4:25 PM
@Sisyphe after tax?
 
before
^^
 
ok, that is good, glad to hear
 
yup
your's good too ;)
 
I'm prolly more overpaid! :)
 
I'm not sure I am regarding the hours I spend working :D
 
4:29 PM
Hello All
I am having trouble implementing TabNavigation in WPF Application
If you could help me, that would be great
 
damn it
i missed the privileged posts!
 
:D
 
I am glad you respond .....
 
Hello @DevNullFin
I'll have a look
 
of course we do, most of us are around :)
 
4:31 PM
Thanks a lot
 
i'm just busy talking in a private room
brb peeps
 
@Maverik Regarding the previous issue, I've undersood why i need the Model class, but im not sure how i should go about binding it
tyt :)
 
brb
 
back
 
wb!
 
4:38 PM
thanks
right.. once you have a model, you want a collection of it (to represent the rows of data)
 
Thats right
 
and thats what you bind to datagrid.itemssource
 
Oh i see ok
And where should I create this collection?
 
you could initialize it in the Load event
since in your case you need to have the rows pulled from database
 
Not database as such
 
4:40 PM
well list
or whatever you have
 
I've already got a list<string> which contains the fields
just a matter of telling the datagrid
 
ok then you can use linq
List<string> fields; // assume this thing already has your values in
var itemsSource = fields.Select( f => new Model(f));
(assuming you're using the model definition i gave you)
 
So the fields property should be of type list<string> within my model?
 
and then <DataGrid ItemsSource={Binding itemsSource} />
well it doesn't have to be - i just picked from your line above
 
Ok
 
4:44 PM
@DevNullFin does tab index have to be int?
 
hmm no luck
let me go over my code quickly, maybe i made a mistake
 
ok, I was thinking somethhing stupid like if parent tabindex is 12 then childeren would be 12.1...
 
@DotNET if you pasted my code as it is - it won't work
 
oh I see
 
4:46 PM
I would imagine i need to set the data name of each column to correspond with the model right?
similar to how asp.net gridviews work
 
Maybe that can be done with a converter, but its prolly not a good design
 
@DotNET not if you use auto-generated columns
another reason to use model
 
@DevNullFin Me != expert
 
I see
I'm not really sure what went wrong then
 
@Johan
 
4:47 PM
but you're probably wanna do that any for user friendliness
 
@JohanLarsson so am I but we all try
 
this is the model class:
internal class AttributesModel
    {
        internal string Field { get; private set; }
        internal string GroupBy { get; set; }
        internal string Having { get; set; }
        internal string DisplayOrder { get; set; }

        internal enum Aggregate
        {
            None,
            Sum,
            Minimum,
            Maximum,
            Average
        }

        internal enum SortOrder
        {
            Unsorted,
            Ascending,
            Descending
        }
 
@DotNET ctrl+k^^
 
thanks
 
@JohanLarsson right :) didnt know i could do it in chat
 
4:49 PM
hehe, things we take for granted (i assumed you knew)
right, umm.. yea ok so where is the collection?
 
public partial class AttributesWindow : UserControl
    {
        private List<string> myTestList = new List<string>();
        private DatabaseTable parentDatabaseTable = null;

        public AttributesWindow(DatabaseTable parentDatabaseTable)
        {
            this.parentDatabaseTable = parentDatabaseTable;
            InitializeComponent();
            myTestList.Add("Test1");
            myTestList.Add("Test2");
            var itemsSource = myTestList.Select(f => new AttributesModel(f));
@Maverik using that for testing purposes for now
 
sec i'm writing an answer
but u may as well open a question for this :P
too much stuff to paste!
 
Would you like me to open another question?
 
YEAH ! More rep for Maverik ! :D
 
He deserves it :)
 
4:57 PM
yeap
he's our WPF angel
I'll soon have more time to help too
 
well I could just give you updated test project
it works just the way you want it
don't open the question - it'll probably get closed
ok one change your internals to public
datagrid can't see internals (different namespaces)
public AttributesWindow(DatabaseTable parentDatabaseTable)
        {
            this.parentDatabaseTable = parentDatabaseTable;
            InitializeComponent();
            myTestList.Add("Test1");
            myTestList.Add("Test2");
            var itemsSource = myTestList.Select(f => new AttributesModel(f));
        }
that won't work because itemsSource will be destroyed as soon as you get out of scope
(it never even gets computed even)
so.. you need to do two things
one we need to establish a datacontext and then get the datagrid to bind to collection
@DotNET I'm guessing you're busy writing a question
 
Actually im changing the internals :)
Could you elaborate on the "we need to establish a datacontext and then get the datagrid to bind to collection" part?
@Maverik Should i open a question?
 
well you could
but this comes down to some basic stuff and it might reflect badly on you (you might run into comments like google or read on mvvm and stuff or similar stuff)
so np.. your problems sorted anyway
 
Hmm i see
so what ive done so far is changed the internals to public
 
yea just wait up.. i'll give you a gist
 
5:11 PM
Something like that is what im after, ye :)
 
these are the two files i replaced in the project you sent over
 
Is there some reference i need to make for "Display"?
As it's not recognised
 
System.ComponentModel.DataAnnotations
DisplayAttribute is used to instruct autogenerating columns how to name the field in display
and I just noticed this datagrid isn't following it
 
The thing is that it's telling me that reference does not exist
The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?)
 
@DotNET the name i gave you is the assembly name you're supposed to refer
 
5:21 PM
Oh i see
 
though I don't know why its not taking effect with datagrid
according to msdn, it should be working
it would appear, DisplayAttibute works in silverlight only >.>
 
In my case nothing is displayed at all
i.e. i've used the same code but im just getting an empty datagrid
 
if you get an empty datagrid then your missing data context
did you replace the entire .cs content ?
or show me your codebehind
 
 public partial class AttributesWindow : UserControl
    {
        private readonly List<string> _fields = new List<string>(new[] { "Test1", "Test2" });
        private DatabaseTable parentDatabaseTable = null;
        private ObservableCollection<AttributesModel> itemsSource { get; set; }

        public AttributesWindow(DatabaseTable parentDatabaseTable)
        {
            this.parentDatabaseTable = parentDatabaseTable;
            InitializeComponent();
            DataContext = this;
            itemsSource = new ObservableCollection<AttributesModel>(_fields.Select(f => new Attribute
 
use gist :P
but ctrl+k it for now please :)
 
5:26 PM
Sorry about that, keep forgetting
 
private!!!
arrggghhh
you can't bind to a private property
make it public
private ObservableCollection<AttributesModel> itemsSource { get; set; }
internal class AttributesModel
too
 
i did that, but i got the following message:
Inconsistent accessibility: property type 'System.Collections.ObjectModel.ObservableCollection<QueryBuilder.AttributesMode‌​l>' is less accessible than property 'QueryBuilder.AttributesWindow.itemsSource'
 
yea because they're not public
set them both public
 
i had everything set to public, i literally just copy pasted your code
changed it again and it's still presenting that message
 
then we have some other problem
cos thats working code from the test project
 
5:30 PM
Ok, just rebuilt the project and it compiled now :)
 
>.<
cool so we should be good now
 
just need to solve a small issue as im getting double columns
but im capable of doing that much hehe
 
double columns?
 
Very suitable @Sisyphe :P It's been a long day
Yes @Maverik, just a sec I'll send an ss
 
5:32 PM
@Sisyphe :) good one
 
:P
 
@DotNET yes an a ss will be good
argh!
 
Im guessing its something from my xaml
 
pretty interesting result!!
 
Isn't it :P
 
5:34 PM
it is basically generating one column for display attribute
 
It's obviously something stupid I did
 
and one column for property
i have no idea how you pulled that off!
 
he's a wizard
 
Well in my xaml i've basically put a bunch of column definitions for each column
 
I'm getting less and less constructive...
 
5:35 PM
whats your xaml?
there we go!!
well yes then its u! :)
 
It's always me :)
 
if you have manual columns.. just bind them to the right property
and I trust you can handle that? :)
 
Sure :) If I do that, should I remove the display name from the code behind?
 
@Sisyphe know why DisplayAttribute isn't working with datagrid autogenerated columns?
@DotNET sure
@DotNET though it doesn't hurt to leave them in there
 
Ok sure
 
5:37 PM
you can add even more attributes that provide validation and feedback
like [Display(Prompt = "enter group by column name here")]
which will put that as water mark like you see on websites these days
 
Oh nice
 
hmmm
this should not be the case actually
 
erm.. what should not be the case?
 
DisplayAttribute should be working
even with autogenerated columns
 
yea aparently its working in silverlight only
or so the impression i get from msdn
 
5:39 PM
taht's strange
ho by the way
in wow, the Kobolds are always saying : YOU NO TAKE CANDLE
that's like one of the forst alliance mobs
 
lol nice one
 
I remember those. They were always outside the mines
 
@Sisyphe i've played wow for years and i never noticed!
 
yeah exactly
 
i wish i had that omg gif on me
 
5:41 PM
I love these kobolds comics
darak legacy comics is usually very good, but best ones are thos with Kobolds :D
 
i normally follow lfgcomic.com and xkcd.com
but ithink.. i'm gonna follow this too
 
i'm on questionableContent and dark legacy comics
sometimes xkcd too
it's a bit too mainstram :D
 
@Maverik I've tried databinding each column, but now im getting this
 
set AutoGenerate=false on grid
or something along those lines (in xaml)
 
5:46 PM
@Maverik good one
 
think i'm gonna have to read this from start
so far i'm going back back back
and feeling like hooked!
think my ex even told me about this comic and i just never got around to checking it out
it was mmo comic from the start!
that joke won't make any sense to "normal" people
and I just LoLed in real
good thing i'm the only one in office - would have been odd otherwise :)
 
@Maverik having trouble binding the combobox now. Ugh this jsut doesnt want to happen lol
 
well
 
yeap
 
I cannot use the binding property for a combobox column it seems
 
5:53 PM
that would make sense.. you're probably trying to do enums and well they're not as straight forward :)
yes u can't :D
 
it's not a very joyous occasion haha, so better "yes u cant :( "
 
no i'm just still laughing from comic
two ways of doing this
one - sisyphe gives you more detailed version of how to deal with combobox columns
two - use auto-generated columns for now
and wait till i get back in office :)
oh a third one too - you can open another question and have somebody else answer it while i'm off for weekend :)
 
ok sure, thanks @Maverik :)
 
if you take auto gen columns - remember to comment out your xaml columns
right i'm off now /afk
have a nice weekend people
n good luck with ur stuffs
 
@Maverik Happy weekend :)
Thanks for the help!
 
5:58 PM
cheers & please! *poof
 
happy <week end !
sorry I'm not more available
it'll be over soon
 
That's ok :) We all have our commitments
 
oh btw, you should read about mvvm over the weekend
i feel you're gonna need to strengthen your core concepts
 
Ye, I was thinking the same thing
I still havent grasped the basics
 
if i may
 
6:00 PM
well yea - you do seem to be struggling with basic stuff at times
and no! @Sisyphe
 
WPF Control Develomment UNLEASHED
is a really good read
 
unleashed is a good series
 
yup
 
easy to read, very well organized
 
6:01 PM
+ color
 
I started with that and still read it from time to time
 
major plus when things involve gui
 
In other words, when things get ugly ;)
 
:D
I'm going to get some rest guys
see u on monday !
 
hhave a good one
 
6:02 PM
Same here :) See you all!
 
same - see ya all monday
 
6:23 PM
anyone still around?
 
yes but I'm not very good at wpf
 
well its actually a silverlight issue - this is the closest room i could find to my topic
0ther that c#
0
A: Security Exception unhandled

Smudge202If you need to make content available from a different website/domain in Silverlight, take a look at the following guide: http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx I hope this helps.

i just cant get past the security error and really not sure how to resolve it so if yo now anything i owuld appreciate it
 
I dont even have a guess
does the same work from not Silverlight?
 
Home sweet home
 
yeh man, i can do it easy as anything using a regular winform
just using httpwebrequest etc
silverlight exceptions a horrendously unhelpfull i appreciate you taking a look at i though
 
6:29 PM
I didnt play much with silverlight :(
 
it looks great but really sucks at times
 

« first day (7 days earlier)      last day (4142 days later) »