<UserControl
    x:Class="Pixeval.Controls.ZoomableImage"
    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:win2d="using:Microsoft.Graphics.Canvas.UI.Xaml"
    Loaded="ZoomableImage_OnLoaded"
    mc:Ignorable="d">
    <win2d:CanvasControl
        x:Name="CanvasControl"
        Draw="CanvasControlOnDraw"
        PointerMoved="CanvasOnPointerMoved"
        PointerWheelChanged="CanvasOnPointerWheelChanged"
        SizeChanged="CanvasOnSizeChanged" />
    <!--  由于需要随时重新加载新图片，故创建资源的逻辑放在CanvasControlOnDraw的else分支中  -->
</UserControl>
