Monday, March 12, 2012

Microsoft CRM 2011 Silverlight: Busy Indicator Style

I was working for Microsoft CRM 2011 for more than 1 year and I like the web resource specially Silver light 4 which can used as web resource in Microsoft CRM 2011. I have really like the GUI of the Microsoft CRM 2011 and especially the control which I have design for this post " Busy Indicator". I have design the style of the Busy Indicator like the busy bar of the Microsoft CRM 2011, You can see the output in the Image 1 as shown.



 Image 1

List 1

I have created two similar type of busy indicator style and both are applied on the busy indicator control.First one is the default style which I have set and second one is the named style which you can refer by using name of the style. I have posted code for applying the style to busy indicator control as shown in List 1, Here you can see that I haven't apply any style to the first busy indicator control but for the second busy indicator control I have use the name BusyIndicatorStyle1, as there should be only one default style for one control.
You can also see in the XAML code that I have used grid layout with 2 rows of 50% 50% height and place busy indicator control in each row of the grid layout.You can download the source code of the sample from here.
You can view online sample here.
All and any comments / bugs / suggestions are welcomed!

2 comments:

Anonymous said...

it looks great but to use it I would have to reference couple blend dlls.
If I am not mistaken, this would increase my xap filesize.

Asim Sajjad said...

@Anonymous: I have modified the style of the second busy indicator of my source code.Here you can see that I have started animation on load of the grid layout. You can see that I have used the RoutedEvent for the grid layout and used the loaded event of the grid layout. By using this you can remove the above two reference from your project. You can download it from here