Slow and steady Silverlight (47)

Source: Internet
Author: User
Tags xmlns silverlight

Steady Silverlight ($)-4.0UI operation of the Clipboard, implicit style, compositetransform, drag and drop external files into the program

Introduced

Silverlight 4.0 user interface (UI) Related:

* Operational Clipboard-supports getting or setting text information in the Clipboard

* Implicit style-Applies a style to all elements of a type, that is, the global style

* Compositetransform-Combine a variety of conversion methods

* Drag (Drag) the external file and place it in the (Drop) Silverlight program

Online Demo

Http://www.cnblogs.com/webabcd/archive/2010/08/09/1795417.html

Example

1. Show how to operate the shearing board

Clipboard.xaml

Code

<navigation:page x:class= "Silverlight40.UI.Clipboard"
Xmlns= "Http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x= "Http://schemas.microsoft.com/winfx/2006/xaml"
Xmlns:d= "http://schemas.microsoft.com/expression/blend/2008"
Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:navigation= "Clr-namespace:system.windows.controls;assembly=system.windows.controls.navigation"
title= "Clipboard Page" >
<grid x:name= "LayoutRoot" >
<stackpanel horizontalalignment= "Left" >

<textbox name= "txtmsg" width= "height=" "margin=" 5 "/>"
<!--copy text in Txtmsg-->
<button name= "btncopy" content= "Copy" margin= "5" click= "Btncopy_click"/>
<!--paste the text from the Clipboard into the txtmsg-->
<button name= "Btnpaste" content= "Paste" margin= "5" click= "Btnpaste_click"/>
</StackPanel>
</Grid>
</navigation:Page>

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.