Is it possible in XAML to declare an alias for a type?
Let me explain an example. Given these type declarations ...
namespace Somewhere { public class Blob { … } public class BlobCollection : List<Blob> {}
... the following (abbreviated) XAML must be valid:
<BlobCollection xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="clr-namespace:Somewhere;…"> <Blob … /> <Blob … /> </BlobCollection>
I already know that I can define something like type aliases through inheritance (see the comment above). Suppose you wanted to do the same in XAML, how do I need to change XAML to be able to refer to BlobCollection as Blobs ?
<Blobs xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="clr-namespace:Somewhere;…"> <Blob … /> <Blob … /> </Blobs>
stakx source share