styles

Binding custom dependency property to custom WPF style

I have an issue when designing a inherited Expander. My intention is to have a progress bar behind the toggle button and text in the default Expander header. I have this XAML code which gives me the progress bar in the header. It is a custom style. <Style x:Key="CurrentScanExpanderStyle" TargetType="{x:Type local:ProgressExpander}"> ...

reset multiple css styles for one single div element

Hello, my question is if it is possible to reset css styles (a lot off them) for a single div and all elements that are contained in that div. I am asking, because I found this tutorial for a jquery shoutbox that has it's own css file. I can not just copy the styles over to my own css file, because it will screw up the rest off the pa...

overridden styles for flex module

Can a flex module have styles different from the main application which loads the modules? Meaning... can I have a main set of styles for the application, and separate styles for each module.. with each of them rendering their own styles without disturbing the other at runtime? My specific case: The main application is developed by me.....

Disabling Vista-Style controls in Application

So I'm trying to recompile an application to add some minor features. All is well, except for one thing. The old version has all the windows-vista-style dialog buttons. The corners are rounded, the radio buttons look different, etc. Example How do I turn those things on? I want it to look/feel like the original. EDIT: If anyo...

removing html element styles via javascript

Hello all, I'm trying to replace an element's inline style tag value. The current element looks like this: `<tr class="row-even" style="background: red none repeat scroll 0% 0%; position: relative; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" id="0000ph2009-0...

WPF - Change a button's content in a style?

I'm trying to do something similar to this: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid> <Button> <Button.Style> <Style TargetType="{x:Type Button}"> ...

Deactivate FocusVisualStyle globally

I want to globally deactivate the focus rectangles in my WPF application. For single controls that can be done via <Style TargetType="Button"> <Setter Property="FocusVisualStyle" Value="{x:Null}" /> </Style> but how to apply it to all controls in my application. When applying to FrameworkElement nothing happens. What I need would ...

Syntax Highlight with Word 2007

Is there a way, in Microsoft Word 2007, to set up a style that will highlight VB.NET keywords, just like the Visual Studio IDE does? ...

ASP.NET Gridview SelectedRowStyle and EditRowStyle

I want the gridview SelectedRowStyle and EditRowStyles to be mutually exclusive so that the edit-row style is turned off when another row is selected and the selected-row style is turned off when another row is put in editing mode. I tried handling OnRowEditing and changing the CssClass for the currently selected row, but that didn't wor...

How to set styles from database runtime?

Hi all! I'm having hard time finding a nice and clear solution on how to create a web page that loads it's style attributes from a database f.ex. button back- and forecolor, font size etc.to a Session object and from there would set them on each page to needed controls. I have a loader in the Global.asax -> Session_Start which loads t...

Flex Advanced Datagrid Condition Row Background Color

Hi All, I am trying to set the row background color for the advanced data grid control in Flex 3. Does anyone know if this is possible using a style function. Currently my style function looks like: public function myStyleFunc(data:Object, col:AdvancedDataGridColumn):Object { if (data["status"] == "PRICING") ...

WPF: resize parent container when child's ControlTemplate changes

I have a custom error template for my TextBox. Something like this: <Style TargetType="{x:Type TextBox}" x:Key="ErrorTemplateStyle"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> <StackPanel Orientation="Vertical"> <Border BorderBrush="Orange" Bo...

ASP.NET Control Styles for Child Controls

On a control like the GridView, you can specify the HeaderStyle attributes as attributes of the GridView element (e.g., HeaderStyle-Wrap="false"), or as an attribute of the HeaderStyle child element. Is one way better than the other? Or, is it just a readability preference? <asp:GridView ID="myGrid" runat="server" HeaderStyle-Wrap="fals...

What's css style "p + p"?

Using firebug, I found that blueprint css framework is applying this style to my <p> tags: p + p { margin-top:-1.5em; text-indent:2em; } I don't know what the + means. What's the difference between this and just definining a style for p without + p? ...

IE7 border issue

Hi, Im my web page there is a div with width 0 which has a left and right border of 1px width each. In Firefox when I give the following code it holds the div with 50px width, but it happens to be 48px wide in IE7. <div style="width: 48px; border: #a9a9a9 1px solid; height: 30px;">test div</div> Can anyone help me resolving this issu...

WPF - How to make Style.Triggers trigger a different named style to be applied

Hi guys Lets say I have the below: <Style TargetType="{x:Type TextBox}"> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush" Value="Gray" /> <Style.Triggers> <Trigger Property="IsFocused" Value="true"> <Setter Property="BorderBrush" Value="Green" /> <Setter Proper...

C# var keyword usage

Possible Duplicates: What to use: var or object name type? Use of var keyword in C# Whats the point of the var keyword? Should I always favour implictly typed local variables in C# 3.0? I have just installed a trial version of ReSharper to evaluate it for my company. One thing that I have noticed is it is suggesting that I...

CSS question - transparent underlined textbox - howto?

Good Morning, Quick CSS question. Does anyone know any quick css to make an underlined transparent textbox? I basically want the textbox to be invisible except for the bottom border. I need it to function normally. Do I just remove left, right, and top borders and set it's background to transparent or something? Any examples of how to p...

How to style a XAML window with a ResourceDictionary that exist in a DLL?

Hi I am trying to create a reusable XAML Window in a DLL. I have placed in the Themes folder a new ResourceDictionary (I even merged it in the Generic.xaml), but when I try to use its styles in the window, I get an error message that the style doesn't exist: <Window Style="{StaticResource ModalWindowStyle}" > <!-- I have also the f...

How do you disable MouseOver effects on a Button in WPF?

I'm trying to disable the MouseOver effect on buttons, or at least change the colour of it, in WPF. I'm using the following style: <Style x:Key="Borderless" TargetType="{x:Type Button}"> <Setter Property="OverridesDefaultStyle" Value="True"/> <Setter Property="Template"> <Setter.Value> ...