Skip to content

Commit 5f5fec2

Browse files
committed
2026.4.1 (WinUI)
1 parent d174166 commit 5f5fec2

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Nickvision.Desktop.WinUI/Controls/ViewStack.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ public sealed partial class ViewStack : UserControl
99
public static readonly DependencyProperty PagesProperty = DependencyProperty.Register(nameof(Pages), typeof(ObservableCollection<UIElement>), typeof(ViewStack), new PropertyMetadata(null));
1010
public static readonly DependencyProperty SelectedIndexProperty = DependencyProperty.Register(nameof(SelectedIndex), typeof(int), typeof(ViewStack), new PropertyMetadata(0));
1111

12+
public int PreviousSelectedIndex { get; private set; }
13+
1214
public ViewStack()
1315
{
1416
InitializeComponent();
1517
Pages = new ObservableCollection<UIElement>();
18+
PreviousSelectedIndex = 0;
1619
}
1720

1821
public ObservableCollection<UIElement> Pages
@@ -35,6 +38,7 @@ public int SelectedIndex
3538

3639
set
3740
{
41+
PreviousSelectedIndex = SelectedIndex;
3842
SetValue(SelectedIndexProperty, value);
3943
if (Pages.Count > 0 && value >= 0 && value < Pages.Count)
4044
{

Nickvision.Desktop.WinUI/Nickvision.Desktop.WinUI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net10.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0-windows10.0.22621.0</TargetFrameworks>
55
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
66
<LangVersion>latest</LangVersion>
77
<ImplicitUsings>disable</ImplicitUsings>
@@ -12,7 +12,7 @@
1212
<UseWinUI>true</UseWinUI>
1313
<WinUISDKReferences>false</WinUISDKReferences>
1414
<PackageId>Nickvision.Desktop.WinUI</PackageId>
15-
<Version>2026.4.0</Version>
15+
<Version>2026.4.1</Version>
1616
<Company>Nickvision</Company>
1717
<Authors>Nickvision</Authors>
1818
<Description>A set of controls and helpers for WinUI based Nickvision apps.</Description>
@@ -31,7 +31,7 @@
3131
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.269">
3232
<PrivateAssets>all</PrivateAssets>
3333
</PackageReference>
34-
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.7705" />
34+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.28000.1721" />
3535
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.260317003" />
3636
<PackageReference Include="Nickvision.Desktop" Version="2026.4.0" />
3737
</ItemGroup>

0 commit comments

Comments
 (0)