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 342583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:49:05+00:00 2026-05-12T10:49:05+00:00

Is there a way to zoom a viewbox content, excpet for one control? I

  • 0

Is there a way to zoom a viewbox content, excpet for one control?
I have a viewbox with a grid, and in this grid I have some controls and I’m trying to zoom all the controls in the viewbox except one, is it possible?

Many thanks,
Paulo

  • 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-05-12T10:49:05+00:00Added an answer on May 12, 2026 at 10:49 am

    You can use a grid to add layers to your layout. That way, you can zoom one set of items, and leave another set un-zoomed.

    <Grid>
      <Viewbox>
        <!-- Controls to zoom -->
      </Viewbox>
      <!-- Control to exclude from zoom -->
    </Grid>
    

    The order of the view box and the other controls in XAML will depend upon which layer appears on top.

    If that doesn’t quite do what you want, leave a comment and I’ll revisit the answer.

    EDIT You want the unzoomed control to be positioned relative to the (0,0) of the Viewbox. That will happen in this situation because both children of the grid are in cell (0,0) which means that their top-left corners are aligned. Can you give an example of what you have in XAML, and what’s wrong with it (perhaps edit your original question)?

    Here’s some XAML to try:

    <Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      Background="Green">
      <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
        <Viewbox>
          <Rectangle Fill="Yellow" Width="10" Height="10" />
        </Viewbox>
        <TextBlock>I am positioned at (0,0)</TextBlock>
        <TextBlock Margin="50,50">I am positioned at (50,50)</TextBlock>
      </Grid>
    </Page>
    

    That gives a layout like this:

    http://img20.imageshack.us/img20/2045/layout1m.png

    But note that when the height is reduced, the grid becomes wider than the view box, and so the content is layed out like this:

    http://img20.imageshack.us/img20/9397/layout2i.png

    I guess that’s not what you want. In that case, you use a canvas and go for something like this:

    <Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      Background="Green">
      <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
        <Viewbox>
          <Rectangle Fill="Yellow" Width="10" Height="10" />
        </Viewbox>
        <Canvas>
          <TextBlock>I am positioned at (0,0)</TextBlock>
          <TextBlock Margin="50,50">I am positioned at (50,50)</TextBlock>
        </Canvas>
      </Grid>
    </Page>
    

    Which looks like this:

    http://img20.imageshack.us/img20/6743/layout3i.png

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

Sidebar

Related Questions

Is there any way to always show zoom controls in webview? I found this:
Is there a way to have the Zoom to rectangle tool automatically activated by
Is there an easy way to grow / zoom a VB.NET application and all
I added the GestureListener to an image i'm trying to have zoom like this
Is there an easy way to disable zoom in/out feature for XYPlot which is
Is there an accepted way of performing (pinch) zoom on a view that is
Is there way to copy a file into Plone with WebDAV and have Plone
Is there way to mute an audio stream or at least control the volume?
Is there way to set @include mixin(); to variable? I tried this @mixin bg-gradient($fallback,
Is there any easy way how to zoom in and back out in canvas

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.