View Single Post
Old 11-30-2007   #3 (permalink)
Oriane
Guest


 

Re: Vector graphic image

Hello Serge,
hello Srege,

"Serge Baltic" <baltic-@xxxxxx> wrote in
news:dc0986bf7a1c28ca00c7bac58ccf@xxxxxx
Quote:

> Avalon can't be aware of all the possible vector formats … You'll have to
> use an utility to convert them into the vector XAML format first. After
> that, they could be loaded right away as vector images.
I'm a newbie and you answer is quite unclear to me.
First, what does "convert into the vector XAML format" mean ? Do you mean
that Xaml code should be yield by the utility ?
Second, once this conversion has been done, how do you link the XAML code
with that converted vector image ? My goal is to use that image into for
example a hierarchical template:

<HierarchicalDataTemplate x:Key="tvTemplate" DataType="x:Type local:Element"
ItemsSource="{Binding Path=SubElements}" >
<DockPanel MouseRightButtonDown="DockPanel_MouseRightButtonDown"
Width="Auto" >
<Image x:Name="iconeTv" Source="{Binding Path=Icone}" />
<TextBlock Text="{Binding Path=Name}" />
</DockPanel>
</HierarchicalDataTemplate>

In the third line (beginning with <Image), I would like to give my vector
image as a source. I guess I have to use C# with a MemoryStream... What do
you think ?
Quote:

> (H) Serge
Thanks

My System SpecsSystem Spec