Thursday, May 27, 2010

SilverDudde Fluid Demo

Checkout my latest silverlight showcase demo using FluidMoveBehaviour in Silverlight 4.



Feel free to navigate to www.silverlight.net/showcase to see the demo. Its under Geography : Malaysia

Friday, May 21, 2010

SilverDude Toolkit for Silverlight

SilverDude 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.

Main Project Page or go here http://silverdudetoolkitsl.codeplex.com/

Source Code



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()

Usage

XAML
 


C#
 void MyAsynchronousCall()
{
wait.Start();
/* Do somethig here to make async call */
}

void MyCompletedAsynchronousCall()
{
wait.Stop();
/* Do something here to process the result data */
}

Live Demo WaitIndicator


2. GlowButton



Glow Button features a new and unique mouse over effect

Properties : GlowText, GlowTextColor, GlowColor
Event(s) : Click

Usage

XAML



C#
public MainPage()
{
InitializeComponent();
glowbtn.Click += new SL.SilverDude.Toolkit.GlowButton.ClickHandler(glowbtn_Clicked);
}

private void glowbtn_Clicked()
{
/* Do something here */
}

Live Demo GlowButton


3. PagingPanel



Paging panel is used to allow user to navigate item in with paging feature.

Properties : PagingTextColor, PagingButtonColor
Methods : InitPaging()

Usage

XAML
 





C#
for (int i = 0; i < content = "Hello" controltovalidate =" sp;" itemperpage =" 5;">
Live Demo PagingPanel


4. SlidingPanel



Sliding Panel is used to allow user to navigate item in an interactive manner.

Properties : SlidingButtonColor
Methods : InitSliding()

Usage

XAML


C#
for (int i = 0; i < width =" 150," height =" 225">
Live Demo SlidingPanel


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

Usage

Normal SmartTextBox
XAML
 


PasswordBox SmartTextBox
XAML
 


Search Enable SmartTextBox
XAML
 

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 */
}

LIve Demo SmartTextBox


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

Usage

XAML


There a a few options for PopupMessageType :
OK, YesNo, YesCancel, OkCancel, Refresh

There a a few options for PopupMessageIcon :
Exclamation, Information, Question, Error, Success, None

C#
popupmsg.Show("Hello Murad");


Live Demo PopupMessageBox

Wednesday, May 5, 2010

Microsoft releases Silverlight-powered Windows Intune beta

Microsoft recently released a beta of Windows Intune, a Silverlight powered Web console for midsize businesses to manage their PCs.

Windows Intune simplifies how businesses manage and secure PCs using Windows cloud services and Windows 7 in order to make computers and users operate at peak performance, from virtually anywhere. Windows Intune is a comprehensive solution that includes PC management, malware protection, Windows upgrades, and more. Customers can use the Windows Intune cloud service beta to:
  • Manage updates
  • Protect PCs from malware
  • Proactively monitor PCs
  • Provide remote assistance
  • Track hardware & software inventory
  • Set security policies
You can read more about Windows Intune here: http://www.microsoft.com/online/windows-intune.mspx


source : http://bit.ly/cWXGrg

Monday, March 29, 2010

Silverlight 4 RC - WCF RIA Services Toolkit

If you read above you’ll know that installing the Silverlight 4 Tools for Visual Studio also automatically installs the WCF RIA Services framework for you. This release the RIA Services team also has a toolkit of their own. After installing the RIA Services Toolkit you’ll get:

  • LinqToSql DomainService
  • SOAP endpoint – enabling exposing a SOAP endpoint for your DomainService
  • JSON endpoint – enabling exposing a JSON endpoint for your DomainService
  • ASP.NET DomainDataSource – enabling your ASP.NET application to talk to your DomainService

This is a separate install that you must complete. For more details on this toolkit, visit Deepesh’s blog.

If you aren’t familiar with WCF RIA Services, you can view an introductory video here.


Source : http://timheuer.com/blog/archive/2010/03/15/whats-new-in-silverlight-4-rc-mix10.aspx

Silverlight 4 RC - SLLauncher silent installs

One of the features we added in this release was using the sllauncher.exe (which is the program that assists in out-of-browser applications) to provide silent install capabilities for your applications. The primary scenario here would be something like CD-based installation situations. Using a command like this:

   1: "%ProgramFiles%\Microsoft Silverlight\sllauncher.exe"  
   2:     /install:"D:\deploy\demoapp.xap"  
   3:     /origin:"http://foocompany.com/apps/ClientBin/demoapp.xap"  
   4:     /shortcut:desktop+startmenu  
   5:     /overwrite 

would enable you to deploy an application in this type of a situation. Setting the origin flag here enables the application to determine where it would get future updates from if CheckAndDownloadUpdateAsync methods are called within the application.


Source : http://timheuer.com/blog/archive/2010/03/15/whats-new-in-silverlight-4-rc-mix10.aspx

Silverlight 4 RC - Pinned full-screen mode

Are you a developer with multiple monitor setup? I’m jealous. If you’ve used silverlight you’ve no doubt run into a situation where you’ve put something in full-screen on one monitor and anticipated being able to work on other stuff in the other monitor. Maybe you’re watching a Netflix movie while working? You’ve likely experienced the issue that the full-screen mode goes back to regular when activity occurs in the second monitor.

We’ve changed that to enable the developer to prompt for permission to 'pin’ the Silverlight application to the monitor. This will prompt the consent dialog option (with preference remembering) to get the user’s permission. The code is extremely simple:

   1: App.Current.Host.Content.FullScreenOptions = System.Windows.Interop.FullScreenOptions.StaysFullScreenWhenUnfocused;

Once that is implemented, the full-screen application will remain pinned until the user hits ESC key or until you change the IsFullScreen mode in the code for them.

You can view a video on using the full-screen pinning mode here.


Source : http://timheuer.com/blog/archive/2010/03/15/whats-new-in-silverlight-4-rc-mix10.aspx

Silverlight 4 RC - XAP Signing for trusted applications

We think trusted applications (or elevated privileges applications) will be a widely used feature for this release. We changed the install prompt dialog for trusted applications. These are different dialogs than the typical out-of-browser install prompt as we need the user to have more information provided about them. One key feature of a trusted application is the ability to code-sign the XAP file. Here’s a trusted application install prompt from an un-signed application:

Windows:

Unsigned trusted  application on Windows

Mac OSX:

Unsigned trusted  application on OSX

And here is one from a code-signed one:

Windows:

Signed trusted  application on Windows

Mac OSX:

Signed trusted  application on OSX

Which would you feel more comfortable installing? Notice that in signed applications your custom icon will show as well (even if you have the icon settings set up, if the app is unsigned they will not show). The process of code signing is very simple and although I expect the tooling for Silverlight to improve on this, it is as simple as adding a post-build event task (or a task for automated builds) that uses the signtool.exe (installed with Visual Studio) to sign the XAP. Here’s my post-build event task:

   1: "%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\signtool.exe" sign /v 
   2:     /f c:\users\timheuer\documents\authenticode\timheuer.pfx 
   3:     /p "MYPASSWORD" 
   4:     /t TIMESTAMP_URI_FROM_PROVIDER $(TargetName).xap

The PFX file is an exported certificate with my private key and password protected. You can acquire code-signing certificates (normal Authenticode ones) from providers. We were thankful to get assistance in testing this feature from the following providers who can provide you code-signing certificates for your organization:

All of the above provide Authenticode code-signing certificates and are trusted certificate authorities (CA) on Windows. A trusted CA means that their root certificates are already a part of Windows verification. The process of obtaining one is not instant so plan ahead. There is a specific organizational verification process that occurs which may require documentation of proof of the organization and a few phone calls. Once you have these certificates you will be on your way to providing even more trusted applications to your users.

NOTE: Thawte code-signing certificate requests should be made from a Windows XP machine as their current process does not support Windows Vista or Windows 7. If you use Vista/7 you will not be able to export to a PFX file for automated build or to have your certificate stored on other machines. Read each instructions carefully.

You can also sign your XAP using self-signed certificates. If you do so, it is likely that you are not a trusted CA on machines and would have to instruct your users further. In my opinion, it is better to acquire a trusted CA cert for external applications. Take a look at Jeff Wilcox’s epic post on Code Signing 101.

A special note on trusted applications…please read! If you want to take advantage of using the update features of Silverlight for your application (aka CheckAndDownloadUpdateAsync), then your application must be signed. If you do not sign your XAP for a trusted application it cannot auto-update. Self-signed works here to, but don’t get your application in a state where it cannot be updated automatically!

You can view a video walk-through of XAP signing here.


Source : http://timheuer.com/blog/archive/2010/03/15/whats-new-in-silverlight-4-rc-mix10.aspx