mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Code cleaning: removed AppBarVisibility and PinUnpinAppBarButtonOnClicked
This commit is contained in:
parent
6b579cc03d
commit
4c121f6c43
4 changed files with 0 additions and 14 deletions
|
@ -36,7 +36,6 @@ namespace
|
||||||
{
|
{
|
||||||
StringReference CategoriesPropertyName(L"Categories");
|
StringReference CategoriesPropertyName(L"Categories");
|
||||||
StringReference ClearMemoryVisibilityPropertyName(L"ClearMemoryVisibility");
|
StringReference ClearMemoryVisibilityPropertyName(L"ClearMemoryVisibility");
|
||||||
StringReference AppBarVisibilityPropertyName(L"AppBarVisibility");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationViewModel::ApplicationViewModel() :
|
ApplicationViewModel::ApplicationViewModel() :
|
||||||
|
|
|
@ -66,16 +66,6 @@ namespace CalculatorApp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property Windows::UI::Xaml::Visibility AppBarVisibility
|
|
||||||
{
|
|
||||||
Windows::UI::Xaml::Visibility get()
|
|
||||||
{
|
|
||||||
return CalculatorApp::Common::NavCategory::IsCalculatorViewMode(Mode)
|
|
||||||
? Windows::UI::Xaml::Visibility::Visible
|
|
||||||
: Windows::UI::Xaml::Visibility::Collapsed;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool TryRecoverFromNavigationModeFailure();
|
bool TryRecoverFromNavigationModeFailure();
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,6 @@ namespace CalculatorApp
|
||||||
COMMAND_FOR_METHOD(PasteCommand, StandardCalculatorViewModel::OnPasteCommand);
|
COMMAND_FOR_METHOD(PasteCommand, StandardCalculatorViewModel::OnPasteCommand);
|
||||||
COMMAND_FOR_METHOD(ButtonPressed, StandardCalculatorViewModel::OnButtonPressed);
|
COMMAND_FOR_METHOD(ButtonPressed, StandardCalculatorViewModel::OnButtonPressed);
|
||||||
COMMAND_FOR_METHOD(ClearMemoryCommand, StandardCalculatorViewModel::OnClearMemoryCommand);
|
COMMAND_FOR_METHOD(ClearMemoryCommand, StandardCalculatorViewModel::OnClearMemoryCommand);
|
||||||
COMMAND_FOR_METHOD(PinUnpinAppBarButtonOnClicked, StandardCalculatorViewModel::OnPinUnpinCommand);
|
|
||||||
COMMAND_FOR_METHOD(MemoryItemPressed, StandardCalculatorViewModel::OnMemoryItemPressed);
|
COMMAND_FOR_METHOD(MemoryItemPressed, StandardCalculatorViewModel::OnMemoryItemPressed);
|
||||||
COMMAND_FOR_METHOD(MemoryAdd, StandardCalculatorViewModel::OnMemoryAdd);
|
COMMAND_FOR_METHOD(MemoryAdd, StandardCalculatorViewModel::OnMemoryAdd);
|
||||||
COMMAND_FOR_METHOD(MemorySubtract, StandardCalculatorViewModel::OnMemorySubtract);
|
COMMAND_FOR_METHOD(MemorySubtract, StandardCalculatorViewModel::OnMemorySubtract);
|
||||||
|
|
|
@ -70,8 +70,6 @@ namespace CalculatorApp
|
||||||
void OnPageLoaded(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e);
|
void OnPageLoaded(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e);
|
||||||
void OnPageUnLoaded(_In_ Platform::Object^, _In_ Windows::UI::Xaml::RoutedEventArgs^);
|
void OnPageUnLoaded(_In_ Platform::Object^, _In_ Windows::UI::Xaml::RoutedEventArgs^);
|
||||||
|
|
||||||
void PinUnpinAppBarButtonOnClicked(_In_ Platform::Object^ sender, _In_ Windows::UI::Xaml::RoutedEventArgs^ e);
|
|
||||||
|
|
||||||
void EnsureCalculator();
|
void EnsureCalculator();
|
||||||
void EnsureConverter();
|
void EnsureConverter();
|
||||||
void EnsureDateCalculator();
|
void EnsureDateCalculator();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue