Project Description
SilverDudde Toolkit for Silverlight contains a collection of silverlight controls making life easier for developers. You'll no longer have to worry anymore because these controls will help you guys save your time. It's developed in C# for Silverlight 3.
Controls included : -
1. WaitIndicator
WaitIndicator is used while waiting a process to complete, a kind of loading progress concept.

Properties : WaitLoadingColor, WaitBackgroundColor
Methods : Start(), Stop()
UsageXAML
<toolkit:WaitIndicator x:Name="wait" ></toolkit:WaitIndicator>
C#
void MyAsynchronousCall()
{
wait.Start();
/* Do somethig here to make async call */
}
void MyCompletedAsynchronousCall()
{
wait.Stop();
/* Do something here to process the result data */
}
2. GlowButton

Glow Button features a new and unique mouse over effect
Properties : GlowText, GlowTextColor, GlowColor
Event(s) : Click
UsageXAML
<toolkit:GlowButton x:Name="glowbtn" GlowText="Murad Mohd Zain" HorizontalAlignment="Left"
GlowColor="Purple" GlowTextColor="White" Width="100" Height="25" />
C#
public MainPage()
{
InitializeComponent();
glowbtn.Click += new SL.SilverDude.Toolkit.GlowButton.ClickHandler(glowbtn_Clicked);
}
private void glowbtn_Clicked()
{
/* Do something here */
}
3. PagingPanel

Paging panel is used to allow user to navigate item in with paging feature.
Properties : PagingTextColor, PagingButtonColor
Methods : InitPaging()
UsageXAML
<ScrollViewer Height="300" Width="300">
<StackPanel x:Name="sp"></StackPanel>
</ScrollViewer>
<toolkit:PagingPanel x:Name="paging" Width="300" PagingTextColor="Black"
VerticalAlignment="Bottom" PagingButtonColor="Blue"/>
C#
for (int i = 0; i < 30; i++)
{
sp.Children.Add(new Button() { Content = "Hello" + i.ToString() });
}
paging.ControlToValidate = sp;
paging.ItemPerPage = 5;
paging.InitPaging();
4. SlidingPanel

Sliding Panel is used to allow user to navigate item in an interactive manner.
Properties : SlidingButtonColor
Methods : InitSliding()
UsageXAML
<toolkit:SlidingPanel x:Name="slid" Background="Transparent" Width="500" SlidingButtonColor="Blue"
HorizontalAlignment="Stretch"></toolkit:SlidingPanel>
C#
for (int i = 0; i < 20; i++)
{
slid.Children.Add(new Button() { Width = 150, Height = 225 });
}
slid.InitSliding();
5. SmartTextBox

SmartTextBox is a universal textbox which combines a few features like normal textbox, password textbox and
textbox with search button.
Properties : SmartText, SmartThemeColor, SearchEnabled, PasswordBox
Events : ResetClick, SearchClick
UsageNormal SmartTextBoxXAML
<toolkit:SmartTextBox x:Name="sch" SearchEnabled="False" PasswordBox="False" VerticalAlignment="Top"
Height="26" SmartThemeColor="Blue" HorizontalAlignment="Center"/>
PasswordBox SmartTextBoxXAML
<toolkit:SmartTextBox x:Name="sch" SearchEnabled="False" PasswordBox="True" VerticalAlignment="Top"
Height="26" SmartThemeColor="Blue" HorizontalAlignment="Center"/>
Search Enable SmartTextBoxXAML
<toolkit:SmartTextBox x:Name="sch" SearchEnabled="True" PasswordBox="False" VerticalAlignment="Top"
Height="26" SmartThemeColor="Blue" HorizontalAlignment="Center"/>
C#
//Need to subscribe the SearchClick event
sch.SearchClick += new SL.SilverDude.Toolkit.SmartTextBox.SearchClickHandler(sch_SearchClick);
void sch_SearchClick(string text)
{
/* Do something here */
}
6. PopupMessageBox

PopupMessageBox is used to display a popup message in your application.
Properties : PopupMessageIcon, PopupBackgroundColor, PopupMessageType, PopupButtonGlowColor
Methods : Show()
Events : OkButtonClick, YesButtonClick, NoButtonClick, CancelButtonClick, RefreshButtonClick
UsageXAML
<toolkit:PopupMessageBox x:Name="popupmsg" PopupMessageType="OK" PopupMessageIcon="Exclamation"
PopupBackgroundColor="Black" PopupButtonGlowColor="Blue" />
There a a few options for PopupMessageType :
OK, YesNo, YesCancel, OkCancel, Refresh There a a few options for PopupMessageIcon :
Exclamation, Information, Question, Error, Success, NoneC#
popupmsg.Show("Hello Murad");