simple silverlight

test.html

//////////////////////////////////////

 

<html>
<head>
<title>test</title>
<head>
<body style="background:blue">

<object type="application/x-silverlight" id="silverlightControl"
    width
="390" height="100">
    
<param name="background" value="Yellow" />
    
<param name="source" value="test.xaml" />
</object>

<style="font-family: Tahoma; color: white">
The Folder icon is for Project menu. Using project menu, you can organize 
frequently-used documents into categories 
and load them by a single mouse click. See Project Menu for more detail about 
Project management feature. 
</p>

</body>

</body>
</html>

 

test.xaml

////////////////////////////////////////

 

<Canvas     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x
="http://schemas.microsoft.com/winfx/2006/xaml">

<TextBlock FontFamily="Georgia" Foreground="Blue" FontStyle="Italic" FontSize="40" 
    Canvas.Left
="125" Canvas.Top="20" Text="Great Estates" />

<Path Stroke="Red" StrokeThickness="4">
    
<Path.Data>
        
<PathGeometry>
            
<PathFigure StartPoint="0,65">
                
<ArcSegment SweepDirection="Clockwise" Size="2,2" Point="25,65" />
                
<ArcSegment SweepDirection="Clockwise" Size="2,2" Point="50,65" />
                
<ArcSegment SweepDirection="Clockwise" Size="2,2" Point="75,65" />
                
<ArcSegment SweepDirection="Clockwise" Size="2,2" Point="100,65" />
                
<LineSegment Point="390,65" />
            
</PathFigure>
        
</PathGeometry>
    
</Path.Data>
</Path>

</Canvas>


posted on 2009-12-30 18:22  Jack Han  阅读(197)  评论(0编辑  收藏  举报

导航