Let’s do some drag & drop of Items between listboxes. The same thing could be used for rearranging items in a control(say listbox).
we can even show what item is getting dragged around
you can see a demo here
(Note: updated code if you drag and drop between listboxes it should be fine. Error checking is not there, [...]
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 »
Here is a basic implementation of TabControl in Silverlight. it shows 2 ways you could add items to the control.
see a demo
you can download the sample here
Read Full Post »