fix (pre-emptive): Add null check
This commit is contained in:
1 parent
cac857a3a7
commit
aca4365e8d
1 file changed
+3
-1
@@ -37,7 +37,9 @@ namespace mbts.ui {
|
||||
}
|
||||
|
||||
static void _animate(FrameworkElement content, DoubleAnimation? anim, bool is_expanded) {
|
||||
var collapsible_container = content.find_ancestor_of_type<ContentControl>();
|
||||
if (!content.try_find_ancestor_of_type(out ContentControl collapsible_container)) {
|
||||
return;
|
||||
}
|
||||
content.Measure(new(double.PositiveInfinity, double.PositiveInfinity));
|
||||
|
||||
var (from, to) = is_expanded ?
|
||||
|
||||
Reference in new issue
Block a user