|
@@ -152,5 +152,22 @@ namespace Avalonia.Controls.UnitTests
|
|
|
}.RegisterInNameScope(scope);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ [Fact]
|
|
|
+ public void TabIndex_Should_Be_Synchronized_With_Inner_TextBox()
|
|
|
+ {
|
|
|
+ RunTest((control, textbox) =>
|
|
|
+ {
|
|
|
+ // Set TabIndex on NumericUpDown
|
|
|
+ control.TabIndex = 5;
|
|
|
+
|
|
|
+ // The inner TextBox should inherit the same TabIndex
|
|
|
+ Assert.Equal(5, textbox.TabIndex);
|
|
|
+
|
|
|
+ // Change TabIndex and verify it gets synchronized
|
|
|
+ control.TabIndex = 10;
|
|
|
+ Assert.Equal(10, textbox.TabIndex);
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|