DesignerControl.xaml
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:1k
源码类别:

SilverLight

开发平台:

C#

  1. <UserControl x:Class="wxwinter.WFDesignerSl.DesignerControl"
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  4.     Background="Red" Height="600" Width="800"
  5.  
  6.    >
  7.     <ScrollViewer  ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Visible" >
  8.         <Canvas Name="myDesigner"  Height="600" Width="800" Background="White"  MouseLeftButtonUp="Canvas_MouseLeftButtonUp"  >
  9.             <Canvas.RenderTransform>
  10.                 <TransformGroup>
  11.                     <ScaleTransform x:Name="scaleTransform" ScaleX="1" ScaleY="1"/>
  12.                 </TransformGroup>
  13.             </Canvas.RenderTransform>
  14.         </Canvas>
  15.     </ScrollViewer>
  16. </UserControl>