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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:38:43+00:00 2026-06-14T17:38:43+00:00

I have a Frame in my XAML: <Frame Grid.Row=1 Content={Binding MainContent} Margin=8 NavigationUIVisibility=Hidden />

  • 0

I have a Frame in my XAML:

<Frame Grid.Row="1" Content="{Binding MainContent}" Margin="8" NavigationUIVisibility="Hidden" />

The content is a Page which is set in the code, something like this:

MainContent = new MyPage();

I want to bind the width and height of MyPage to the width and height of the parent Frame.
The Frame is in a grid row, so will resize with the window.

  • 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-14T17:38:44+00:00Added an answer on June 14, 2026 at 5:38 pm

    Set both your MyPage’s HorizontalAlignment and VerticalAlignment properties to “Stretch”, and its Margin to 0. If that is not enough, set the Frame’s HorizontalContentAlignment and VerticalContentAlignment to “Stretch”, also.

    To debug, first check if your Frame is in fact following its parent, changing its background or doing something alike. Check if your page’s Height and Width are set to Auto and MaxHeight and MaxWidth are 0. Check it also for child controls in your page.
    Sometimes Blend may override this properties with fixed values or set them when autogenerating controls.

    For example, when you use the “Group” command to wrap child elements, the generated panel control may come with fixed Width and Height.

    Another case: when you change the type of a grid row or column size type (using the icon on the designer) without having its properties showing in the properties view, Blend may set a MinimumWidth/Height. It happens especially when changing the size type to auto.

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

Sidebar

Related Questions

I have a window which contains a Frame which references a 'home' page that
I have got a base XAML page which is the basis for a navigation
What I have? I have Frame in XAML, (binding works properly). <Frame Name=frmMainContent DataContext=MyPageInformation
I have a Page which is loaded inside a Frame element via it's Source
In my WinRT XAML App I have an EntranceThemeTransition on my Main.xaml page which
I'm coding a windows form using WPF, XAML, C#. I have a Frame object
I have one frame in which one TestArea is there. When I append some
On my website I have a frame containing another page. When I click on
I have the following XAML: <Border x:Name=ClippingBorder VerticalAlignment=Stretch BorderThickness=0> <Border.Clip> <RectangleGeometry RadiusX=4.4 RadiusY=4.4 Rect={Binding
I have three pages, and to navigate to each page, I'm binding a property

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.