|
|
@@ -732,6 +732,23 @@ namespace Avalonia
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ internal override void OnTemplatedParentControlThemeChanged()
|
|
|
+ {
|
|
|
+ base.OnTemplatedParentControlThemeChanged();
|
|
|
+
|
|
|
+ var count = VisualChildren.Count;
|
|
|
+ var templatedParent = TemplatedParent;
|
|
|
+
|
|
|
+ for (var i = 0; i < count; ++i)
|
|
|
+ {
|
|
|
+ if (VisualChildren[i] is StyledElement child &&
|
|
|
+ child.TemplatedParent == templatedParent)
|
|
|
+ {
|
|
|
+ child.OnTemplatedParentControlThemeChanged();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// Computes the <see cref="HasMirrorTransform"/> value according to the
|
|
|
/// <see cref="FlowDirection"/> and <see cref="BypassFlowDirectionPolicies"/>
|