Feb 28th, 2012, 10:28 AM
Play sound in DataTrigger
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 :
problem is, this is only done once , I tried to find how to make it repeat but could not find that, can anyone help ?
<SoundPlayerAction Source="C:/PlayBeep.wav" />
Mar 3rd, 2012, 02:52 PM
Re: Play sound in DataTrigger
You could post some more code, that might help
Click Here to Expand Forum to Full Width
Survey posted by VBForums.