styles

Create reusable chart style in reporting services

I would like to be able to change the formatting of groups of reports separately from the content of the report itself. Then if we decide to change the way we present our reports this can be changed in one central style type sheet or something similar. Is this easy to do? Is reporting services capable of this or am I using the wrong tool...

Android theme customization

Hi, I am working on theme-ing my android app. After I went through 'Styles and Themes' in Android SDK and this article, I am still left with one question. Simply put, how can I use android:textSize to be 14 dip for one TextView, while 18 dip for another TextView, inside a Theme? I know how to do this with styles. I can define two dif...

WPF style basedon current

Is there a way to create a style that extends the current style, i.e. not a specific style? I have a WPF application where I create styles to set some properties like borders or validation. <Style TargetType="{x:Type Button}" BasedOn="{StaticResource {x:Type Button}}"> <Setter Property="Padding" Value="5,2,5,2"/> </Sty...

How can I change styles of XAML file using Data Binding?

I'm binding a collection of objects to a listbox in WPF, for simplicity we'll say the object i'm binding has 3 propertys: Name, URL, IsBold. What I want to do, is have it displayed different if the IsBold is set to true, again as an example I want to set the TextBlock that Name appears in, to be bold. Is something like this even possib...

Applying a FontFamily to all Controls in Silverlight 4 Beta

I'd like to give every Control a certain FontFamily and FontWeight in Silverlight 4.0. I know that styles can now apply to all controls of a certain type, so I tried this: <Style TargetType="Control"> <Setter Property="FontFamily" Value="Arial" /> <Setter Property="FontWeight" Value="Bold" /> </Style> Unfortunately, that doesn...

Elegantly override style of ComboBox's ToggleButton in WPF

I have a question regarding how to elegantly override an arbitrary element deep inside a control's visual tree. I also have attempted to resolve it in a few different ways, but I've run into several problems with each. Usually when I try three different paths and fail at each one I go downstairs, have a coffee, and ask someone smarter ...

Adobe Flex Progress Bar for LoadStyleDeclarations

I'm loading a rather large swf as style with the following command: StyleManager.loadStyleDeclarations("assets/modules/"style.swf",true,false,ApplicationDomain.currentDomain); The style is loaded fine but now I would like to add a progress bar to it, but I do not know how to do so. I am rather new to Flex and found only examples refer...

WPF- Catch the clicking of a button that was added to a style (ListBoxItem)

I have added a button to a template for a ListBoxItem. I want to know how to catch the click for the button (not selecting the ListboxItem). The button clicks just fine in the UI, but I can't seem to find out how to wire up code so I can catch it. I tried using: <EventSetter Event="Click" Handler="Button_Click"></EventSetter> but...

Select an element that doesn't have a background set

The title pretty much says it all. Using jQuery, I need to select all elements that do not have a background color or image defined, and apply at least a white background to it. Thanks! ...

Setting content in an inherited (BasedOn) style.

I have a base style, say: <Style x:Key="DefaultButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Background" Value="{StaticResource DefaultButtonBackground}" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Grid x:Name="ButtonShapeGrid"...

multiple styles wpf from which user can choose

I want let the user choose what style my application has.Small example would be 2 buttons, if user presses button 1 then the background color turns red, if the user presses button 2 then the backgroundcolor turns green. How do i do that? do i use multiple resource dictionaries? and apply them when the button is pressed? Whats the most ...

Change the FocusVisualStyle in the entire application

While making a WPF application I would like to change the default FocusVisualStyle (the black "marching ants" border) to something else, like for example a blue border. I would like to make this change for every control on the entire application. Is there an easier way then changing the default style for every type of control? Thanks ...

flex 3 retrieving colors values from MySql database with AMFPHP to style flex 3 Components at runtime

Hello Stackoverflowers, I'm making a social community application with profile. User must be able to style their profiles. That's why i'm looking for a way to store and retrieve color values from a MySql database to style flex 3 components at runtime. Does anybody know how i could accomplish this. (I don't want to use Runtime css swf s...

Silverlight Button Style gets stuck on fullscreen

So I have a number of buttons in Silverlight that I've made from images. In each case the button has a regular image and a hover image. I've used Blend to have the hover image fade in over .15 seconds on hover. The problem with this is that I can't figure out how to access the images anymore, since they are embedded in the style. So, I...

WPF Setting style based on datatype?

Here's the problem. I'm binding a TreeView with a few different types of objects. Each object is a node, and SOME objects have a property called IsNodeExpanded, and of course, some others don't. Here's my style: <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="{Binding IsNodeExpanded, Mode=TwoWay}" /> ...

javascript transparent alert centered and ontop.

I have almost done it.. but there is something wrong: function doAlert(title,text) { var alrt='<div onclick="this.parentNode.removeChild(this);" id="alert" style="background-attachment: scroll !important;background-clip: border-box !important;background-color: black !important;background-image: none !important;background-origin: paddi...

Hadoop pig latin style guide?

Hi, I'm looking to take the short cut on formatting/style for pig latin (hadoop-ay). Does anyone know where I can find a style guide? -daniel ...

WPF overriding setter properties

I'm using a style in my XAML for a label: <Style x:Key="TreatEye" TargetType="Label"> <Setter Property="Foreground" Value="#d1d1d1" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="FontSize" Value="30" /> <Setter Property="Template"> <Setter.Value> <ControlTem...

How can I create a WPF style so all Image controls have a MouseDown(click) event on it?

Since the Image control doesn't have a Click event, I simulate it using MouseDown event and it works exactly like a Click. Here's my style: <Window.Resources> <Style x:Key="imageStyle" TargetType="{x:Type Image}"> <Setter Property="RenderTransform"> <Setter.Value> <ScaleTransform /> ...

How can styles be merged in Silverlight?

My goal is to extend the already set style of an object. So assuming I have the following two styles: <Style TargetType="Ellipse" x:Key="OriginalStyle"> <Setter Property="Fill" Value="Blue"/> <Setter Property="Width" Value="100"/> <Setter Property="Height" Value="200"/> </Style> <Style TargetType="Ellipse" x:Key="NewStyle"> ...