-
Notifications
You must be signed in to change notification settings - Fork 0
09. XamlElements
tetherscript edited this page Jan 31, 2025
·
1 revision
We can't know all the possible element types and properties to scan for, especially with third-party or custom controls. So you need to specify which elements can be detected during a scan.
This is stored in the \Translator\XamlElement.json
. You can edit this file.
Note: When using a .xaml
reference like xmlns:ctWuiControls="using:CommunityToolkit.WinUI.Controls"
for <ctWuiControls:SettingsExpander...>
, enter it as shown on the first element below.
{
"using:CommunityToolkit.WinUI.Controls:SettingsExpander": [
"Header"
],
"Button": [
"Content"
],
"TextBlock": [
"Text"
],
"CheckBox": [
"Content"
],
"ToggleSwitch": [
"Header",
"OffContent",
"OnContent"
],
"RadioButtons": [
"Header"
],
"RadioButton": [
"Content"
],
"ToggleButton": [
"Content"
]
}