You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#1835
Ready for Review. Ran ColorsLab test on PPT 2016.
**Outline of Solution**
The current implementation uses `ObservableCollection` to store the colors. It is possible to further reduce duplication in the xaml file (using ItemSource), but maintainers won't be able to see the actual panel being reflected in Visual Studio.
The arrays used in ColorsLab have been removed in the previous PR referencing the issue. Now, further reduction can be done by adding WPF elements programmatically to ItemSource using a loop. The downside is that maintainers will not be able to see how the actual pane looks without starting PowerPoint,
Code quality
Use BindingSource to reduce code duplication
Description of Feature
Currently code is duplicated for each color palette in ColorsLab. See link
Proposal
Use
.ItemSource
to populate and auto-update each item.Example of an application of
.ItemSource
for similar purposes: exampleThe text was updated successfully, but these errors were encountered: