Use ScrollBar to Control the Size of an Ellipse : ScrollBar « 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 » ScrollBar 
16.18.1.Use ScrollBar to Control the Size of an Ellipse
<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="UseScrollBar" Height="300" Width="300">
    <Canvas>
        <ScrollBar Name="sbrEllipseWidth" Margin="20,0,0,0" Width="100" Height="20"
            HorizontalAlignment="Left" VerticalAlignment="Top"
            Orientation="Horizontal" Value="50" Minimum="10" Maximum="150" />
        <ScrollBar Name="sbrEllipseHeight" Margin="0,20,0,0" Width="20" Height="100"
            HorizontalAlignment="Left" VerticalAlignment="Top"
            Orientation="Vertical" Value="20" Minimum="10" Maximum="150" />
        <Ellipse Fill="Blue" HorizontalAlignment="Left"
            Margin="20,20,0,0" 
            Height="{Binding ElementName=sbrEllipseHeight,Path=Value}" 
            Width="{Binding ElementName=sbrEllipseWidth,Path=Value}"/>
        <Label Canvas.Left="139" Canvas.Top="0" Content="{Binding ElementName=sbrEllipseWidth, Path=Value}" Height="29" Name="lblWidth" Width="66" />
        <Label Canvas.Left="0" Canvas.Top="139" Content="{Binding ElementName=sbrEllipseHeight, Path=Value}" Height="29" Name="lblHeight" Width="59" />
    </Canvas>
</Window>
WPF Use Scroll Bar To Control The Size Of An Ellipse
16.18.ScrollBar
16.18.1.Use ScrollBar to Control the Size of an EllipseUse ScrollBar to Control the Size of an Ellipse
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.