Can you give me an example how to create custom composite control (in Silverlight 4) which derives directly from the FrameworkElement. Here is a mockup:
public sealed class CompositeImage : FrameworkElement
{
private readonly List<Image> images;
public CompositeImage()
{
images = new List<Image>();
images.Add(new Image { Source = "..." });
images.Add(new Image { Source = "..." });
}
protected override Size MeasureOverride(Size availableSize)
{
throw new NotImplementedException();
}
protected override Size ArrangeOverride(Size finalSize)
{
throw new NotImplementedException();
}
}