amis-rpc-design/node_modules/react-native-screens/windows/RNScreens/ScreenStack.h

23 lines
734 B
C
Raw Normal View History

2023-10-07 19:42:30 +08:00
#pragma once
#include "Screen.h"
namespace winrt::RNScreens::implementation {
class ScreenStack
: public winrt::Windows::UI::Xaml::Controls::ContentControlT<ScreenStack> {
public:
ScreenStack(winrt::Microsoft::ReactNative::IReactContext reactContext);
void addScreen(Screen &screen, int64_t index);
void removeAllChildren();
void removeChildAt(int64_t index);
void replaceChild(
winrt::Windows::UI::Xaml::UIElement oldChild,
winrt::Windows::UI::Xaml::UIElement newChild);
winrt::Windows::Foundation::Collections::IVector<Windows::UI::Xaml::UIElement>
m_children;
private:
winrt::Microsoft::ReactNative::IReactContext m_reactContext{nullptr};
};
} // namespace winrt::RNScreens::implementation