Files
modernkeepass/ModernKeePass/ViewModels/AboutVm.cs
Geoffroy Bonneville 46c8429cde Lots of code refactoring to use XAML behaviors instead of code-behind
New Save button in the AppBar
EntryPage now uses the same AppBar as GroupPage (but not shared...)
Some new Symbol mappings
2017-11-08 14:42:44 +01:00

21 lines
431 B
C#

using Windows.ApplicationModel;
namespace ModernKeePass.ViewModels
{
public class AboutVm
{
public string Name { get; } = Package.Current.DisplayName;
public string Version
{
get
{
var package = Package.Current;
var version = package.Id.Version;
return $"{version.Major}.{version.Minor}";
}
}
}
}