Within a Desktop app I have a toggle button: 

&lt;ToggleButton x:Name="CFStglBtn" Checked="cfsCBox_Checked"
              Unchecked="cfsCBox_Unchecked"
              IsChecked="True" HorizontalAlignment="Left" Margin="5,0,0,0"&gt;
    &lt;StackPanel Orientation="Horizontal"&gt;
        &lt;Image Source="assets\telephone.png" Margin="3,0,0,0" /&gt;
        &lt;TextBlock Text="CFS" FontSize="10" Margin="5,5,5,0"
                   Foreground="DarkSlateGray"/&gt;
    &lt;/StackPanel&gt;
&lt;/ToggleButton&gt;


For the Checked event I am setting a value and then executing a method FilterView(); 
//ommitting code 

Unchecked state is just the opposite. resets a variable and executed the method again

The question I have is I noticed when I uncheck the toggle button the button continues to pulse or flash ( going from blue to chrome) as if it still has focus. The button will stay like this until another button is clicked.

Is there a way to remove this focus so that when the button is unchecked the button goes back to a unchecked state without the flashing / pulsing color. 


As you can see from above this is a standard toggle button no styles or custom 
I tested this on just a regular button and I found the same occured when clicked the button will continue to pulse / flash until another button is clicked. 


How do you work around this or prevent this effect from happening.

Thank you


Question: Parse order and/or single/double quote issue with Calendar events and Google Map Info Window
Answer: I never used GoogleMpas for EECMS, but let's try something.

I already had some problems to solve because of nested exp:channel:entries and exp:channel:events.

So, let's first move them to an embed, but trying to reduce the number of times the modules are parsed and improve the performance.

{embed="events/.mapmarkers" event_ids="{exp:playa:parents channel='calendar_events' backspace='1'}{entry_id}|{/exp:playa:parents}"}


The default format of the variables of exp:channel:events is already YYYYMMDD. So you don't need to format some of your conditionals.

{if "{event_first_date}" != "{event_last_date}"}


Other conditionals, can have the double and single quotation marks replaced and the '%a' can be removed if you use '%H'.

{if '{event_first_date format="%Y%m%d%H%i"}' != '{event_last_date format="%Y%m%d%H%i"}' }


Your embed will look like this:

{if embed:event_ids !== ""}
    &lt;ul&gt;
    {exp:calendar:events parse="inward" event_id="{embed:event_ids}"}
        &lt;li&gt;
        &lt;b&gt;From:&lt;/b&gt; {event_first_date format="%F %j, %Y at %g:%i%a"}

        &lt;br /&gt;From:{event_first_date format='%Y%m%d%g%i%a'}
        &lt;br /&gt;To: {event_last_date format='%Y%m%d%g%i%a'}!
        Yes
            {if event_never_ends}
                (never ends)
            {if:else}
                {if '{event_first_date format="%Y%m%d%H%i"}' != '{event_last_date format="%Y%m%d%H%i"}' } &lt;b&gt;to:&lt;/b&gt;
                    {if "{event_first_date}" != "{event_last_date}"}
                        {event_last_date format="%l, %F %j, %Y at %g:%i%a"}
                    {if:else}
                        {event_last_date format="%g:%i%a"}
                    {/if}
                {/if}
            {/if}
            &lt;a href="{path=find-music/event/{url_title}}"&gt;{title}&lt;/a&gt;
        &lt;/li&gt;
    {/exp:calendar:events}
    &lt;/ul&gt;
{/if}


Because you're calling this twice on your template, I strongly suggest you to use stash to save the content of the embed.