feat(ui): add sticky version label to variables pane\n\n- Split left SplitView pane into scroll area + bottom bar\n- Show current app version from AssemblyInformationalVersion\n- Uses theme surface + top border per design tokens
This commit is contained in:
parent
a64cc5a683
commit
74c5b403ae
2 changed files with 15 additions and 1 deletions
|
@ -6,6 +6,7 @@ using AdvancedCalculator.Models;
|
|||
using AdvancedCalculator.Services;
|
||||
using CSMic;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace AdvancedCalculator.ViewModels;
|
||||
|
||||
|
@ -42,6 +43,12 @@ public partial class MainViewModel : ViewModelBase
|
|||
public ObservableCollection<HistoryItem> History { get; }
|
||||
public ObservableCollection<VariableItem> Variables { get; }
|
||||
|
||||
// App version string, sourced from AssemblyInformationalVersion
|
||||
public string AppVersion { get; } =
|
||||
typeof(MainViewModel).Assembly
|
||||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
|
||||
.InformationalVersion ?? "0.0.0";
|
||||
|
||||
[RelayCommand]
|
||||
private void ToggleFunctions()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue