A couple of posts back we saw how to create a simple yet functional expander control. this sample shows how to use one of those in listbox. we will replace the listboxitem template with our expander control.
see a demo
source is available here
Read Full Post »
Posted in Silverlight on March 29, 2008 | No Comments »
Some source code links were pointing to wrong locations. Updated the links
Read Full Post »
Here is sample implementation of ComboBox in silverlight. it has the basic functionality. Ideally a Popup Control should be used in the controltemplate of the combobox. For some reason, it was not working when ItemsPresenter is added to Popup, will look into it
you can download the source here
Read Full Post »
I was trying to do something like ‘Accordion’ in silverlight, but ran into issues with animating the height. I had set the ‘To ‘ value for the double animation(s) in code and still have to figure out why the rotate transform is not rotating at the center
Here is the sample updated to beta 2
Here is [...]
Read Full Post »
Communication between silverlight and javascript seems to be simple
To call a Javascript function from codebehind
HtmlPage.Window.CreateInstance(”FunctionName”
;
or
//if the function has parameters
HtmlPage.Window.CreateInstance(”FunctionName”, “param1″, “param2″
;
to call a method in codebehind from javascript
we have to decorate the method with “ScriptableMember”
[ScriptableMember()]
public string GetString()
{
return “this is a test”;
}
and in App.xaml.cs, we have to register our page
private void Application_Startup(object sender, [...]
Read Full Post »