styles

Preloading images for element states

霸气de小男生 提交于 2019-12-24 06:41:40
问题 i've got some jquery script that changes element image on mouseover and the problem is it doesn't preload images.. I know the code is crappy a little (ok, ok really crappy), but i have to work with it, so.. <script type="text/javascript"> $(document).ready(function() { $('#searchbox_submit') .mouseover(function() { var src = $('.searchbox_submit').css("background-image",'url("/wp-content/themes/Locator/images/search_over.png")'); $('.searchbox_submit').attr("src", src); }) .mouseout(function(

Change Font in Bitmap Style Designer

做~自己de王妃 提交于 2019-12-24 06:06:41
问题 Delphi XE7 provides the "Bitmap Style Designer" tool ('Tools > Bitmap Style Designer') which can be used to edit and create styles for your metro themed applications. Changing graphics and colors for buttons, checkboxes and labels works and looks pretty fly. But how can I change the Font Settings? To be more precise: What can I do to let the font settings take effect on my application? Of course there's a Fonts-Section where custom font-styles, -families, -sizes and so on can be edited, but

JuiceUI Change Theme / Style

非 Y 不嫁゛ 提交于 2019-12-24 04:19:11
问题 Is there an option to change the styles of JuiceUI controls? Any predefined themes? (If yes, I couldn't find any documentation on it.) Do I style them with regular CSS like other controls? (That didn't seem to work either.) TIA Edit: Here's how the button looks: (I had no preinstalled jquery themes in this one - this is a new website.) I did notice JuiceUI installed a content - themes folder with base, Fresh-Squeezed and Supercharged. Don't know where it's being referenced though and how to

Override typed textblock style for contentpresenter in WPF

这一生的挚爱 提交于 2019-12-24 02:48:09
问题 I have defined the Textblock style that are typed (as opposed to have a key value) so that it applies to all the textblocks. <Style TargetType="{x:Type TextBlock}"> <Setter Property="FontFamily" Value="MyFancyFont"/> <Setter Property="FontSize" Value="13.333" /> <Setter Property="Foreground" Value="Gray" /> </Style> Now I have a, say, TreeViewItem, which I'd like to show as blue background and as white foreground against dark background when it's selected. <!--part of the treeviewitem

OverridesDefaultStyle together with BasedOn in WPF

你说的曾经没有我的故事 提交于 2019-12-24 02:33:48
问题 If you set OverridesDefaultStyle to true, the default style won't be used. What is the result of using BasedOn at the same time? <Style x:Key="MenuButton" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="{x:Type c:MenuButton}"> <Setter Property="OverridesDefaultStyle" Value="True" /> </Style> Do the two instructions contradict each other in any way? Is it the default style underlying ToolBar.ButtonStyleKey that will be ignored? In this particular example I don't see

C# WPF - How to modify the ToolBar.ButtonStyleKey style

只愿长相守 提交于 2019-12-24 02:25:20
问题 I have requirement to show the toolbar button border on mouse Hovering and otherwise hide it. I tried to do the following: <Style x:Key="{x:Static ToolBar.ButtonStyleKey}" TargetType="Button" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"> <Setter Property="Foreground" Value="Blue"/> <Setter Property="Control.Background" Value="Transparent" /> <Setter Property="Control.BorderBrush" Value="Transparent" /> <Setter Property="Control.BorderThickness" Value="1" /> <Setter Property=

How can I apply the style of a ToolBar CheckBox to a regular CheckBox?

我们两清 提交于 2019-12-24 02:13:23
问题 I would like to style a regular CheckBox so it looks like a CheckBox inside a Toolbar : <StackPanel Orientation="Horizontal"> <CheckBox Style="{What to put here?}"> <Image Source="someImage.png" Stretch="None" /> </CheckBox> </StackPanel> Is there a way to obtain a reference to the Style use by the ToolBar and 'bind' to it? EDIT : The reason for this is because I want a few simple buttons to control the Visibility of some elements and I don't want to use a ToolBar just for this. 回答1: Never

Issue with rendering Open Sans Light on Firefox

和自甴很熟 提交于 2019-12-24 00:28:18
问题 I have no problem displaying html pages on IE and Chrome using Open Sans Light, however when using Firefox, it does not understand this type of fonts. This is a .css sections defining my fonts: .txtName { margin-left: 18px; font-size: 20px; color: #0140be; font-family: 'Open Sans Light' !important; font-weight:normal; line-height: 1.4em; } This is the part of html file that need to be displayed the same on IE, Chrome and FF: <div class="txtName-Main"> <h1 class="txtName">Your pathway to

WPF Style Resource not Working

孤街浪徒 提交于 2019-12-24 00:08:07
问题 All, I want to inherit a generic style for all DataGrid/ResourceDataGrid s in my application. To do this I have created a resource file called ResourceControl.xaml , in which I have <UserControl x:Class="ResourceStudio.Views.ResourceControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

Changing (Enable/Disable) GroupStyle in ListView for different category items

老子叫甜甜 提交于 2019-12-23 22:16:50
问题 How can I switch between GroupStyles for a ListView based on some conditions at run time? For instance I need to use Default for items that that have GroupStyle Header name null, and if it is not null then use the custom GroupStyle theme? I tried GroupStyleSelector , and it doesn't work, because it works for multi level grouping, and in my case I have only one level grouping. If yes, then how? Custom GroupStyle : <Style x:Key="grouping" TargetType="{x:Type GroupStyle}"> <Setter Property=