-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Must have a Storyboard object reference before this trigger action can execute in TimePicker #4065
Comments
Hi @shahshyam Please fill in the entire issue template and provide a sample App. I cannot reproduce your issue with the latest version of MahApps. Happy coding |
@shahshyam Which version of MahApps are you using? |
Sorry for delay response. I am using latest version of Mahapp. My project structure is It is vsto addins which load sidebar . The sidebar was WinForms user control and its load WPF usercontrol on it. WPF user control is using MahAppControl called TimePicker. It is working as normal WPF Application. Other controls are loading on window form hosted WPF control but TimePicker give exception |
@shahshyam So you have the WPF inside a WinForms control? Can you check if you add all necessary resources at your WPF control? Or is there also a App.xaml? |
yes, I have wpf control in side WinForms control and there is not any App.xml and other control is working as expected like tabcontrol , calendarpicker etc. I have includes all there font, control and theme files under UserControl.Resource tag |
@shahshyam Ok, thx for the clarification. |
I have the same problem. I´m using the latest version too and in my case the WPF is not inside WinForms control. |
I have the same problem and it also doesn't work in a UserControl. |
Replace DynamicResource with StaticResource in Storyboard Triggers
Is there a work around for this issue while this remains open? |
Hi @derekdd23 I still cannot reproduce this issue. May it be possible to provide a not working sample App? To answer your question: at least you can grab the original See: d6c712f Happy coding |
… get Storyboards inside Triggers Changes made by Tobias Ernst @TSerious
Hi,
I am attaching a compressed file with the project that reproduces this problem when the application starts. Thanks!! |
@pacoweb It works now with the latest changes. |
Thanks! When is the nuget package update scheduled? |
@pacoweb v2.4.5 is out now |
Thank you! Great job! |
My XAML code
<mah:TimePicker Grid.Row="2" Grid.Column="0" Margin="0,0,0,10" >
</mah:TimePicker>
Getting following error in TimePicker.
Error detail :
System.Windows.Markup.XamlParseException
HResult=0x80131501
Message=Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
Inner Exception 1:
InvalidOperationException: Must have a Storyboard object reference before this trigger action can execute.
Visual Studio 2017 Enterprise /VS 2019 community
Net 4.6.
The text was updated successfully, but these errors were encountered: