Remove Window Border in Xamarin Forms WPF

user777user777 Member ✭✭

I am trying to to get a borderless window in Xamarin Forms WPF, but I always get a blue border. I tried to set some properties for the Window in the WPF project of the solution, but I cannot get rid of this border:

public MainWindow()
    {
        InitializeComponent();
        Forms.Init();
        LoadApplication(new Common.App());
        this.WindowStyle = System.Windows.WindowStyle.None;
        App.Current.MainWindow.AllowsTransparency = true;
        App.Current.MainWindow.BorderBrush = null;
        App.Current.MainWindow.BorderThickness = new System.Windows.Thickness(0);
    }

Answers

Sign In or Register to comment.