如何在WPF中制作aboutbox [英] How to make aboutbox in WPF
本文介绍了如何在WPF中制作aboutbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在winForms中,我们内置了AboutBox。但是在wpf中,微软没有向我们提供该设施。有没有人做过类似的AboutBox。我不是在寻找visual studio中的开源扩展。我正在尝试制作它。这看起来很静。我不知道如何使它动态..所以版本号自动更新..
我尝试过:
In winForms, we have built in AboutBox. But in wpf, Microsoft has not provided us with that facility. Has anyone made a similar type of AboutBox. I am not looking for the opensource extension which comes in visual studio.I am trying to make it. this looks static. i do not know how to make it dynamic.. so that version number automatically updates itself..
What I have tried:
<Grid>
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
<Image Source="logfileicon.png" Width="100" Height="30"/>
<TextBlock Name="label" Text="C S LOG File Viewer" FontSize="18"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBox Grid.Row="2" Grid.ColumnSpan="3" Text="Tool for visualization of logically data streams"/>
<TextBox Text="Version: 1.05.01-016"/>
<TextBox Text="Copyright © 2018-2019 by CS group GmbH"/>
</StackPanel>
<Button Name="btnClose" Grid.Row="3" Grid.Column="4" Content="OK" Command="{Binding Close}"/>
</Grid>
推荐答案
在WPF中创建一个新表单是微不足道的。你可能花了更多的时间试图找到一种不必自己做的方式,而不是你自己做的。
Making a new form in WPF is beyond trivial. You've probably spent more time trying to find a way not to have to do it yourself than it would have taken you to just do it yourself.
如果你想要一个关于bo的模板与你合作,而不是自己的角色,那么谷歌有很多例子供你使用...... wpf about box code - Google Search [ ^ ]
If you want a template about bo to work with, rather than role your own, then Google has many examples out there for you... wpf about box code - Google Search[^]
这篇关于如何在WPF中制作aboutbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文