Bugs and suggestions for the control

Coordinator
Nov 15, 2009 at 1:57 PM

Please feel free to post any issues and/or suggestions you have for the zoom control.

Aug 5, 2010 at 4:50 AM
Edited Aug 5, 2010 at 5:33 AM

hi..

Please give me basic steps to use this control in Xaml or Xaml.cs

As i am getting error when using the following code in xaml

 <Grid x:Name="LayoutRoot" Height="600" Width="900">      
        <local:ZoomControl></local:ZoomControl>              
    </Grid>

Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

 

 

Dec 8, 2010 at 4:15 PM

Hey dude,

try something like this:

<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:CZ_Controls="clr-namespace:CZ.Controls;assembly=CZ.Controls.ZoomControl"
    x:Class="ImagemZoomCodePlex.MainPage"
    Width="640" Height="480">
    <UserControl.Resources>
    <DataTemplate x:Key="Template">
            <Grid>
                <Image Source="/181725571.jpg" Stretch="Fill" VerticalAlignment="Top"/>
            </Grid>
    </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <CZ_Controls:ZoomControl x:Name="zoomControl" InitialZoom="1" MaxZoom="100" MinZoom="1" ZoomStep="1" ZoomEnabled="True" Content="{Binding Collection[0]}" ContentTemplate="{StaticResource Template}" Height="100"  Width="100" VerticalAlignment="Center"/>
    </Grid>
</UserControl>

Feb 6, 2012 at 6:54 AM

Thank you, eduardofleck.

 

Your example worked perfectly. Thanks.