-
Feb 28th, 2012, 11:28 AM
#1
Thread Starter
Junior Member
Play sound in DataTrigger
Hi,
I work in VS2010 - and I am a beginner in WPF, in our WPF project we have a sort of a timer that retrieve data from a server every 1 second, according to that data we change the GUI (i.e. changing a button background color to blue), this is done in <DataTrigger>
my assignment was to add a sound (play a .wav file) repeatedly as long as the a specific value is set (same condition for the background of the button to be painted in color blue)
I have added the following code :
Code:
<DataTrigger.EnterActions>
<SoundPlayerAction Source="C:/PlayBeep.wav" />
</DataTrigger.EnterActions>
problem is, this is only done once , I tried to find how to make it repeat but could not find that, can anyone help ?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|