style

Word 2007 vba - Styles arent applied via macro

Hi, this is so weird. I have a macro code that basically creates a few tables, then types in some text in some of then, and then places a few text placeholders. The problem appear when I try to apply styles to the text. At first I thought it was only the placeholders that aren't affected by the code. But it seems as though regular text, ...

How to link Property value to a Property of a Style in Blend 4?

I created a Style template in Blend 4 for a button, but I'm not sure how to link the Label's Content to the Button's Content property. Here's the style XAML: <Style x:Key="NavButton" TargetType="Button"> <Setter Property="Background" Value="#FF1F3B53"/> <Setter Property="Foreground" Value="#FF000000"/> <Setter Property="Pad...

Add style switcher to Rails App admin section?

Hi Everyone, I have been working on a Rails template recently called BaseApp2. You can see it on GitHub here: http://github.com/dannyweb/BaseApp2 There is an administrators section setup which allows the management of Users and I am working on the ability to add announcements to the public site via the admin section. What I would rea...

Moving Delete icon on UITableView in 'grouped' style into the cell?

I have a UITableView style set to grouped. This works correctly except when in edit mode the 'minus' icon for Deleting a cell isn't within the cell. It's to the left. In the Weather App that icon is in the cell. Anyone know how to fix this? Image here: http://i32.tinypic.com/xclv02.png ...

WPF Style datatrigger on Border background

I have the border below. Why would the Foreground of my TextBlock work correctly but the Background of the border always stay the same (as if the IsDeleted property is always false) <Border DockPanel.Dock="Top" BorderBrush="Black" Background="#CBE2FF" BorderThickness="2" CornerRadius="5" Padding="0" Margin="5"> <Border.Style...

GoToState does not work for ControlTemplate in UserControl

Hi, I am totally lost and I would really appreciate your help on this. My final goal is to create a user control that will contain two control templates. Square and a Circle. Based on a type the control will display one or the other. When the mouse enters the shape the Opacity will change to 0.2. The first part works but the Opacity do...

usercontrol default style

Hi I've created a user control like this: <UserControl.Resources> <LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0"> <GradientStop Color="#F3F3F3" Offset="0"/> <GradientStop Color="#EBEBEB" Offset="0.5"/> <GradientStop Color="#DDDDDD" Offset="0.5"/> <GradientStop Color="#CDCDCD" Offset="1"/> ...

WPF Style DataTriggers

Hi I have a Data Trigger in a style targeting a TextBlock where I am trying to change the Text and background of a TextBlock <DataTrigger Binding="{Binding ElementName=..., Path=IsVisible}" Value="False"> <DataTrigger.Setters> <Setter Property="Text" Value="Collaps"></Setter> <Setter Property="Background" Value="Somethin...

Override ControlTemplate - not Style

I'm overriding the Content of a Button. My problem is that the default style of the button gets overridden when I do this. How can I keep the old style (the old style defines mouseover, mouseout effects and the like)? This is my code: <Fluent:DropDownButton SizeDefinition="Small"> ...

jQuery tabs, use like menu, load page when click on link

Hello, I have added jQuery tabs to my upcomming site. So far no problem. But I want - when clicking on a tab - that it should do and behave as a regular link. Exampel 1: Look at this link http://jqueryui.com/demos/tabs/default.html. When clicking on the options: Nunc tincidunt Proin dolor Aenean lacinia It loads the content from ...

WPF Menu arrow on the first level

Help me please with wpf menu. I want the arrows showing that a menu item has also subitems. By default these arrows get placed beginning on the second level. but I want them to be shown on the first level also. I don't clearly understand what to change and how. Although I found <Trigger Property="Role" Value="SubmenuItem"> inside ...

Using default font styles in Android

How do you use the Android default font sizes in xml? I tried: android:textAppearance="@android:style/TextAppearance_Large" But I get: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@android:style/TextAppearance_Large'). ...

android: styling ListView items from custom CursorAdapter

I have a custom CursorAdapter which I'm using to inflate a custom item layout and style accordingly, as shown in the code below. My issue is that sometimes the wrong style information is supplied even though the data coming from the DB is correct (so for the below example I'll get isEvent == true but it'll go on to style as if isEvent =...

C++: Inheritance v. Containment for a templatized class

I have the following struct: template <typename T> struct Odp { T m_t; }; I want to specialize it so I can add an operator so the type plays nicely with STL sets. (I can't modify Odp directly; it's legacy code.) Here are two methods I see of doing it: struct Ftw : public Odp<int> { bool operator==(const Ftw& rhs) { ...

Asymmetric behavior for __getattr__, newstyle vs oldstyle classes

Hi, this is the first time I write here, sorry if the message is unfocuessed or too long. I was interested in understanding more about how objects'attributes are fetched when needed. So I read the Python 2.7 documentation titled "Data Model" here, I met __getattr__ and, in order to check whether I understood or not its behavior, I wro...

How can you turn on word wrapping for all tool tips in Silverlight 4?

In my Silverlight 4 application I have some long tooltips. By default these tooltips appear one one very long line. For example: <TextBox Text="Test1" ToolTipService.ToolTip="One tasdg asdg as da sdg asdg asdg asdg asd gas dg a sdg a sdg a sd a sd g asdasdgasdg sadgasdgasdg asdg asdg asd as a sd g a sdg ...

WPF DataGrid MouseOver on DataGridRow

I can't figure out why the first part of code isn't working, but the second is. PART 1 <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" ...

Where can i find the default style for a WPF DataGridRow

Hey Any idea where i could find the default style XAML for the WPF DataGridRow? The goal is to change the color of the row when you hover over it or select it. i dont like the ugly blue :) Thanks! ...

What is the purpose of the 'div' selector and why do so many developers use it in their style sheets?

Looking through style sheets from popular & unpopular websites I have found the div selector included in them. The bottom four examples were taken from the style sheets of the popular sites Stack Overflow, Github, Youtube & Twitter: div.form-item-info{padding:4px 0 4px 4px;width:80%;color:#777;} .searchFooterBox div span.smallLabel{fo...

Ajax: Change responseText font color based on result

Hi. Programmers here have been extremely helpful in resolving issues for me in the past, so I thought I'd ask an Ajax question. It's probably a simple fix, but I'm new to Ajax. What I'd like to do is change the style of the responseText to red if the result is the pharase, "NOT FOUND". Otherwise the text will be black. Here is the scr...