Latitude attitude

Dell Latitude 7280 is a business laptop with tons of consumer attitude

4K all the way

You probably don't NEED a 4K webcam, but we love Logitech's BRIO 4K anyway

Long live Windows phone

Contrary to popular belief, Windows phone won't die anytime soon

XP-YESSSSSSS

Dell's already awesome XPS 15 gets even better in 2017

Surface Pwn 5

Surface Pro 5, Project NEON details leaked on LinkedIn?

Redefining the PC

Why Microsoft's Surface phone could be MUCH more than a mere 'phone'

Surface table meets Windows 10

Yes, we did put Windows 10 on the original Surface table ... and it rocks

Cream o' the crop

Before buying a Microsoft laptop, check out our pick for the absolute best

Simple and secure, just the way I like it

We think Windows 10 Cloud is a great idea, here's why

uber micro

Halo Wars 2 has something for everyone. Here's our full review.

Oldie but goldie

We reviewed Microsoft's decade-old Surface table

Creators Update comin' at ya

These are the coolest new features in the next big Xbox One update (video)

Buyer's guide

The Razer Blade 14 is the best laptop Razer has to offer

Windows 10 app gems

10 terrific Windows 10 apps you should be using

Tower of power

Here's what we think of Dell's XPS Tower Special Edition

Quite a deal

Grab the complete C# coding bootcamp for $41!

Your go-to laptop guide

Introducing our ultimate laptop buyer's guide

Listen here

Attn Android and iPhone users: What you need to know about Windows phone

Old is new?

The original Surface Pro still holds its own in the 2-in-1 world

Xbox Greenlight?

No, internet, Microsoft isn't opening Xbox to all UWP games

< >
Welcome to the Windows Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 2 of 2
  1. Giffdev's Avatar

    Posts
    66 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
       #1  
    Hey everyone, I'm trying to develop my first Windows Phone 8 app, and I had a question that I can't find any answers to online:

    for the time being, I'm trying to create a basic list that just displays thumbnails of photos the user has selected using the photo chooser in WP8 How to use the photo chooser task for Windows Phone

    I'm able to display photo thumbnails if I use a URI from a website url, but I can't display an image when trying to get the file path from the device. Here's some of the basics (I have an object that essentially just has the uri string for an image source)

    <ListBox Name="lstbox" Grid.Row="1" Margin="10, 10, 10, 10">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <StackPanel Orientation="Horizontal" Height="80" Width="400">
    <Image Source="{Binding ImageSource}" Width="80" Height="80"/>
    </StackPanel>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </Listbox>

    myImages.Add(new myImage(new Uri("http://www.google.com.au/logos/classicplus.png"))); <----- works fine, displays an image from a website

    what does NOT work is doing something like this using the photo chooser:

    void photoChooserTask_Completed(object sender, PhotoResult e)
    {
    if (e.TaskResult == TaskResult.OK)
    {
    myImages.Add(new myImage( new Uri(e.OriginalFileName)));
    }
    }


    can someone please help me with this?
  2. theomodsim's Avatar
    Developer

    Posts
    56 Posts
    Global Posts
    146 Global Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #2  
    Is "myImage" (seen in the code above when you call the constructor "new myImage...") a class that you defined? If so, can you provide the code for the ImageSource property?

Similar Threads

  1. I got a response from Elop on Lumia 920 Daytime photo quality.
    By chrgeorgeson in forum Nokia Lumia 920
    Replies: 32
    Last Post: 11-11-2012, 01:38 PM
  2. Purchased app not showing up on device
    By mrasmussen in forum Windows Phone 7
    Replies: 4
    Last Post: 05-30-2011, 12:43 AM
  3. Background image on Pictures
    By ikkf in forum Windows Phone 7
    Replies: 7
    Last Post: 05-17-2011, 09:56 AM

Posting Permissions

";