WEB开发网
开发学院图形图像Flash 使用silverlight构建一个图形化流程设计器(二) 阅读

使用silverlight构建一个图形化流程设计器(二)

 2009-04-25 12:05:15 来源:WEB开发网   
核心提示: 1<UserControl x:Class="Shareidea.Web.UI.Control.Workflow.Designer.Activity"2 xmlns="http://schemas.microsoft.com/winfx/2006/xam

 1<UserControl x:Class="Shareidea.Web.UI.Control.Workflow.Designer.Activity"
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4             MouseLeftButtonDown="UserControl_MouseLeftButtonDown"
 5             MouseLeftButtonUp="UserControl_MouseLeftButtonUp"
 6             MouseMove="UserControl_MouseMove"
 7             MouseEnter="UserControl_MouseEnter" 
 8             MouseLeave="UserControl_MouseLeave"
 9             Width="100" Height="60" >
10    <Canvas Name="container"    >
11        <Rectangle  HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" Fill="Green" />
12        <Border  CornerRadius="10"   Background="Green" Opacity="0.9" Width="100" Height="60" >
13            <TextBox Name="Title" Text="新建活动" BorderBrush="Green" FontSize="12"  Background="Green"
14                     Height="30"   Width="60" MouseEnter="TextBox_MouseEnter" ></TextBox>
15        </Border>
16        <HyperlinkButton Canvas.ZIndex="10000"  Padding="10 5 5 5" MouseLeave="HyperlinkButton_MouseLeave"  Foreground="Red"     Width="65" Height="25"  Canvas.Top="50" Canvas.Left="100" Background="Yellow" Name="btnDelete"  Click="HyperlinkButton_Click"  ClickMode="Release" Content="删除活动"     ></HyperlinkButton>
17   </Canvas>
18</UserControl>
19

上一页  1 2 3 4 5  下一页

Tags:使用 silverlight 构建

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接