tags:

views:

43

answers:

1

I'm creating a folder in my Solution Explorer and in that folder I have all the images I need.

I'm guessing in XML all I have to do is (pseudo):

<xml>
    <TestItem>
        <Name>Orange</Name>
        <Image>Images/FruitPictures/Orange.jpg</image>
    </TestItem>
</xml>

Correct?

So in my XAML code, how can I call upon that element I declared in my XML?

Thanks so much for the help.

A: 

You may need to use Stackpanels. Example below is button that has text and little image. Usually controls except only one item. So groupping groupping to items text and picture to sigle solve this problem. Here icons and toolbars are folders.

<Button Height="25" Width="100" Name="New_Tab" >
  <StackPanel HorizontalAlignment="Left" VerticalAlignment="Stretch" Orientation="Horizontal">
     <TextBlock HorizontalAlignment="Left">New tab</TextBlock>
     <Image  Source="/icons/toolbar/tab-new.png" Height="12" Width="44" />
  </StackPanel>
</Button>
Tuukka
No where in your answer do you call XML locations. How can I do exactly this, but instead of literally writing the location string, I just call the XML element.
Sergio Tapia