Silverlight Async Rules & BXF

Silverlight Async Rules & BXF

Old forum URL: forums.lhotka.net/forums/t/11801.aspx


MadGerbil posted on Friday, January 25, 2013

I've async rules working very well and I've been enjoying some of the nice features of the BXF framework.

I'm curious has to recommendations for a busy indicator for when an async rule is running.  As it stands now I have the BXF handling a locking of the screen and presentation of status messages when retrieving records or saving records.  This is done using Bxf.Shell.Instance.ShowStatus

I'm a bit puzzled on how to approach this with an async business rule.

Maybe changing the status on the screen while an async rule is running sort of defeats the purpose of having async rules?   How have others handled this?

RockfordLhotka replied on Saturday, February 02, 2013

I typically use a busy indicator on a per-field basis to show that an async rule is running.

You don't want to block the whole UI because an async rule is running for one property, but you probably do want the user to know that something is happening related to that property.

The PropertyInfo control (or PropertyStatus) provides that per-property busy information.

Also, the IsSavable property on the object automatically goes to false as long as there are any outstanding async rules, so that part is typically handled through binding as well.

Copyright (c) Marimer LLC