GeometryDrawing.Pen : Geometry « Windows Presentation Foundation « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net » Windows Presentation Foundation » GeometryScreenshots 
GeometryDrawing.Pen
GeometryDrawing.Pen
       

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Rectangle Width="80" Height="30">
          <Rectangle.Fill>
            <DrawingBrush>
              <DrawingBrush.Drawing>
                <DrawingGroup>
                  <DrawingGroup.Children>
                    <GeometryDrawing>
                      <GeometryDrawing.Pen>
                        <Pen Thickness="0.02">
                          <Pen.Brush>
                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                              <GradientStop Color="Black" Offset="0" />
                              <GradientStop Color="LightGray" Offset="1" />
                            </LinearGradientBrush>
                          </Pen.Brush>
                        </Pen>
                      </GeometryDrawing.Pen>
                      <GeometryDrawing.Geometry>
                        <RectangleGeometry RadiusX="0.2" RadiusY="0.5" Rect="0.02,0.02,0.96,0.96" />
                      </GeometryDrawing.Geometry>
                    </GeometryDrawing>
        
                  </DrawingGroup.Children>
                </DrawingGroup>
              </DrawingBrush.Drawing>
            </DrawingBrush>
          </Rectangle.Fill>
        </Rectangle>
</Page>

   
    
    
    
    
    
    
  
Related examples in the same category
1.GeometryCombineMode = UnionGeometryCombineMode = Union
2.GeometryCombineMode = IntersectGeometryCombineMode = Intersect
3.GeometryCombineMode = XorGeometryCombineMode = Xor
4.GeometryCombineMode = ExcludeGeometryCombineMode = Exclude
5.Combine two circles into one shape using CombinedGeometry: UnionCombine two circles into one shape using CombinedGeometry: Union
6.Combine two circles into one shape using CombinedGeometry: XorCombine two circles into one shape using CombinedGeometry: Xor
7.Combine two circles into one shape using CombinedGeometry: IntersectCombine two circles into one shape using CombinedGeometry: Intersect
8.Combine two circles into one shape using CombinedGeometry: ExcludeCombine two circles into one shape using CombinedGeometry: Exclude
9.Combine GeometryCombine Geometry
10.LineGeometry for PathLineGeometry for Path
11.EllipseGeometry for PathEllipseGeometry for Path
12.BezierSegment for a PathBezierSegment for a Path
13.Put EllipseGeometry to GeometryGroupPut EllipseGeometry to GeometryGroup
14.Put RectangleGeometry to GeometryGroupPut RectangleGeometry to GeometryGroup
15.Path based on GeometryGroup ResourcePath based on GeometryGroup Resource
16.GeometryDrawing.BrushGeometryDrawing.Brush
17.GeometryDrawing with 2 PathFiguresGeometryDrawing with 2 PathFigures
18.GeometryGroup and DrawingImageGeometryGroup and DrawingImage
19.GeometryDrawing insize a DrawingGroupGeometryDrawing insize a DrawingGroup
20.Use the StreamGeometry mini-language to create polylineUse the StreamGeometry mini-language to create polyline
21.Create a PathGeometry using the PathFigureCollection mini-language.Create a PathGeometry using the PathFigureCollection mini-language.
22.PolyLineSegment creates a series of straight lines.PolyLineSegment creates a series of straight lines.
23.LineGeometry vs LineLineGeometry vs Line
24.RectangleGeometry vs RectangleRectangleGeometry vs Rectangle
25.EllipseGeometry vs Ellipse
26.Combine geometries is to use the GeometryGroup objectCombine geometries is to use the GeometryGroup object
27.Geometry GroupGeometry Group
28.GeometryDrawing Pen and GeometryGeometryDrawing Pen and Geometry
29.CombinedGeometry GeometryCombineMode="Union"CombinedGeometry GeometryCombineMode=
30.Reusing GeometryReusing Geometry
31.Converting text to geometryConverting text to geometry
32.Use a PathGeometry object to highlight displayed text.Use a PathGeometry object to highlight displayed text.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.