Can OnApplyTemplate be called before the non static constructor of a Control in Silverlight and WPF

I am wondering if an overridden OnApplyTemplate method can be called before the non-static constructor of the Control is called?

I am currently investigating possible NullReferenceException sources and was wondering if such scenario could be the cause of it, thanks.

Can OnApplyTemplate be called before the non static constructor of a Control in Silverlight and WPF

How to add extra info to mask imageView

I am building an app in which i want to mask an image with some certain other images like overlap. Also that mask image contains some text information about image like its name. And when masking is complete user needs to guess name behind mask into that image, if user guess correctly then that mask must be removed from that image.

So far I’ve done that masking thing by drag and drop mask image into main image.

My problem is how to add extra info to mask image and how to revealed that image by guessing that information.

read more

Increase azure web app request timeout

Is there any way to increase the request timeout for azure web apps?

If I delay the request by anything over 2 minutes or so the request fails with no error (blank page returned) or a vague 503 response.

    public ActionResult Index()
    {
        System.Threading.Thread.Sleep(230000);
        return View();
    }

I have some long running requests that I need to run (uploading large files/large pdf conversion jobs) – is there any way around this? I’d prefer to avoid using VM hosting is possible. I’ve tried scaling the web app to basic or standard plans, but it doesn’t seem to make any difference.

read more