-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Navigation View Visual Update (#4009)
* update brushes * update NavViewItems * navView items visual update * panelToggle and back button * adjust icon width when compact left * fix rebase * update pane closed layout * fix toggleButton cutoff * top nav visual update * fix bad rebase * remove reveal style * revert c_BackButtonHeight changes * add templateSettings properties * update latest style with template setting prop * bind old style to templateSettings * bind NavView item presenter icon column wip * add itemPresenter TemplateSettings and bind to latest style * bind to old style + cleanup * top nav coloring fix * fix failing tests WIP * fix failing tests * fetch new verification files * update verification files * update verificationt files * fix failing tests * fix failing test * fix test * fix syntax
- Loading branch information
Showing
72 changed files
with
45,303 additions
and
7,731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
dev/Generated/NavigationViewItemPresenterTemplateSettings.properties.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen | ||
#include "pch.h" | ||
#include "common.h" | ||
#include "NavigationViewItemPresenterTemplateSettings.h" | ||
|
||
namespace winrt::Microsoft::UI::Xaml::Controls::Primitives | ||
{ | ||
CppWinRTActivatableClassWithDPFactory(NavigationViewItemPresenterTemplateSettings) | ||
} | ||
|
||
#include "NavigationViewItemPresenterTemplateSettings.g.cpp" | ||
|
||
GlobalDependencyProperty NavigationViewItemPresenterTemplateSettingsProperties::s_IconColumnWidthProperty{ nullptr }; | ||
GlobalDependencyProperty NavigationViewItemPresenterTemplateSettingsProperties::s_LatestIconColumnWidthProperty{ nullptr }; | ||
|
||
NavigationViewItemPresenterTemplateSettingsProperties::NavigationViewItemPresenterTemplateSettingsProperties() | ||
{ | ||
EnsureProperties(); | ||
} | ||
|
||
void NavigationViewItemPresenterTemplateSettingsProperties::EnsureProperties() | ||
{ | ||
if (!s_IconColumnWidthProperty) | ||
{ | ||
s_IconColumnWidthProperty = | ||
InitializeDependencyProperty( | ||
L"IconColumnWidth", | ||
winrt::name_of<double>(), | ||
winrt::name_of<winrt::NavigationViewItemPresenterTemplateSettings>(), | ||
false /* isAttached */, | ||
ValueHelper<double>::BoxedDefaultValue(), | ||
nullptr); | ||
} | ||
if (!s_LatestIconColumnWidthProperty) | ||
{ | ||
s_LatestIconColumnWidthProperty = | ||
InitializeDependencyProperty( | ||
L"LatestIconColumnWidth", | ||
winrt::name_of<double>(), | ||
winrt::name_of<winrt::NavigationViewItemPresenterTemplateSettings>(), | ||
false /* isAttached */, | ||
ValueHelper<double>::BoxedDefaultValue(), | ||
nullptr); | ||
} | ||
} | ||
|
||
void NavigationViewItemPresenterTemplateSettingsProperties::ClearProperties() | ||
{ | ||
s_IconColumnWidthProperty = nullptr; | ||
s_LatestIconColumnWidthProperty = nullptr; | ||
} | ||
|
||
void NavigationViewItemPresenterTemplateSettingsProperties::IconColumnWidth(double value) | ||
{ | ||
[[gsl::suppress(con)]] | ||
{ | ||
static_cast<NavigationViewItemPresenterTemplateSettings*>(this)->SetValue(s_IconColumnWidthProperty, ValueHelper<double>::BoxValueIfNecessary(value)); | ||
} | ||
} | ||
|
||
double NavigationViewItemPresenterTemplateSettingsProperties::IconColumnWidth() | ||
{ | ||
return ValueHelper<double>::CastOrUnbox(static_cast<NavigationViewItemPresenterTemplateSettings*>(this)->GetValue(s_IconColumnWidthProperty)); | ||
} | ||
|
||
void NavigationViewItemPresenterTemplateSettingsProperties::LatestIconColumnWidth(double value) | ||
{ | ||
[[gsl::suppress(con)]] | ||
{ | ||
static_cast<NavigationViewItemPresenterTemplateSettings*>(this)->SetValue(s_LatestIconColumnWidthProperty, ValueHelper<double>::BoxValueIfNecessary(value)); | ||
} | ||
} | ||
|
||
double NavigationViewItemPresenterTemplateSettingsProperties::LatestIconColumnWidth() | ||
{ | ||
return ValueHelper<double>::CastOrUnbox(static_cast<NavigationViewItemPresenterTemplateSettings*>(this)->GetValue(s_LatestIconColumnWidthProperty)); | ||
} |
26 changes: 26 additions & 0 deletions
26
dev/Generated/NavigationViewItemPresenterTemplateSettings.properties.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen | ||
#pragma once | ||
|
||
class NavigationViewItemPresenterTemplateSettingsProperties | ||
{ | ||
public: | ||
NavigationViewItemPresenterTemplateSettingsProperties(); | ||
|
||
void IconColumnWidth(double value); | ||
double IconColumnWidth(); | ||
|
||
void LatestIconColumnWidth(double value); | ||
double LatestIconColumnWidth(); | ||
|
||
static winrt::DependencyProperty IconColumnWidthProperty() { return s_IconColumnWidthProperty; } | ||
static winrt::DependencyProperty LatestIconColumnWidthProperty() { return s_LatestIconColumnWidthProperty; } | ||
|
||
static GlobalDependencyProperty s_IconColumnWidthProperty; | ||
static GlobalDependencyProperty s_LatestIconColumnWidthProperty; | ||
|
||
static void EnsureProperties(); | ||
static void ClearProperties(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.