silverlight ASP.NET ปฐมวัย silverlight ASP.NET
silverlight ASP.NET
 
silverlight application asp.net code  XNA Game    
silverlight ASP.NET
thaisilverlight
Silverlight Controls
Border
Button
Calendar
Canvas
CheckBox
ComboBox
ContentControl
DataGrid
Ellipse
Grid
GridSplitter
Image
ListBox
MediaElement
MultiScaleImage
PasswordBox
ProgressBar
RadioButton
Rectangle
ScrollBar
ScrollViewer
Slider
StackPanel
TabControl
TextBlock
TextBox
eXTReMe Tracker
 
 
Polyline class allows you to draw a sequence.
Author : Visual Essentials   Version : Silverlight 2
 
 

Polyline

The Polyline class allows you to draw a sequence of connected straight
lines. You simply supply a list of x and y coordinates using the Points
property. Technically, the Points property requires a PointCollection
object, but you fill this collection in XAML using a lean string-based
syntax. You simply need to supply a list of points and add a space or a
comma between each coordinate.
A Polyline can have as few as two points. For example, here’s a Polyline
that duplicates the first line you saw in this section, which stretches from
(5, 100) to (15, 200):

<Polyline Stroke="Blue" Points="5 100 15 200"></Polyline>
For better readability, use commas in between each x and y coordinate:
<Polyline Stroke="Blue" Points="5,100 15,200"></Polyline>
And here’s a more complex Polyline that begins at (10, 150). The points
move steadily to the right, oscillating between higher y values such as (50,
160) and lower ones such as (70, 130):

 
   
 
When We Run The Application. ทดสอบการทำงานของ (VC31TestPage.html)  
 
  IE TOP  
 
 
  IE BOT  
    >>> ดาวน์โหลด VC31.xap          
     
 
Source Code for Page.xaml (initial UI control) ซอร์สโค้ด ของ Page.xaml (initial UI control)
 
  XAML  
 
 
  XAML  
     
     
 
Source Code for Page.xaml.cs (code-behind class) ซอร์สโค้ด ของ Page.xaml.cs (code-behind class)
 
  XAML  
   
     
  ภาษา VB >>>       
 
 
    © 2009 Silverlight Examples Asp.net All Rights Reserved.  
   This Website Develop With Visual Studio 2010 / ASP.NET 3.5 & Microsoft SQL Server 2005 Database.  
  You may contact for thaisilverlight.aspxcode.net on improvement of our website in terms of accuracy and completeness at Email: aspxcodes@gmail.com  
  Valid XHTML 1.0 Transitional