WPF关闭,还原/最大化,最小化按钮.再加上固定的窗口形状/大小?为什么? [英] WPF Close, Restore/Maximise, Minimise button. Plus Window shape/size fixed? why?

查看:446
本文介绍了WPF关闭,还原/最大化,最小化按钮.再加上固定的窗口形状/大小?为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了WPF应用程序.我需要创建关闭",还原/最大化",最小化"按钮的帮助. (教程).

除此之外,有人可以帮助我解决为什么在最大化应用程序后在我的应用程序中调试时它不会增加大小的原因.
最后,出于好奇, [让我提供上下文] ,我的窗口将具有某种网格(不是从WPF的许多功能中选择的) >举个例子" 图片(它不是真正的图片,只是说)是否可以让它显示3x3的图片"网格还是4x4或5x5等?

再次感谢,

I have created a WPF application. I need help creating the Close, Restore/Maximise, Minimise buttons. (A tutorial).

In addition to this can someone help me solve why when debug''in my application after say maximising the application it does not increase in size.

Finally, out of curiosity, [let me give context], My window will, have some sort of grid (not chosen out of the many capabilities of WPF) with ''say for example'' pictures (it wont really be pictures, but just saying) would there be a way to have it show a 3x3 grid of "Pictures" or 4x4 or 5x5 etc.?

Thanks again,

推荐答案

我已经创建了WPF应用程序.我需要创建关闭",还原/最大化",最小化"按钮的帮助. (教程).
看看这些文章
用于自定义窗框的WPF非客户区域设计技术 [移动无WindowStyle的WPF窗口 [ ^ ]

除此之外,有人可以帮助我解决为什么在对应用程序进行最大化调试后说在不扩大应用程序大小的情况下".
您需要提供有关当前应用程序的一些详细信息,并发布相关的XAML和代码

..是否可以显示3x3的图片"网格或4x4或5x5等?
您可以使用网格 [ UniformGrid [ ^ ]是个不错的选择.
I have created a WPF application. I need help creating the Close, Restore/Maximise, Minimise buttons. (A tutorial).
Have a look at these articles
WPF Non-Client Area Design Techniques For Custom Window Frames[^]
Moving a WPF Window with a WindowStyle of None[^]

In addition to this can someone help me solve why when debug''in my application after say maximising the application it does not increase in size.
You''ll need to provide some details about your current application, post the relevant XAML and code

..would there be a way to have it show a 3x3 grid of "Pictures" or 4x4 or 5x5 etc.?
You can use Grid[^] with x columns and rows defined. If the cells are to be of equal size then UniformGrid[^] is a good choice.


这篇关于WPF关闭,还原/最大化,最小化按钮.再加上固定的窗口形状/大小?为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆