View Issue Details

IDProjectCategoryView StatusLast Update
0002528NoesisGUIC++ SDKpublic2023-03-07 00:09
Reportersteveh Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product Version3.2.0 
Summary0002528: Suggestion: Storyboard::IsPlayingOrQueued
Description

Hi guys,

We have several situations where we want to check if the Storyboard is playing or is due to play during the next update. I think the following would work:

bool Storyboard::InternalIsPlayingOrQueued(FrameworkElement target) const
{
Controllables::ConstIterator it = mControllables.Find(target);
if (it != mControllables.End())
{
Clock
clock = it->value;
NS_ASSERT(clock != 0);
return clock->GetCurrentState() == ClockState_Active || clock->GetCurrentState() == ClockState_Stopped;
}

return false;

}

I think checking for stopped clocks is enough since that's what they default to, and they will be set to activate during the next tick.

This is pretty useful when we want to kick off animations then later on run some conditional logic depending on whether the animations are currently playing or not.

Cheers

-Steven

PlatformAny

Activities

jsantos

jsantos

2023-03-06 23:37

manager   ~0008326

Hi Steve, is there any plan to update to the stable 3.2 (out of beta planned for next week) ?

steveh

steveh

2023-03-06 23:47

reporter   ~0008327

Hey Jesús, I doubt it, we're at the stage in the project now where all third party libraries are pretty locked in stone. We'd have to have a good reason to upgrade at this point, e.g. critical bug fixes which can't be individually pulled from SVN.

jsantos

jsantos

2023-03-07 00:09

manager   ~0008328

Yes, that makes sense. Thanks for the information.

Issue History

Date Modified Username Field Change
2023-03-06 18:59 steveh New Issue
2023-03-06 23:36 jsantos Assigned To => sfernandez
2023-03-06 23:36 jsantos Status new => assigned
2023-03-06 23:37 jsantos Note Added: 0008326
2023-03-06 23:37 jsantos Status assigned => feedback
2023-03-06 23:47 steveh Note Added: 0008327
2023-03-06 23:47 steveh Status feedback => assigned
2023-03-07 00:09 jsantos Note Added: 0008328