I have a resdict.xaml file which is a resource dictionary
This file is linked in my window xaml file window.xaml.cs:
<Window.Resources>
<ResourceDictionary Source="resdict.xaml" />
<Window.Resources>
Now, in window.xaml.cs, I also have this code for the storyboard:
<Storyboard Completed="HandlingEventHandler">
....some code...
</Storyboard>
When the storyboard is used and completes its launch, it calls HandlingEventHandler (). This is what I want.
Now we will move the storyboard code to the resdict.xaml resource dictionary file.
I can still use the storyboard perfectly, it does its thing, it plays the animation and all that, but HandlingEventHandler no longer starts. Why is this?
Is there a way to fix this without creating a partial class for the dictionary file?
For example, if I create a staticString HandlingEventHandler, I can do something like:
<Storyboard Completed="{Static: Myclass.HandlingEventHandler}">
?