styles

Flex Chart Axis style: what is this style called?

Hi Guys, I'm having difficulty with Flex charts. I'm working on a complete rewrite of a flex app that has a fair bit of charting involved, and I've been instructed to get the look and feel as close to the previous version as possible (for the initial release). I can't seem to find the style property which dispays a blue, tabbed sort of...

CSS Reset for one div

I am trying to create a div on my site that is supposed to work like the descriptions on Ebay where all the css styles of the main site are stripped off and then whatever styles are in the div are what style the div (if you can understand what I mean). I've been trying to use a reset stylesheet, but my problem is that the reset is also r...

.Net enumerate winforms font styles?

I have been searching around for a way to list the valid font styles for a given font using the .Net framework (even if I have to pinvoke gdi32 or some other API) since not all fonts fall into the System.Drawing.FontStyle enum values (Bold, Italic, Regular, Strikeout, Underline). A perfect example of a font that does not fit the bill is...

Adding multiple inline styles to the head with DOM and JavaScript

Hello, I use dom to add inline styles directly to the head of a web page via Javascipt. The function goes like this: // Create internal style sheet function createStyle(styleText, styleName) { // Create the node var cssNode = document.createElement('style'); cssNode.type = "text/css"; cssNode.rel = "stylesheet"; cssNode.titl...

Why doesn't a specific CSS rule override a general one?

Author's edit: sorry for the confusion on this. I changed the path to another folder and was reading from the old files! My fault. Thanks for all the help. My understanding is that if you place a specific rule underneath a general rule in CSS, the specific one should override the general one. For example, on this page which is in develo...

WPF Trigger Binding: What's the best way to bind an enum value to visiblity?

I have a user control (NameField). Within it I have a stackpanel containing 3 Grids: StandardView, FluidView, OtherView. Within the code-behind I have a DependencyProperty called View of type NameFieldView (enum). The enum contains STANDARD, FLUID, OTHER. I think I have to create a converter, but I'm not sure if that's necessary. I basi...

windows phone 7: how to create an application theme?

I would like to define a theme for my Windows Phone 7 application, to be applied at application launch regardless of the system theme set by the "Settings" phone menu. How can this be done? I see on MSDN that Fill="{StaticResource PhoneAccentBrush}" allows the control using that brush to respond to system-wide theme changes. How can I d...

Are there predifined styles for making arrow buttons in windows phone 7?

I want to make some buttons in my app that look like the common round buttons with the arrows found all over the win 7 apps. Anyone know where I can find resources for these? UPDATE Here's a great tutorial on creating round buttons in WP7. This is exactly what I was trying to do, but I will use the images mentioned by John Gardner belo...

WPF Validation: Styling/templating validation properties

I have a WPF screen that displays a number of TextBox inputs. I have a style that handles all the validation: <Style x:Key="TextBoxStyle" BasedOn="{x:Null}" TargetType="{x:Type TextBox}"> <!-- etc etc --> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> <Border Gri...

Binding Scope - Styles & Templates

I've got a custom ItemsControl in my project and I'm trying to write a style for it that combines a static list of items with a list of items on a Dependency Property on the control itself. Here is the respective XAML in my Resource Dictionary: <x:Array Type="{x:Type System:Object}" x:Key="Static_CloudItems"> <Button>One</Button> ...

Memory issue - Does Webkit cache CSS styles of elements?

Hi I am running into a memory issue with webkit browsers on Windows with my current project. I will first describe the project I work on, then describe the actual issue. Please take my apologies for the long text, I hope it's not too much.. I am working on a project that lets you view a printed magazine online. For iPad support it is d...

Runtime theme switching with explicit styles in Silverlight 4

It's been requested that we add dynamic theme switching to our application, and I'm having problems figuring out how to do this. Here's the current situation: our application has a merged resource dictionary with explicit (not implicit) styles. The views in our application refer to these styles through the StaticResource markup exten...

How to get more control over gradients

I have the following drawable: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; <gradient android:startColor="#2F2F2F" android:endColor="#5A5A5A" android:angle="90" android:dither="true" /> </shape> Is there anyway to start the start...

Mimicking Validation Behaviour without Validation

We have several data objects in our application that wind up bound to grids. We have them implementing the IDataErrorInfo interface, so that by adding error messages to the properties, we see the rowheader change style and the DataGridCells gain a red border. All well and good. We now have an additional requirement that rather than...

Android: Preference Style

I have made a custom preference (i.e. a preference with a custom layout) which displayed in the preferences list of a PreferenceActivity. The layout is created in code. The problem is that the font of the TextView created in code looks somewhat different than Android's standard preference font. So the solution would be to apply the s...

How to define resources AND a MergeDictionary with a key in a SL4 page

This is probably a really stupid question but I can't figure this out. I have a page with a MergeDictionary defined: <navigation:Page.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="../Assets/TourneySetupStyles.xaml"/> </ResourceDict...

Styling the Validation Error on WPF DataGridCell

I'm trying to change the way a DataGridCell appears when it has error content. By default, it has a white background and a red border when it encounters an error. However, it seems that my attempts to set the Validation.ErrorTemplate of this class are being ignored, as are my Triggers on the Validation.HasError property. All of the co...

HorizontalContentAlignment of SelectedItem not stretching perfectly

I made a custom styled list in WPF: <DataTemplate x:Key="SelectedTemplate"> <StackPanel Background="#FF4E4E4E" HorizontalAlignment="Stretch"> <TextBlock Text="{Binding Path=Title}" Foreground="#FFD80000" /> </StackPanel> </DataTemplate> <Sty...

Should jQueryUI apply styles automatically

I've created a theme and applied it to my ASP.NET MVC site. However, the elements on the page aren't picking up the styles automatically. If I do the following for a specific element they get applied appropriately: $("input[type=button]").button(); $("input[type=submit]").button(); Am I right in thinking I need to do this for all th...

Where is DataGridHeaderBorder for WPF DataGrid?

I found some styles for WPF DataGrid online and all of them are for pre-release DataGrid. Now, I'm using .NET4 DataGrid, I got a compile error complaining DataGridHeaderBorder cannot be found. Based on Microsoft, it is in Microsoft.Windows.Themes namespace. No matter what I try, I can't make it work. ...