最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - How to Resize a Window in Uno Platform? - Stack Overflow

programmeradmin2浏览0评论

I'm trying to change the size of the window in my Uno Platform application. I've gone through the official documentation and searched GitHub repositories for examples, but I couldn't find a solution that works for me.

I need to set the initial size of the window and possibly allow the user to resize it later.

Setting window size in MainWindow.xaml changes only the size of the GUI and not the program window.

public MainPage()
{
    this.InitializeComponent();
    
    this.Width = 800;
    this.Height = 600;
}

I can't find an example for Uno Platform. I’m targeting Windows as the platform for now, but I’d like a cross-platform solution if possible.

发布评论

评论列表(0)

  1. 暂无评论