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
 
 
Determining fill areas when FillRule is Nonzero
Author : Visual Essentials   Version : Silverlight 2
 
 

Every Polygon and Polyline includes a FillRule property that lets you
choose between two different approaches for filling in regions. By default,
FillRule is set to EvenOdd. In order to decide whether to fill a region,
Silverlight counts the number of lines that must be crossed to reach the
outside of the shape. If this number is odd, the region is filled in; if it’s
even, the region isn’t filled. In the center area of example, you must cross
two lines to get out of the shape, so it’s not filled.

Silverlight also supports the Nonzero fill rule, which is a little trickier.
Essentially, with Nonzero, Silverlight follows the same line-counting
process as EvenOdd, but it takes into account the direction that each line
flows. If the number of lines going in one direction (say, left to right) is
equal to the number going in the opposite direction (right to left), the
region is not filled. If the difference between these two counts is not zero,
the region is filled. In the shape from the previous example, the interior
region is filled if you set the FillRule to Nonzero.

this example, the points are numbered in the order they are drawn, and
arrows show the direction in which each line is drawn.)

 
   
 
When We Run The Application. ทดสอบการทำงานของ VB32TestPage.html  
 
  IE TOP  
 
 
  IE BOT  
     >>> ดาวน์โหลด VB32.xap          
     
 
Source Code for Page.xaml (initial UI control) ซอร์สโค้ด ของ Page.xaml (initial UI control)
 
  XAML  
 
 
  XAML  
     
     
 
ซอร์สโค้ด ของ Page.xaml.vb (code-behind class) ซอร์สโค้ด ของ Page.xaml.vb (code-behind class)
 
  XAML  
   
     
  ภาษา C# >>>          
 
 
    © 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