« first day (1028 days earlier)      last day (3121 days later) » 

11:01 AM
@user1892991 What do you mean "third-level"? What does the "third-level" look like now?
Also, what image do you want to be there? Your ItemTemplate isn't binding to an image, so you'll see the same image at every level.
If you want to change the image, bind to some image or path in your data context.
 
@Jeremy basically i have a heirarchical tree view, by levels i am referring to the nodes, at the moment i have set an image to the first and second node level but don't know how to add a picture for a third node branching off the second
 
@user1892991 Does the data type of whatever the second-level nodes are have a Children Property?
 
@Jeremy it should, before i included the:
<HierarchicalDataTemplate.ItemTemplate>
tags I had a tree view which displayed 3 levels but all with the same image
 
@user1892991 Yeah. Delete that.
Then you need to bind to an image.
 
@Jeremy
hmm how?
sorry but i am new to wpf
 
11:10 AM
See how you just have in text the source of an image? That means it'll be the same for every item in the tree.
The reason the text is changing is because you're binding to the Name property of your Children objects in your DataContext.
 
@Jeremy So should that remain there as a default image for nodes then other nodes are specified?
 
You should bind the image to a property on your Children objects.
@user1892991 I don't think so. I think your DataContext should have an IconSource property, or something like that.
 
11:36 AM
@Jeremy I am not sure what you mean, I have tried several different methods none of which have worked, correct me if I am wrong but doesn't the ItemTemplate refer to the child of the "Children" objects?
 
 
1 hour later…
12:48 PM
@user1892991 Yes. So your children objects should have a property like ImageSource, and bind to that.
 
@Jeremy okay so there would be a single binding from the children to the imagesource, is the imagesource simply a reference to the location of the images i want to use?
 
@user1892991 Yep.
 
1:14 PM
@Jeremy How can i go about the implementation of that?
Sorry for keep bothering you >.>
*to
 
@user1892991 Since you said you're new to WPF, here is a decent introduction to how TreeView works with HierarchicalDataTemplate.
 
@Jeremy thanks!
 
It's easy to google how to bind to an image.
 
binding a single image is fine, it's just binding an image to the third nested item which confuses me
 
@user1892991 Think about it as each item providing the image to the view that it wants to have shown.
 
1:54 PM
@user1892991 Don't be discouraged. If you're new to WPF, HierarchicalDataTemplates can be pretty mystifying. :)
 
@Jeremy haha thanks, yeah it is i've had some experience with winforms in the past but never WPF, the learning curve is steep but I am beginning to appreciate the power of WPF and XAML over winforms
 
2:08 PM
Hey guys, can you recommend a free navigation control for WPF ? My software has different "modules" that the user can navigate to and I was wondering if there was something that give better visual results than stacking multiple buttons with images on them
 
if you want to snazzy up your UI, i'd recommend a framework like mahapps or modern UI
any "navigation control" is going to need to be tailored to your needs
wpf already has a ton of nice controls
 
thanks @Julien
Also, @Julien, maybe you can also answer this : I'm used to DevExpress controls in WinForms like a grid that already has support for grouping / sorting / filtering. Is there something similar in WPF that could allow me to get rid of that third party ?
 
2:30 PM
datagrid
has built in sorting, and ability to group
dunno about filtering
 
That's great !
 
however, i really dislike using them
i usually use an items control and create my own control
 
Ok !
I'll keep it as a note
 
datagrid has really specific requirements, items control you can do whatever you want
 
@Julien I hate maintaining the DataGrids we have. "Hey, can you add a column tooltip that displays the column name when you hover over the items?" "Not easily, no."
 
2:40 PM
that kind of thing is easy with itemscontrol
well. easier
 
@Julien No, it's REALLY easy with itemscontrol.
imo, anyway.
 
the thing with items control is you have to create your own columns
but its certainly doable
 
 
2 hours later…
4:48 PM
@user1892991 Specify a DataType for each HierachicalDataTemplate
 
5:38 PM
Morning all. I have a question regarding the DatePicker in WinRT.
 
shoot
and morning :)
 
Namely, is there any relatively straightforward UI customization that can be done on it? Currently, there are huge margins between the day, month, and year select boxes
This is causing it to take up way too much horizontal space, which is impacting the UI elements around it
 
you should be able to override its control template
 
I do have room to lay it out vertically, though I'd prefer not to. But I don't really have any idea how to customize any aspect of its UI
 
maybe even do something clever with a style
 
5:39 PM
Tell me more about that
 
what bradley said
override style of whatever it is
 
note that overriding control templates are painful
styles not so much, but there is less you can do
 
Sorry, those words are not ones I know
I've heard of control templates, but I don't know how to write them, nor how to do the overriding of them on standard UI elements
kindergarten style please? =)
Yeah, I thought styles might be my best bet, but you can only put styles on the properties (DPs, I assume) that are exposed on the element, right?
 
basically you would use Blend to rearrange all the important "pieces" of the control
 
if you wanted to use blend...
 
5:41 PM
And if I could do that, then I would have just done that and wouldn't be bothering you all this morning =)
I've never used Blend
 
i think blend is the suggested approach, but like bradley said, it's painful
 
but you should be able to target the controls inside
and I wouldn't use blend
 
I've kinda resisted doing so because it looks like a rabbit hole from which I might not soon emerge
 
it probably is. lol
 
heh
So Bradley, how would I target the controls inside with either tag attributes or style definition (which is another way of setting attribute values)
?
Is it something like Margin.DayField="5" or similar?
 
5:43 PM
theres no baked in way as far as i know
 
No, you would have to create a style that targeted all combo boxes or something
 
The docs seem to be silent on the matter, and examples... well, this is MS documentation
 
and set the margin on those
the default control template appears to be here: stackoverflow.com/questions/10861160/…
 
Aaah, okay, that makes sense
 
I'm guessing DatePicker is non-trivial (even as control templates go)
 
5:43 PM
Oh, cool, introspection! Great!
 
but you could override it for yours and modify as necessary
 
let us know how it goes, i get the feeling its not a minor thing
 
I'll give it the ol' college try
 
also i fixed my bool to bool error from yesterday
 
Thanks for the help and advice, as always
 
5:44 PM
it was actually resharper bugging out
 
ahh
now you tell us ;)
 
in my experience, blend is good for exactly one thing: converting other formats to XAML
 
other formats?
 
AI files, especially
also, 3d models
haven't figured out how to do those in VS yet
 
whoa, that's pretty sweet. just watched a youtube
 
5:55 PM
well blend lets you open a control template for example of date picker
create a clone
modify in designer
then save, and import it as control into VS
it also does a ton of other shit about which i have no clue
 
or you could just look up the templates on MSDN
so rare that I've never needed a tool to do that work for me :)
 
i guess the idea is if you were doing it often blend is just easier
 
I think if you are doing it often then something is horribly wrong
 
your customized controls can live outside of your actual solution
 
In fact, I've only had to do it once (to make a borderless button)
 
5:58 PM
i think i did it once and said never again :)
also i'm pretty sure some apps just reskin absolutely every control
magic online is written in WPF and is not recognizable
 
yeah, but you can do most of that without overriding the base template
if not all of it
overriding the template is for when you need to change the actual structure of a control.
not just visual tweaks
 
you'd use to to make like, a circular window, right?
 
possibly
haven't really thought about that problem
an easy example would be wrapping the content presenter in something else
or removing an existing wrapper
which is what I had to do for the borderless button
 
you'd use it to re-arrange the individual elements that compose a date picker, for example
 
or that :)
 
6:30 PM
ok question
there are a ton of possible video resolutions
is there an easy formula to determine that one resolution is higher then another?
also, how can you qualify a resolution as being HD?
say i have a random list of resolutions and want to order them lowest to highest
 
Total pixels maybe?
 
like just add the two numbers together and good to go?
lol
i guess that makes sense?
 
multiply, but yeah
 
what about HD
is it just anything > 720 wide is HD ?
 
that I'm not sure on
1080 is a much safer bet
 
6:38 PM
i guess by HD i mean video that fills most screens edge to edge
netflix does a lot of 720 streaming
 
"most screens" is dangerous there
because plenty of people still have square monitors
 
what. no way. plenty??
 
or 16:10 monitors
 
i have 16:10, 720 is still close enough
 
well, if your definition is just "widescreen" then go off the aspect ratio
not the width
 
6:40 PM
ahhhhh math
 
7:07 PM
@Julien Technically, anything with a verticial resolution over 480 in US, 576 is Europe is HD
@Julien but the definition is based on the vertical resolution/scan lines, since it's from the broadcast industry
 
480??
thats whack
 
nah, that's standard def vertical resolution
so anything >SD is technically considered HD
720 scan lines is the most common "low barrier" though - so if you used >=720 vertical res, you'd be good
video industry is whacked in general, though
ie: I love the framerate for NTSC video
(29.97002997 fps)
(roughly)
 
why do you know these things @ReedCopsey? haha
 
it's part of my job ;)
my software does animation/video production
 
what video do you deal with?
ahh
 
7:21 PM
i fucking love this chat channel :D
 
actually shows/animates a oil spill distributing in the ocean? yaaaa
 
it's marketing crap, but you can get an idea
this is probably better:
 
This is a terrible display of a geological model. Many of the layers are stretched in respect to their stratigraphic location in the wells.
cmon reed. i expected better :D
 
stretched where?
 
lol i just pasted the youtube comment
i have zero clue
 
7:24 PM
lol - yeah, because it's really not very true
love that it was put there by a chinese entertainment company :p
 
yeah saw that hahaha
 
r u gunna delete it?!
 
7:39 PM
nah, I don't care
 
8:13 PM
@Denver !
 
8:29 PM
WPF birth as dead technology
 
8:41 PM
wat
 
9:01 PM
Me !
 
9:41 PM
where have you been?!
 
@NETscape who do you think he is? yelp?
 
(in russian accent) he is russian hacker watching us midwesterners -_-
 
So much of WPF and C# are living in the midwest
 
in one particular state, at that.
 
10:13 PM
Don't ignore nevada :)
Also, check this out if you need a free alternative to Beyond Compare: Meld
 

« first day (1028 days earlier)      last day (3121 days later) »