Slow-moving Silverlight-2.0tip/trick cookies, custom fonts, pass parameters for the program, customize the right mouse button, program commonly used configuration parameters
Introduced
Silverlight 2.0 Tips and Tricks series
Cookies-manipulating cookies via JavaScript
Custom fonts-Use custom fonts in your programs
Passing parameters for programs-passing initialization parameters for Silverlight programs
Customizing the right mouse button-responding to and handling a custom right mouse button event
Frequently used configuration parameters for programs-common parameters for object tags, and common properties for corresponding Silverlight controls
Online Demo
Http://www.cnblogs.com/webabcd/archive/2008/10/09/1307486.html
Example
1, the operation of the Cookie demo
Cookie.xaml
<usercontrol x:class= "Silverlight20.Tip.Cookie"
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml" >
<stackpanel horizontalalignment= "left" margin= "5" >
<stackpanel orientation= "Horizontal" margin= "5" >
<textblock text= "Cookie-key:"/>
<textbox x:name= "Txtkey"/>
</StackPanel>
<stackpanel orientation= "Horizontal" margin= "5" >
<textblock text= "Cookie-value:"/>
<textbox x:name= "TxtValue"/>
</StackPanel>
<stackpanel orientation= "Horizontal" margin= "5" >
<button x:name= "Btnsetcookie" content= "Set Cookies" click= "Btnsetcookie_click"/>
<button x:name= "Btngetcookie" content= "Get Cookie" click= "Btngetcookie_click"/>
<button x:name= "Btndeletecookie" content= "Clear Cookies" click= "Btndeletecookie_click"/>
</StackPanel>
<textbox x:name= "Txtresult" margin= "5"/>
</StackPanel>
</UserControl>