Results 1 to 2 of 2
  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007

    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 :

            <SoundPlayerAction Source="C:/PlayBeep.wav" />
    problem is, this is only done once , I tried to find how to make it repeat but could not find that, can anyone help ?


  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002

    Re: Play sound in DataTrigger

    You could post some more code, that might help
    VB6 & C# (WCF LINQ) mostly

    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.