2
Vote

Not working with Callisto Custom Dialog

description

I have a little bit a strange problem. The Control is working fine if I use it in a normal xaml-view. At the time I use it in an callisto custom dialog it doesn't work.

I think the problem is that the ImageOpend EventHandler doesn't get called and so the DoFullLayout is not executed.
_image.Source = ImageSource;
var bi = _image.Source as BitmapImage;
if (bi != null)
{
    bi.ImageOpened += (sender, e) =>
        {
            DoFullLayout();
            if (this.ImageOpened != null)
            {
                this.ImageOpened(this, e);
            }
        };
}
Any idea for fixing this? (Because your CropControl is the best out for WinRt - thanks for that).

comments