is FindResource is supported ?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

is FindResource is supported ?

Postby Sesztak » Sat Sep 17, 2016 4:18 am

Dear JS-Support,
is FindResource is supported ?, like :

Storyboard sb = this.FindResource("PlayAnimation") as Storyboard;

How to find resouces in e.g. <Page.Resources> </Page.Resources> or external resources ?

Thanks in advance,
BR,
Péter

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: is FindResource is supported ?

Postby Sesztak » Sat Sep 17, 2016 4:26 am

1.) Is this a proper way /syntax ?:
var storyboard = (Storyboard)mainPage.Resources["PlayAnimation"];

New question:
2.) how to set the target ??, like:
Storyboard.SetTarget(storyboard, buttonDoubleAnimationSample);

please, confirm.
Thanks,
Péter


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 32 guests

 

 

cron