Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update NumberBox example to reflect spin button placement in di…
…splayed XAML code (#1612) ## Description This update ensures that the example code reflects user selections between `Inline` and `Compact` spin button placements, improving the accuracy and relevance of the displayed example, main changes are: - **Updated** XAML to dynamically reflect spin button placement changes in the displayed code. - Replaced static XAML with dynamic code binding that updates based on user selection. - **Modified** `RadioButtons` control to use `SelectionChanged` event handler for updating the `SpinButtonPlacementMode` of the `NumberBox`. - **Added** XAML substitution to ensure the displayed source code shows the correct `SpinButtonPlacementMode`. - **Removed** obsolete XAML source file `NumberBoxSample2_xaml.txt`. ## Motivation and Context The previous implementation did not dynamically update the example source code based on user interactions with the spin button placement options. This change improves user experience by providing accurate and up-to-date example code that matches the current UI configuration, helping users better understand how different settings affect the `NumberBox` control. ## How Has This Been Tested? **Manual Testing**: The changes were tested by interacting with the RadioButtons control to switch between `Inline` and `Compact` spin button placements. The displayed example code was verified to accurately update according to the selected option. ## Screenshots: ![image](https://github.com/user-attachments/assets/13602b8c-02b4-4f9b-b687-16b2e7e2ed29) ![image](https://github.com/user-attachments/assets/4cfdc55c-acc4-4df3-a5e2-9100bb812dcf) ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [X] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
- Loading branch information