本文介绍了如何在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中制作aboutbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!