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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:33:26+00:00 2026-06-12T05:33:26+00:00

Recently I coded an extremely graphical interface in for hi-res displays(1900×1200). Of course my

  • 0

Recently I coded an extremely graphical interface in for hi-res displays(1900×1200). Of course my the requirements changed, and it needed to be redone in 1366×768. Rather than retool the app for a fixed resolution(lesson learned), i moved everything into its own ViewBox and recrafted my grid controls to handle this. The app looks great and scales to (nearly)any size without artifacts.

My question is, is there an easier way to accomplish full dynamic control scaling in WPF with putting each control in its own viewbox? ViewBox was the only control I could find to do this, but it can only contain one child element, which made this a VERY tedious process. Is there a better control that can contain child controls that scales?

  • 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-12T05:33:27+00:00Added an answer on June 12, 2026 at 5:33 am

    Why not put a Grid or StackPanel inside the viewBox, and then fill them with the controls?

    Big hello s

    Something like this

    <Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:WfpApplication1="clr-namespace:WfpApplication1"
    
        Title="MainWindow" Height="350" Width="525">
    
    <Viewbox>
        <StackPanel>
            <CheckBox Content="Hello World!"/>
            <TextBlock Text="Hello world"/>
            <Button Content="Hello world!"/>
        </StackPanel>
    </Viewbox>
    

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

Sidebar

Related Questions

I have recently coded my button to be aligned to the right of the
I recently ran across several objects implemented to handle events with a hard coded
Our team has recently inherited code which is extremely disorganized. As a result, my
Okay this is frustrating me to no end. I recently coded a page in
i recently created a custom ping box(chat) for personal needs. When i coded it
recently our Magento store has become extremely slow. We dont really know why. Just
I recently coded a website, the code is valid xHTML 1.0 strict. The problem
i recently coded a Android Widget and tested it on Emulator as well as
I haven't coded in C++ for years. I recently discovered that during those years
Recently I coded up a function that wasn't working properly. I managed to find

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.