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>