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

  • Thread starter Thread starter Norbert Pürringer
  • Start date Start date
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
 
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.
 
Back
Top