Skip to content

Teaching tool tip Bug Fix#1920

Merged
niels9001 merged 1 commit intomainfrom
users/rashmithakur/bug_fix_teaching_tool_tip
Jul 15, 2025
Merged

Teaching tool tip Bug Fix#1920
niels9001 merged 1 commit intomainfrom
users/rashmithakur/bug_fix_teaching_tool_tip

Conversation

@rashmi-thakurr
Copy link
Collaborator

@rashmi-thakurr rashmi-thakurr commented Jul 15, 2025

Teaching Tip Bug Fix

Description

This pull request corrects a textual mismatch in the C# code snippet associated with the TeachingTip button in the WinU3 Gallery app. The XAML markup correctly referenced the Click="TestButton2Click" event, but the C# method was mistakenly named TestButtonClick2. The method name has been updated to TestButton2Click to match the XAML and ensure clarity in the codebase.

Motivation and Context

Although the TeachingTip functionality was working as expected in the app, the discrepancy between the XAML and C# method name could cause confusion for future maintainers or contributors.

How Has This Been Tested?

No functional testing was required as the app behavior was already correct. The change was verified by reviewing the code to ensure the method name now matches the XAML event handler.

Screenshots

Xaml Code
Screenshot 2025-07-15 123833

C# code
Screenshot 2025-07-15 124917

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@Saharsh979
Copy link

Add a screenshot in the description, highlighting the disperancy.

@Saharsh979
Copy link

/azp run

@niels9001 niels9001 merged commit 2762188 into main Jul 15, 2025
2 checks passed
@niels9001 niels9001 deleted the users/rashmithakur/bug_fix_teaching_tool_tip branch July 15, 2025 09:20
private void TestButtonClick2(object sender, RoutedEventArgs e)
private void TestButton2Click(object sender, RoutedEventArgs e)
{
ToggleThemeTeachingTip2.IsOpen = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does any element with name "ToggleThemeTeachingTip2" exist in the XAML? I don't see any changes regarding this. The tooltip present inside the button has a different name in the screenshots

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: You could use code blocks (e.g. triple backticks ``` in Markdown) to display code instead of screenshots. This makes it easier for reviewers to copy/paste and provide feedback.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rashmi-thakurr you need to correct naming of ToggleThemeTeachingTip2 in C# file as well. In Xaml, the name is TestButton2TeachingTip

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. I've addressed the issue in a follow-up PR here: #1922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants