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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:55:23+00:00 2026-06-15T16:55:23+00:00

I have two UserControls that have a Grid each. The first one defines a

  • 0

I have two UserControls that have a Grid each. The first one defines a Height and a Width:

<UserControl
    Height="620"
    Width="450">

   <Grid Margin="50, 0, 0, 50">

The other control only defines the Height:

<UserControl
    Height="768">
    <Grid>

Now I am trying to use both in a background like this:

<Grid>
    <Image Source="Assets/background.png" Stretch ="UniformToFill" 
     HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>

    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
           <ColumnDefinition Width="*" />
           <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Controls:EventImagesControl Grid.Row="0" Grid.Column="0"  
                  HorizontalAlignment="Stretch"  
                  VerticalAlignment="Stretch"/>
        <Controls:ScrollControl Grid.Row="0" Grid.Column="1"  
                  HorizontalAlignment="Stretch"  
                  VerticalAlignment="Stretch"/>            
    </Grid>
</Grid>

Everything scales as I was expecting in the following settings:

10.6" 1024x768
10.6" 1366x768
10.6" 1920x1080
10.6" 2560x1440
12"   1280x800

However, when I try to use the following settings it only scales in width and not in height (at least it seems)

23" 1920x1080
27" 2560x1440

I am trying to avoid the usage of a ViewBox. I am new to the windows8/wpf, but I am trying to learn how to do a responsive layout.

  • 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-15T16:55:24+00:00Added an answer on June 15, 2026 at 4:55 pm

    The WinRT rendering engine scales so everything is physically correct, that’s why the 4 10.6″ tests look the same size, no matter the resolution of the screen. The 12″ test scales nicely, but as it’s size is close to the 10.6″ and you won’t notice a difference (althought there’s a difference), the biggest screen sizes will scale so your 450×620 control look like a 450×620 control an a 23″ Full HD screen, this means an small control.

    Actually, the link you posted describes nicely every type of scaling you can use in a Modern UI app. And if you really need to set a minimum size, use the MinWidth and MinHeight properties instead.

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

Sidebar

Related Questions

I have a form with two different UserControls - one that contains a Telerik
I have the following XAML: <UserControl.Resources> <DataTemplate x:Key=ExpanderTemplate> <Grid> <Rectangle Stroke=Black StrokeThickness=1 Width=10 Height=10
I have a UserControl in Silverlight 3. The LayoutRoot grid contains one child, a
I got a weird warning that I don't understand. I have two UserControls .
I have one grid that has 14 columns. If I place another grid of
I have two UserControls (uc1 and uc2) loading into a third UserControl (shell). Shell
I have two UserControls: public partial class MKSelectMonthUC : UserControl { public static readonly
I have two user controls on the same page. One contains a ListView that
I have two User Controls already created now I want to use one as
I have two user controls, in one of them I have a textbox, i

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.