Skip to content

Commit

Permalink
Remove code setting the content of the overflow button to "More" on A…
Browse files Browse the repository at this point in the history
…pplyTemplate(). Also removed the entry for the "More" string in the ResourceHelper logic and in the default NavigationView resource file.
  • Loading branch information
Felix-Dev committed Aug 7, 2020
1 parent a852c6d commit f8da599
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion dev/NavigationView/NavigationView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ void NavigationView::OnApplyTemplate()
{
m_topNavOverflowButton.set(topNavOverflowButton);
winrt::AutomationProperties::SetName(topNavOverflowButton, ResourceAccessor::GetLocalizedStringResource(SR_NavigationOverflowButtonName));
topNavOverflowButton.Content(box_value(ResourceAccessor::GetLocalizedStringResource(SR_NavigationOverflowButtonText)));
auto visual = winrt::ElementCompositionPreview::GetElementVisual(topNavOverflowButton);
CreateAndAttachHeaderAnimation(visual);

Expand Down
4 changes: 0 additions & 4 deletions dev/NavigationView/Strings/en-us/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@
<value>More Button</value>
<comment>Automation name for the nav view more button when panel is on top</comment>
</data>
<data name="NavigationOverflowButtonText" xml:space="preserve">
<value>More</value>
<comment>Text for the nav view more button when panel is on top</comment>
</data>
<data name="NavigationOverflowButtonToolTip" xml:space="preserve">
<value>See more</value>
<comment>ToolTip caption for the nav view more button when panel is on top</comment>
Expand Down
1 change: 0 additions & 1 deletion dev/ResourceHelper/ResourceAccessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class ResourceAccessor sealed
#define SR_NavigationBackButtonToolTip L"NavigationBackButtonToolTip"
#define SR_NavigationCloseButtonName L"NavigationCloseButtonName"
#define SR_NavigationOverflowButtonName L"NavigationOverflowButtonName"
#define SR_NavigationOverflowButtonText L"NavigationOverflowButtonText"
#define SR_NavigationOverflowButtonToolTip L"NavigationOverflowButtonToolTip"
#define SR_SettingsButtonName L"SettingsButtonName"
#define SR_NavigationViewSearchButtonName L"NavigationViewSearchButtonName"
Expand Down

0 comments on commit f8da599

Please sign in to comment.