一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

穩(wěn)扎穩(wěn)打Silverlight(1) - 1.0實(shí)例之電子表

系列文章導(dǎo)航:

穩(wěn)扎穩(wěn)打Silverlight(1) - 1.0實(shí)例之電子

穩(wěn)扎穩(wěn)打Silverlight(2) - 1.0實(shí)例之支持錄音和回放的鋼琴(Silverlight+ASP.NET AJAX+DLINQ)

穩(wěn)扎穩(wěn)打Silverlight(3) - 2.0控件之Border, Button, Calendar, Canvas, CheckBox, ComboBox


介紹
用Silverlight 1.0實(shí)現(xiàn)一個(gè)基于客戶端系統(tǒng)時(shí)間的電子表。
參考:http://silverlight.NET/community/communitygallery.ASPx

示例
Clock.xaml(用Expression Blend開發(fā))

<Canvas
    
xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml"
    Width
="180" Height="150"
    Background
="#0030628D"
    x:Name
="Page" Loaded="enableClock"
    
>
    
<Rectangle x:Name="Frame" Width="180" Height="150" Stroke="#FF000000"
StrokeThickness
="1" RadiusX="20" RadiusY="15">
        
<Rectangle.Fill>
            
<LinearGradientBrush EndPoint="0.5,1.1" StartPoint="0.5,-0.1">
                
<GradientStop Color="#FF259888" Offset="0"/>
                
<GradientStop Color="#FF259888" Offset="0.981"/>
                
<GradientStop Color="#FFC87947" Offset="0.416"/>
                
<GradientStop Color="#FFC87947" Offset="0.636"/>
            
</LinearGradientBrush>
        
</Rectangle.Fill>
    
</Rectangle>
    
<Rectangle x:Name="Panel" Width="164" Height="134" Fill="#7F91B52C" Stroke="#FFA2AEBF"
 RadiusX
="50" RadiusY="15" Canvas.Left="8" Canvas.Top="8" StrokeThickness="2"/>

    
<Path x:Name="Line1" Width="163" Height="1" Fill="#FF100888" Stretch="Fill"
Stroke
="#FF1B510C" Canvas.Left="8" Canvas.Top="92"
Data
="M33.50029,83.29705 L161.89657,83.297051"/>
    
<Path x:Name="Line2" Width="1" Height="49" Fill="#FF100888" Stretch="Fill"
Stroke
="#FF1B510C" Canvas.Left="63" Canvas.Top="92"
Data
="M81.450752,138.29705 L81.450752,90.29705"/>
    
<Path x:Name="Line3" Width="1" Height="49" Fill="#FF100888" Stretch="Fill"
Stroke
="#FF1B510C" Canvas.Left="119" Canvas.Top="92"
Data
="M118.30501,164.29698 L118.30501,116.29699"/>
    
<TextBlock x:Name="Month" Width="16" Height="19" Canvas.Left="32.5" Canvas.Top="92"
TextWrapping
="Wrap" Foreground="#FF100888" Text="M"/>
    
<TextBlock Width="16" Height="19" Canvas.Left="87" Canvas.Top="92" TextWrapping="Wrap"
x:Name
="Day" Foreground="#FF100888" Text="D"/>
    
<TextBlock Width="16" Height="19" Canvas.Left="136" Canvas.Top="92" TextWrapping="Wrap"
x:Name
="Week" Foreground="#FF100888" Text="W"/>

    
<TextBlock x:Name="txtMonth" Width="19" Height="19" Canvas.Left="29" Canvas.Top="111"
TextWrapping
="Wrap" Foreground="#FF100888" Text="12"/>
    
<TextBlock x:Name="txtDay" Width="20.5" Height="19" Canvas.Left="83.5" Canvas.Top="111"
TextWrapping
="Wrap" Foreground="#FF100888" Text="31"/>
    
<TextBlock x:Name="txtWeek" Width="32.5" Height="19" Canvas.Left="130" Canvas.Top="111"
TextWrapping
="Wrap" Foreground="#FF100888" Text="Sun"/>

    
<TextBlock x:Name="txtHour" Width="48" Height="48" Canvas.Left="14.5" Canvas.Top="38"
TextWrapping
="Wrap" FontSize="36" Foreground="#FF100888" Text="23"/>
    
<TextBlock x:Name="txtMinute" Width="48" Height="48" Canvas.Left="68.5" Canvas.Top="38"
TextWrapping
="Wrap" FontSize="36" Foreground="#FF100888" Text="59"/>
    
<TextBlock x:Name="txtSecond" Width="49" Height="48" Canvas.Left="122" Canvas.Top="38"
TextWrapping
="Wrap" FontSize="36" Foreground="#FF100888" Text="59"/>

    
<TextBlock x:Name="Colon1" Width="9.5" Height="27" Canvas.Left="62.5" Canvas.Top="48"
TextWrapping
="Wrap" Foreground="#FF100888" Text=":" FontSize="20"/>
    
<TextBlock x:Name="Colon2" Width="12" Height="27" Canvas.Left="116.5" Canvas.Top="48"
TextWrapping
="Wrap" Foreground="#FF100888" Text=":" FontSize="20"/>

    
<TextBlock x:Name="Copyright" Width="88" Height="16" Canvas.Left="16" TextWrapping="Wrap"
FontSize
="12" Canvas.Top="22" Foreground="#FF100888" Text="webabcd clock"
MouseLeftButtonDown
="MouseLeftButtonDown" MouseMove="MouseMove"
MouseLeave
="MouseLeave"/>
    
<TextBlock x:Name="FullScreen" Width="88" Height="16" Canvas.Left="106"
TextWrapping
="Wrap" FontSize="12" Canvas.Top="22" Foreground="#FF100888" Text="FullScreen"
MouseLeftButtonDown
="toggle_fullScreen" MouseMove="MouseMove" MouseLeave="MouseLeave"/>
</Canvas>

系列文章導(dǎo)航:

穩(wěn)扎穩(wěn)打Silverlight(1) - 1.0實(shí)例之電子

穩(wěn)扎穩(wěn)打Silverlight(2) - 1.0實(shí)例之支持錄音和回放的鋼琴(Silverlight+ASP.NET AJAX+DLINQ)

穩(wěn)扎穩(wěn)打Silverlight(3) - 2.0控件之Border, Button, Calendar, Canvas, CheckBox, ComboBox


Default.ASPx

 

<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile
="Default.ASPx.cs"
    Inherits
="_10_Clock_Default" Title="電子" 
%>

<ASP:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    
<script type="text/Javascript" src="../Silverlight.js"></script>

    
<script type="text/Javascript" src="Default.ASPx.js"></script>

    
<script type="text/Javascript" src="Clock.xaml.js"></script>

    
<script type="text/Javascript" src="Clock.js"></script>

    
<style type="text/css">
        .silverlightHost
        
{
            height
: 150px;
            width
: 180px;
        
}

    
</style>
</ASP:Content>
<ASP:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
<div id="SilverlightControlHost" class="silverlightHost">

        
<script type="text/Javascript">
            createSilverlight();
        
</script>

    
</div>
</ASP:Content>

NET技術(shù)穩(wěn)扎穩(wěn)打Silverlight(1) - 1.0實(shí)例之電子表,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 91麻豆国产 | 亚洲第一激情 | 日本黄色美女网站 | 国产精品资源手机在线播放 | 久久国产一区二区 | 精品国产午夜久久久久九九 | 美女一级毛片毛片在线播放 | 日本欧美一二三区色视频 | 91精品福利在线观看 | 久久538 | 久久精品大片 | 成人精品视频在线观看 | 欧美成人免费sss | 久久久精品2018免费观看 | 亚洲激情图片 | 99视频国产精品 | 亚洲综合自拍 | 99国产成人高清在线视频 | 国产精品高清全国免费观看 | 国产精品日本不卡一区二区 | 久久麻豆亚洲精品 | 日韩精品一区二区三区中文 | 美女久久精品 | 国产精品资源手机在线播放 | 99视频这里有精品 | 中文国产成人精品少久久 | www爱射网站avcom | 2019天天操天天干天天透 | 免费看的黄网站 | 亚洲大片免费观看 | 在线成人综合色一区 | 国产亚洲综合精品一区二区三区 | 国产精品日韩欧美一区二区三区 | 东日韩二三区 | 99国产国人青青视频在线观看 | 伊人久久精品久久亚洲一区 | 巨胸喷奶水www久久久免费观看 | 91麻豆精品激情在线观看最新 | 成年香蕉大黄美女美女 | 色一情一区二区三区四区 | 国产高清视频一区二区 |