<Window x:Class="WpfGraphZoom.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfGraphZoom"
        mc:Ignorable="d"
        Title="WpfGraphZoom"
   Height="300" Width="480" Loaded="Window_Loaded">
    <Grid Background="LightGreen">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Label Name="zoomLabel" Content="100%"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Grid.Row="0" Grid.Column="0"/>
        <Slider Name="zoomSlider" Orientation="Vertical"
            ValueChanged="zoomSlider_ValueChanged"
            HorizontalAlignment="Center"
            Margin="0,0,0,5"
            Grid.Row="1" Grid.Column="0"
            Minimum="25" Maximum="200" Value="100"
            SmallChange="25" LargeChange="25"
            TickFrequency="25" TickPlacement="BottomRight"
            IsSnapToTickEnabled="True"/>

        <ScrollViewer Name="scvGraph"
            Grid.Row="0" Grid.Column="1" Grid.RowSpan="2"
            HorizontalScrollBarVisibility="Auto"
            VerticalScrollBarVisibility="Auto">
            <Canvas Name="graphCanvas" Background="White"
                Width="400" Height="250"
                VerticalAlignment="Center"
                HorizontalAlignment="Center"/>
        </ScrollViewer>
    </Grid>
</Window>