web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Resolution Change when...
Power Pages
Unanswered

Resolution Change when calling WPF form from windows application form

(0) ShareShare
ReportReport
Posted on by 2

Hello All,

I have a windows form called Form1. There is a button1 on Form1, which opens another form in PlotTool, which is a WPF form.
private void button1_Click(object sender, EventArgs e)
{
var window = new System.Windows.Window();
var userControl = new PlotTool.UserControl1();
window.Content = userControl;
window.Show();
}

Clicking the button1 changes the resolution and size of the Windows Form1. It can be seen, as in attached picture, that the size of the windows Form1 decreases than original size and it also looks like its resolution has changed. I have tried controlling DPI on forms, but was not helpful.

Why is this happening and how can this be avoided? Hope you can help with this.
I am working in Visual Studio Community 2017 in Windows 10
I have .NET framework 4.6.1

Attached is code for reference.

Thank you.

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @PD_Rheem 

     

    I think it's the wrong forum. 

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

  • PD_Rheem Profile Picture
    2 on at

    Thank you RagavanRajan.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
CN-06091549-0 Profile Picture

CN-06091549-0 18

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 17 Most Valuable Professional

Last 30 days Overall leaderboard