Skip to content

Commit 9f76695

Browse files
matherm-aboehmunchase
authored andcommitted
chore: Revert removal of image for the "Report a bug" button
Some workarounds are required to be implemented, to load the image in a shared project and show it in WPF designer (see SharedImageSourceExtension).
1 parent 1015464 commit 9f76695

6 files changed

Lines changed: 691 additions & 1 deletion

File tree

src/Unchase.OpenAPI.Connectedservice.Shared/Common/ExtensionsHelper.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,22 @@ internal static void ChangeStackPanelVisibility(this StackPanel stackPanel)
1616
stackPanel.Visibility = Visibility.Collapsed;
1717
}
1818
}
19+
20+
internal static bool TryDowncastToFEorFCE(this DependencyObject d, out FrameworkElement fe, out FrameworkContentElement fce)
21+
{
22+
fe = null;
23+
fce = null;
24+
if (d is FrameworkElement fe2)
25+
{
26+
fe = fe2;
27+
return true;
28+
}
29+
else if (d is FrameworkContentElement fce2)
30+
{
31+
fce = fce2;
32+
return true;
33+
}
34+
return false;
35+
}
1936
}
2037
}

0 commit comments

Comments
 (0)