Slow and steady Silverlight (29)

Source: Internet
Author: User
Tags xmlns silverlight

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.