Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add C# sample code to TreeView examples & simplify the code #1707

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Zakariathr22
Copy link
Contributor

@Zakariathr22 Zakariathr22 commented Dec 15, 2024

Description

This PR enhances the TreeView example by improving clarity and usability:

  • Added C# sample code: Provides a complete examples to help developers understand how to initialize TreeView and use it with data binding and ItemTemplateSelector.
  • Simplified examples: Focused on the core concepts of TreeView, making it easier for new developers to follow.
  • Removed redundancy: Eliminated repeated code and unused properties/functions for a cleaner and more concise implementation.
  • Updated folder icon: Replaced "folder.png" with a new version for a better visual representation.

These updates aim to improve the developer experience and ensure the TreeView sample is more practical and accessible.

Motivation and Context

  • Provide a clearer, more focused TreeView examples with complete C# code.
  • Closes TreeView #1665.

How Has This Been Tested?

Manually tested

Screenshots (if appropriate):

image

image

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)

- Added C# sample code to TreeView example for better understanding.
- Simplified code to focus on core TreeView concepts.
- Removed redundant code and unused properties/functions.
- Replaced "folder.png" with updated image.
@Zakariathr22 Zakariathr22 changed the title Add C# sample code to TreeView example and simplify the code Add C# sample code to TreeView examples & simplify the code Dec 15, 2024
@niels9001 niels9001 requested a review from karkarl December 18, 2024 21:45
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.

TreeView
1 participant