View Single Post
Old 06-06-2008   #3 (permalink)
star-italia


 
 

Re: Is it possible to include XAML files into another XAML file?

Tom Shelton wrote:
Quote:

> On 2008-06-06, star-italia <star-italia@xxxxxx> wrote:
Quote:

>> Hi, Is it possible to include a XAML file into another XAML file?
>>
>> For example If i have
>> - Window1.xaml
>> - Window2.xaml
>>
>> and both have a treeview with a custom Style, can i describe the style
>> in a trvStyle.xaml and then include it in both windows?
>>
>> Thanks in advance
>
> I don't know of anyway to do that (that doesn't mean there isn't -
> but If this is the same application, you could define the style
> in the application resources, and then it will be available globablly.
>
And what if i want to create a control in XAML and then reuse it in
another window?

And to be more precise, I'm loading XAML on the fly, so I'd not want to
load it as a resource. However thanks for your reply
My System SpecsSystem Spec