WPF: How to define a static resource consisting in another assembly?

N

Norbert Pürringer

Hello there,

I've got following XAML definition:

<StackPanel Orientation="Horizontal">
<control:TreeListView x:Name="LegendTree" Width="300">
<control:TreeListView.Columns>
<GridViewColumn Header="Name"
CellTemplate="{StaticResource TreeViewItemGridCellTemplate}" />
</control:TreeListView.Columns>
</control:TreeListView>
</StackPanel>

Now my problem is, that TreeViewItemGridCellTemplate is a DataTemplate
in another assembly, where the TreeListView can also be found (XAML
namespace control:).

Is there any chance to reference to a static resource in another
assembly?

Regards,
Norbert
 
W

Willy Denoyette [MVP]

Norbert Pürringer said:
Hello there,

I've got following XAML definition:

<StackPanel Orientation="Horizontal">
<control:TreeListView x:Name="LegendTree" Width="300">
<control:TreeListView.Columns>
<GridViewColumn Header="Name"
CellTemplate="{StaticResource TreeViewItemGridCellTemplate}" />
</control:TreeListView.Columns>
</control:TreeListView>
</StackPanel>

Now my problem is, that TreeViewItemGridCellTemplate is a DataTemplate
in another assembly, where the TreeListView can also be found (XAML
namespace control:).

Is there any chance to reference to a static resource in another
assembly?

Regards,
Norbert



This is not the right NG to get your XAML questions answered, it's better to
post to one of the dedicated MSDN Forums
here:(http://forums.microsoft.com/MSDN/default.aspx?siteid=1)

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top