Add Line to StackPanel : Line « 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 Tutorial
VB.Net by API
VB.Net » Windows Presentation Foundation » LineScreenshots 
Add Line to StackPanel
Add Line to StackPanel
     

<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="10" Y1="10" X2="230" Y2="40" Stroke="Black" StrokeThickness="5"/>
        </StackPanel>
    </StackPanel>
</Window>

   
    
    
    
    
  
Related examples in the same category
1.Line position and color and thicknessLine position and color and thickness
2.Draw a LineDraw a Line
3.Set line Stroke and StrokeThicknessSet line Stroke and StrokeThickness
4.Add Line and TextBlock to CanvasAdd Line and TextBlock to Canvas
5.Set Line Along Canvas Top and LeftSet Line Along Canvas Top and Left
6.Draws a diagonal line from (10,10) to (40,50)Draws a diagonal line from (10,10) to (40,50)
7.Two Lines in a StackPanelTwo Lines in a StackPanel
8.Create a simple line using the LineSegment and PathGeometryCreate a simple line using the LineSegment and PathGeometry
9.Creates a blue line from point (30, 30) to point (180, 30):Creates a blue line from point (30, 30) to point (180, 30):
10.Creating LinesCreating Lines
w___ww.___ja___v___a_2_s.__c___o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.