Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C# + WPF + WrapPanel

Name: The Hash-Slinging Slasher 2011-12-01 0:02

If someone is familiar with WPF in C#, I'd love a bit of guidance here...

My goal: Create a gallery of thumbnails within a WrapPanel, given filePaths already defined in a ListBox's Collection.

I'm not really sure how the properties of the WrapPanel control work though, since it doesn't seem to have anything like a Source property. Does anyone know how I might be able to do this?

Name: Anonymous 2011-12-01 0:58

Meep.

Name: Anonymous 2011-12-01 6:07

1. Do your own homework
2. Read the documentation
3. Ask Google

Name: Anonymous 2011-12-01 11:31

>>3

1. I am jewnigger
2. The documentation blows dick
3. Google gives me shit

Name: Anonymous 2011-12-01 12:45

Meep meep.

Name: sage 2011-12-01 12:47

1. sage in all fields
2. not reading msdn
3. Controlls put in 'Children' UIElement Collection

Name: Anonymous 2011-12-01 13:49

Create a gallery of thumbnails within a WrapPanel, given filePaths already defined in a ListBox's Collection.
Within a what using a what already defined in a what?

I hate all this jargon bullshit.

Name: Anonymous 2011-12-01 14:13

>>7

It's mostly Visual-Studio UI control shit.

- The file path is just a file path
- The WrapPanel is essentially the "container" for the UI elements I want to add/instantiate
- The ListBox is another UI container that, as the name implies, is a box listing shit - in this case, each photo in an album.

The ListBox is already bound to the photo data, I need a way to also bind that data to the WrapPanel, or do some other magical shit.



And yes, this is for a homework assignment. 95% of the program requirements have already been met, I just need to add this. Problem is, we never really went over how to add this kind of shit to a WrapPanel.

Name: Anonymous 2011-12-01 14:25

>>8
Once you're done with whatever you're doing, no one will be holding your hands like a baby. You're expected to finish some things by yourself, for example, by using your degenerate brain. If you can't, well, then better fuck off now and start a business major or something.

Name: Anonymous 2011-12-01 14:39

>>6
<WrapPanel name="nig">
<Image name="nigimg1" />
<Image name="nigimg2" />
<Image name="nigimg3" />
</WrapPanel>
nigimg1.Source=GetSomeShitFromListBox(nigListBox);
>>8
If you can;t even understand the msdn examples you must be jewnigger.

Name: Anonymous 2011-12-01 15:47

dub step

Name: Anonymous 2011-12-01 16:20

>>10
Is that... XML?

Name: Anonymous 2011-12-01 16:46

>>9

Derp.

>expects every answer in existence to already be on Google and that no one will ever help you with anything

Name: Anonymous 2011-12-01 16:49

>>9

don't take it out on OP just because you don't know shit about C#

>>12

"xaml," but yes, pretty much

Name: Anonymous 2011-12-01 16:50

>>10

Thanks, I may just have to hard-code it, since I don't really have any specifics to go with, as to whether new thumbnails should be dynamically allocated to the panel or what.

Name: The Hash- 2011-12-01 17:02

I guess it doesn't need to dynamically allocate new images within the wrapPanel, so I can just hard code the images and data bind.... also, up yours asshole.

Name: /prog/wisdom !wf5JJ352J. 2011-12-01 17:14

I don't know any C#, but I can enlighten you about this wonderful imageboard/cesspool of ours.

It's important not to forget that /prog/ is still part of 4chan. The problem with /prog/ is that 90% of the dumbshits on here think that they're God's gift to programming. They think their choice of a shitty, outdated language is somehow more relevant and important than the languages/programs that really matter. The truth is, no one actually gives a fuck if you can program a in Kobol. Well, no one except neckbeard Linux users living in their parents' basement.

They you act like asking questions and getting personal help with programming hangups is somehow less of a learning experience than spending hours pouring over pages and pages of documentation, even though you're just trying to find a simple detail. The fact is, most of the tards on /prog/ are just full of shit, and are probably still learning themselves. Just because you'd rather waste time than ask a simple question, saving yourself a headache, doesn't mean anyone else needs to, and it certainly doesn't make their learning experience any less meaningful than yours. Just keep this in mind: the more you program, the more you'll learn. Wasting 3 hours on 1 problem that could have been solved in 20 minutes is just plain stupid, regardless of the industry you're in.

My advice to you OP: keep asking questions, keep learning, and pay no attention to the trolls. In 10 years when you're a successful programmer, but these retards are still on 4chan arguing about SICP and all 3 remaining uses for LISP, the world will know who took the better road.

Name: Anonymous 2011-12-01 17:40

>>17
JEWS

Name: Anonymous 2011-12-01 18:10

>>17
tl;dr

Name: Anonymous 2011-12-01 18:16

>>19
TL;DR /prog/ is full of self-entitled faggots



THREAD HIJACK:
how do I make sure a form control stays on top of another one? I have one that extends but it goes behind another instead of on top of it.

Name: Anonymous 2011-12-01 18:21

>>20
so is the world.
WPF(Zindex) or WinForms(SendToBack()/BringToFront()) or someother shit

Name: Anonymous 2011-12-01 18:32

C# is shit
ironically, this isn't actually a troll

Name: dubs 2011-12-01 18:32

^[0-9][0-9]$

Name: Anonymous 2011-12-01 18:47

>>22

In some ways I agree, though I also disagree. There seems to be a much higher focus on pretty UI design than code that really builds on itself, but that's also a good thing in many ways.

>>23
I see you're capable of ignoring [2] numbers until the end of a [2-character] string.

Don't change these.
Name: Email:
Entire Thread Thread List