public void ToggleButtonInheritsIsTabStopWhenTrue() { var popupBox = new PopupBox { IsTabStop = true }; popupBox.ApplyDefaultStyle(); ToggleButton togglePart = popupBox.FindVisualChild <ToggleButton>(PopupBox.TogglePartName); Assert.Equal(true, togglePart.IsTabStop); }
public void ToggleButtonInheritsTabIndex() { var popupBox = new PopupBox { TabIndex = 3 }; popupBox.ApplyDefaultStyle(); ToggleButton togglePart = popupBox.FindVisualChild <ToggleButton>(PopupBox.TogglePartName); Assert.Equal(3, togglePart.TabIndex); }