Filed under: Silverlight

Retrieving all the Methods in a Service

Well, today i was in a real fix. I was asked to work out a manner by which i show all the methods of a service in a combo-box. Now, people told me to ideally have a look at the proxy and type out the method names as they were and then create a static list of strings which i could then bind to the combo-box. WOW!! So simple ain't it?!? "And what if the list of methods were to change", i asked. The reply came, well, you can guess what the reply was.

Read the rest of this post »

Calling Async Service Calls Iteratively in Silverlight

Well, i was posed with a rather strange situation today when i had to make Async Svc Calls from a Silverlight UI code. The issue was that i had to call a single service method in an iterative fashion, ideally in a loop. But the problem was that i was doing a lot of processing in the completed event handlers and the order of the processing was making a difference to my UI.

Read the rest of this post »

Vertical Scrollbar Visibility

So, this is something very basic i learned today. The scrollbar in silverlight appears only when the length of the container is predefined and not depended on its parent container. For example, if you set the grid row height in which you have placed you textbox to "AUTO", you will never be able to see/activate the scrollbar. Simply because the textbox assumes that you have set the parent grid in a manner that will keep the size in check. Instead of activating the Scrollbar in the container, in this case the text box, it will simply stretch the textbox beyond the parent container boundary.

Read the rest of this post »

Silverlight for Dummies: StackPanel

This is going to be an absolute short post. I plan to couple this with the post on Grid to talk about something a little more complicated, however that would be in the next post, which hopefully will come tomorrow, depending upon how heavy my day. So the stack panel is another nice control which allows you to group controls and map them. However, this does not give you complete control over things as a Grid does. A stack panel is also essentially a container of a basic nature, which can Stack controls horizontally or vertically. Here is a little bit of an overview of the whole syntax: <StackPanel> Children </StackPanel>

Read the rest of this post »

Silverlight Grid for Dummies

Being a UI designer is not enough. You should be able to render those designs somewhere. Well, i have started my journey as a UI developer and designer in the world of Silverlight. It is a fantastic framework of tools and technology. The best part being that it uses common languages like XML and C#. Well anyhow, i have been working with it for a little over two months now and i have finally recognized its most important control, the <Grid />.So i am going to give a bit of a Silverlight <Grid/> for Dummies.

Read the rest of this post »