I wrote a program in WPF via using Visual Studio and my program works perfectly.When I publish it, it seems like the image below on internet explorer.I just want to see my app on top.
This is my current view
This is what I want

Page1.XML
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Page1">
<Grid>
<StackPanel Margin="0,0,0,0" Name="stackPanel"
HorizontalAlignment="Left" VerticalAlignment="Top" />
</Grid>
Page1.xaml.cs
using System.Windows.Controls;
using System.Windows.Forms.Integration;
using BenzinTakip;
namespace WPFHost
{
/// <summary>
/// Interaction logic for Page1.xaml
/// </summary>
public partial class Page1 : Page
{
private readonly Form1 mainForm = new Form1();
public Page1()
{
InitializeComponent();
//Create a Windows Forms Host to host a form
WindowsFormsHost windowsFormsHost = new WindowsFormsHost();
mainForm.TopLevel = false;
windowsFormsHost.Child = mainForm;
stackPanel.Children.Add(windowsFormsHost);
}
}
}
It's because of your resolution you have to change your form's dimensions and it will fit.