How do you change Background for a Button MouseOver in WPF?

To remove the default MouseOver behaviour on the Button you will need to modify the ControlTemplate. Changing your Style definition to the following should do the trick: <Style TargetType=”{x:Type Button}”> <Setter Property=”Background” Value=”Green”/> <Setter Property=”Template”> <Setter.Value> <ControlTemplate TargetType=”{x:Type Button}”> <Border Background=”{TemplateBinding Background}” BorderBrush=”Black” BorderThickness=”1″> <ContentPresenter HorizontalAlignment=”Center” VerticalAlignment=”Center”/> </Border> </ControlTemplate> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property=”IsMouseOver” Value=”True”> … Read more

How can I run a PHP script in the background after a form is submitted?

Doing some experimentation with exec and shell_exec I have uncovered a solution that worked perfectly! I choose to use shell_exec so I can log every notification process that happens (or doesn’t). (shell_exec returns as a string and this was easier than using exec, assigning the output to a variable and then opening a file to … Read more

Gradients in Internet Explorer 9

Looks like I’m a little late to the party, but here’s an example for some of the top browsers: /* IE10 */ background-image: -ms-linear-gradient(top, #444444 0%, #999999 100%); /* Mozilla Firefox */ background-image: -moz-linear-gradient(top, #444444 0%, #999999 100%); /* Opera */ background-image: -o-linear-gradient(top, #444444 0%, #999999 100%); /* Webkit (Safari/Chrome 10) */ background-image: -webkit-gradient(linear, left … Read more

Is there a way to use use text as the background with CSS?

SVG text background image body { background-image:url(“data:image/svg+xml;utf8,<svg xmlns=”http://www.w3.org/2000/svg” version=’1.1′ height=”50px” width=”120px”><text x=’0′ y=’15’ fill=”red” font-size=”20″>I love SVG!</text></svg>”); } <p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p> <p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p> Here is an indented version of the CSS so you can understand better. Note that this does not work, … Read more

iOS app icon with transparent background showing black background on device

From the apple developer website after a quick search: Avoid transparency. An app icon should be opaque. If the icon’s boundaries are smaller than the recommended sizes—or you use transparency to create “see-through” areas—the resulting icon can appear to float on a black background, which tends to look especially unattractive on the beautiful wallpapers that … Read more

Setting the Vim background colors

As vim’s own help on set background says, “Setting this option does not change the background color, it tells Vim what the background color looks like. For changing the background color, see |:hi-normal|.” For example :highlight Normal ctermfg=grey ctermbg=darkblue will write in white on blue on your color terminal.

How can I put the current running linux process in background? [closed]

Suspend the process with CTRL+Z then use the command bg to resume it in background. For example: sleep 60 ^Z #Suspend character shown after hitting CTRL+Z [1]+ Stopped sleep 60 #Message showing stopped process info bg #Resume current job (last job stopped) More about job control and bg usage in bash manual page: JOB CONTROL … Read more

Preloading CSS Images

Preloading images using CSS only In the below code I am randomly choosing the body element, since it is one of the only elements guaranteed to exist on the page. For the “trick” to work, we shall use the content property which comfortably allows setting multiple URLs to be loaded, but as shown, the ::after … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)