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

  • Home
  • SEARCH
  • 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 5841453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:53:33+00:00 2026-05-22T11:53:33+00:00

I have generated XAML file from Windows Forms, and with the process calculated right

  • 0

I have generated XAML file from Windows Forms, and with the process calculated right and bottom margins because they do not exist in Forms. I have this output:

<Grid>
    <TextBox Width="129" Height="18" Margin="36,46,278,686" />
    ...
    <TextBox Width="54" Height="18" Margin="345,705,83,31" />
    <TextBox Width="54" Height="18" Margin="345,728,83,8" />
    <TextBox Width="54" Height="18" Margin="345,770,83,-34" /> 
    ...
</Grid>

The problem is that Content of Grid is too large, even for the designer, so scroll bar is generated in win forms. However, this is not case in WPF, so I try adding ScrollViewer around it. But it only scrolls down to content with positive bottom margin. Controls with negative margins are not shown anywhere.

Any idea how to solve this is appreciated.

  • 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-22T11:53:33+00:00Added an answer on May 22, 2026 at 11:53 am

    The Grid is the wrong thing for this task. If you’re going to do the positioning yourself, you should use a Canvas and then use Canvas.Left and Canvas.Top to position it. You don’t need the Bottom or Right values since you seem to know the Width and Height.

    I believe you should be able to use the ScrollViewer around the Canvas object too.

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

Sidebar

Related Questions

I have a generated txt file. This file has certain lines that are superfluous,
I have an automatically generated XML file for the game that I run. It
I have a core file generated on a remote system that I don't have
I have a generated HTML page with flash content in it. I am trying
I have a PHP-generated page which is displaying some data about a set of
I have long tables generated by datagrid control that go beyond the page width.
I have a number of generated .sql files that I want to run in
I have a page that is generated which inserts an HTML comment near the
I have 3 PDF documents that are generated on the fly by a legacy
I have a LINQ to SQL generated class with a readonly property: <Column(Name:=totalLogins, Storage:=_TotalLogins,

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.