Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

ScrollViewer in WPF

Article:
Viewed:  1347 
Posted On:  23/09/2012 05:20:55 
n this article I am explaining how to create ScrollViewer in WPF. 

In this article I am going to explain how we can use ScrollViewer in WPFIn the below example I am using a Image inside a ScrollViewer control.

This is my XAML code..

<Window x:Class="ScrollBarInWPF.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="500" Width="500">
    <Grid>
        <Label Name="lblRed"></Label>
        <ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible">
            <Image Source="007.jpg" Width="1100" Height="1100"></Image>
        </ScrollViewer>
    </Grid>
</Window> 

When I run my application..

Scroll1.png

Figure 1.

Scroll2.png

Figure 2.

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us