Zoom In and Zoom out
Zoom In and Zoom out On mouse wheel move in silverlight
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DeivaMurugan DPosted May 12, 2010, 9:14 AM
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"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
Title="ZoomIn Page">
XAML.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
namespace BillingFinance
{
public partial class ZoomIn : Page
{
public ZoomIn()
{
InitializeComponent();
}
// Executes when the user navigates to this page.
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
private void ZoomIn_Click(object sender, RoutedEventArgs e)
{
storyboard.Begin();
}
private void ZoomOut_Click(object sender, RoutedEventArgs e)
{
storyboard.Stop();
}
private void Image_MouseWheel(object sender, MouseWheelEventArgs e)
{
storyboard.Begin();
}
}
}
Lalit MPosted Mar 12, 2010, 4:36 AM