mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-23 08:27:58 +08:00
5cfbd72fa8
* PowerRename new UI * Add scrollviewer * Don't deploy PowerRenameUI_new * Visual updates * Visual updates * Updates * Update Resources.resw * Added docs button * Update MainWindow.xaml * Wire Docs button * RegEx -> regular expressions * Update Show only renamed list on search/replace text changed * Update Show only renamed list on search/replace text changed - proper fix Set searchTerm to NULL when cleared - fix Show only renamed files on clear searchTerm * Files/folders input error handling * Fix renaming with keeping UI window opened After renaming folder, all of it's children need path update. Without path update, further renaming of children items would fail. * Update only children, not all items with greater depth * Fix dictionary false positives * Remove .NET dep * Rename PowerRenameUI_new to PowerRenameUILib Rename executable PowerRenameUIHost to PowerRename Co-authored-by: Laute <Niels.Laute@philips.com>
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#pragma once
|
|
namespace winrt::PowerRenameUILib::implementation
|
|
{
|
|
template<typename D, typename... I>
|
|
struct App_baseWithProvider : public App_base<D, ::winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>
|
|
{
|
|
using IXamlType = ::winrt::Windows::UI::Xaml::Markup::IXamlType;
|
|
IXamlType GetXamlType(::winrt::Windows::UI::Xaml::Interop::TypeName const& type)
|
|
{
|
|
return AppProvider()->GetXamlType(type);
|
|
}
|
|
IXamlType GetXamlType(::winrt::hstring const& fullName)
|
|
{
|
|
return AppProvider()->GetXamlType(fullName);
|
|
}
|
|
::winrt::com_array<::winrt::Windows::UI::Xaml::Markup::XmlnsDefinition> GetXmlnsDefinitions()
|
|
{
|
|
return AppProvider()->GetXmlnsDefinitions();
|
|
}
|
|
|
|
private:
|
|
bool _contentLoaded{ false };
|
|
winrt::com_ptr<XamlMetaDataProvider> _appProvider;
|
|
winrt::com_ptr<XamlMetaDataProvider> AppProvider()
|
|
{
|
|
if (!_appProvider)
|
|
{
|
|
_appProvider = winrt::make_self<XamlMetaDataProvider>();
|
|
}
|
|
return _appProvider;
|
|
}
|
|
};
|
|
template<typename D, typename... I>
|
|
using AppT2 = App_baseWithProvider<D, I...>;
|
|
}
|