Setting WPF RepeatBehavior to "none" in VB.net Code Behind -


How do I set up duplication of a WPF 4 mediatimeline in VB.net 2010 code?

I understand that the following code always sets repeats:

  MyMediaTimeline.RepeatBehavior = RepeatBehavior Forever   

However, no presets seem to be for anyone to establish a repeat behavior, I'm guessing that I have to do something like the following, but "? "

  MyMediaTimeline.RepeatBehavior = New repetitive (?)   

As a side note, I have the following above the class.

  Importing System. Windows Media. Animation    

Behavior to get the default (play once) , You only have 1 ()

MyMediaTimeline.RepeatBehavior = New RepeatBehavior (1) HTML>

Comments