#include "pch.h" #include "Helpers.h" #include // Function to split a wstring based on a delimiter and return a vector of split strings std::vector splitwstring(const std::wstring& input, wchar_t delimiter) { std::wstringstream ss(input); std::wstring item; std::vector splittedStrings; while (std::getline(ss, item, L' ')) { splittedStrings.push_back(item); } return splittedStrings; } // Function to return the next sibling element for an element under a stack panel IInspectable getSiblingElement(IInspectable const& element) { FrameworkElement frameworkElement = element.as(); StackPanel parentElement = frameworkElement.Parent().as(); uint32_t index; parentElement.Children().IndexOf(frameworkElement, index); return parentElement.Children().GetAt(index + 1); }