Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7877601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:25:11+00:00 2026-06-03T03:25:11+00:00

I tried to place a photo frame (image) on a picture using code <Canvas>

  • 0

I tried to place a photo frame (image) on a picture using code

<Canvas>
   <Image x:Name="picture" Source="{Binding XXX}" Canvas.ZIndex="1">
       <Image.RenderTransform>
            <TransformGroup>
                <MatrixTransform x:Name="previousTransform" />
                <TransformGroup x:Name="currentTransform">
                    <ScaleTransform x:Name="scaleTransform" />
                    <RotateTransform x:Name="rotateTransform" />
                    <TranslateTransform x:Name="translateTransform" />
                </TransformGroup>
            </TransformGroup>
       </Image.RenderTransform>

                <toolkit:GestureService.GestureListener>
                        <toolkit:GestureListener DragStarted="OnGestureListenerDragStarted" DragDelta="OnGestureListenerDragDelta" DragCompleted="OnGestureListenerDragCompleted" PinchStarted="OnGestureListenerPinchStarted" PinchDelta="OnGestureListenerPinchDelta" PinchCompleted="OnGestureListenerPinchCompleted"/>
                    </toolkit:GestureService.GestureListener>
            </Image>

   <Image x:Name="photoframe" Source="{Binding XXX}" Canvas.ZIndex="2"/>
</Canvas>

But it seems that the gestureService is no longer working if I overlap these two photoes using above code.

What I want is that placing a photo frame over a picture but no losing the gesture control (dragging or pinching the picture).

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:25:13+00:00Added an answer on June 3, 2026 at 3:25 am

    The photoframe is capturing the touch events of your image, because it is on top of your
    image. If you set the gestureservice on the photoframe, it will work again. Maybe setting
    the IsHitTestVisible of the photoframe to false will solves your problem too (I never tested it).

    Greets

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried some thing like this, <script> function sample(image){ document.write('<img src=photo/'+image+' width=200 height=200/>'); //document.open(photo/+image);
Well, i tried to place the picture on left, with float option, and no
In order to place my models in sub-folders I tried to use the app_label
I have tried working with a bit of code to decode a file from
I am trying to post an image to an album on facebook and place
I tried to place a TextBlock inside a ScrollViewer , and the scroll bar
I tried to place 4 mschart controls on the same page but it is
I was trying some examples with LayoutPanel in GWT. I tried to place a
I am looking into the Google Places Autocompleter . It works perfectly, I tried
Tried following the instructions here: How to use Google app engine with my own

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.