mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-23 08:27:58 +08:00
90ecd5e10f
* Migrate PowerRename to Unpackaged WinUI3 * [ARM64] PowerRename (#18002) * Migrate PowerRename to Unpackaged WinUI3 * Removed Project Config and update PlatformToolset to v143 * Updated solution config * Migrate PowerRename to Unpackaged WinUI3 * Fixed configs changed from ARM64 build * Left one project out of fix Co-authored-by: Stefan Markovic <stefan@janeasystems.com> Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> * Minor fixes * Remove PowerRenameUILib from signing list - doesn't exist anymore * Remove PowerRenameUILib from move_uwp_resources.ps1 * Bring back old dir name to see if localization is preserved Remove move_uwp_resources.ps1 - not needed anymore * Remove UWP localization docs part * Fix minor UI quirk Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
30 lines
958 B
C++
30 lines
958 B
C++
#pragma once
|
|
#include "PatternSnippet.g.h"
|
|
|
|
namespace winrt::PowerRenameUI::implementation
|
|
{
|
|
struct PatternSnippet : PatternSnippetT<PatternSnippet>
|
|
{
|
|
PatternSnippet() = delete;
|
|
|
|
PatternSnippet(hstring const& code, hstring const& description);
|
|
hstring Code();
|
|
void Code(hstring const& value);
|
|
hstring Description();
|
|
void Description(hstring const& value);
|
|
winrt::event_token PropertyChanged(winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
|
|
void PropertyChanged(winrt::event_token const& token) noexcept;
|
|
|
|
private:
|
|
winrt::hstring m_code;
|
|
winrt::hstring m_description;
|
|
winrt::event<Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> m_propertyChanged;
|
|
};
|
|
}
|
|
namespace winrt::PowerRenameUI::factory_implementation
|
|
{
|
|
struct PatternSnippet : PatternSnippetT<PatternSnippet, implementation::PatternSnippet>
|
|
{
|
|
};
|
|
}
|