Set line Stroke and StrokeThickness : Line « Windows Presentation Foundation « VB.Net Tutorial

Home
VB.Net Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statements
5.Date Time
6.Class Module
7.Development
8.Collections
9.Generics
10.Attributes
11.Event
12.LINQ
13.Stream File
14.GUI
15.GUI Applications
16.Windows Presentation Foundation
17.2D Graphics
18.I18N Internationlization
19.Reflection
20.Regular Expressions
21.Security
22.Socket Network
23.Thread
24.Windows
25.XML
26.Database ADO.net
27.Design Patterns
VB.Net
VB.Net by API
VB.Net Tutorial » Windows Presentation Foundation » Line 
16.65.4.Set line Stroke and StrokeThickness
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="250" Width="500">
    <StackPanel Orientation="Horizontal">
        <StackPanel Margin="5">
            <TextBlock FontSize="14" Text="Lines in a StackPanel:"/>
            <Line X1="2.5cm" Y1="-1.25cm" X2="3.5cm" Y2="1.5cm" Stroke="Black" StrokeThickness=".1cm"/>
        </StackPanel>
    </StackPanel>
</Window>
WPF Set Line Stroke And Stroke Thickness
16.65.Line
16.65.1.Line position and color and thicknessLine position and color and thickness
16.65.2.Draw a LineDraw a Line
16.65.3.Add Line to StackPanelAdd Line to StackPanel
16.65.4.Set line Stroke and StrokeThicknessSet line Stroke and StrokeThickness
16.65.5.Add Line and TextBlock to CanvasAdd Line and TextBlock to Canvas
16.65.6.Set Line Along Canvas Top and LeftSet Line Along Canvas Top and Left
16.65.7.Draws a diagonal line from (10,10) to (40,50)Draws a diagonal line from (10,10) to (40,50)
16.65.8.Two Lines in a StackPanelTwo Lines in a StackPanel
16.65.9.Create a simple line using the LineSegment and PathGeometryCreate a simple line using the LineSegment and PathGeometry
16.65.10.Creates a blue line from point (30, 30) to point (180, 30):Creates a blue line from point (30, 30) to point (180, 30):
16.65.11.Creating LinesCreating Lines
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.