style

[jQuery UI - Accordion] Styling active header?

Hi, Simple issue: I am using Accordion without any UI themes (just barebones, using my own CSS). So far, so good, except that I cannot figure out how to set an "active" style for the currently selected header. The jQuery code: $("#menu").accordion({ event:"mouseover",header:"a.top" }); The HTML code: <a href="#" class="top">XXX1</...

WPF - Style for the scrollbars and background on a RichTextBox

What's required to create a style for a RichTextBox that includes visuals for the scrollbars and a background color for the space behind the text? ...

How can I prevent ASP.NET from adding to the inline styles?

I have an element that I'm trying to style: <tr runat="server" id="row" > ... </tr> And I set the style programmatically: row.Attributes("style") = "background: #cccccc;" I get this output: <tr id="SearchResults_myRepeaterPlain_ctl04_row" style="background: rgb(204, 204, 204) none repeat scroll 0% 0%; -moz-background-clip: border;...

WPF: Setting a binding for all TreeViewItem instance

Greetings, I'm using WPF with a Model-View-ViewModel pattern, and I have a view model with an IsSelected property which I want to bind to a TreeViewItem's IsSelected property for all TreeViewItems in the scope. I'm attempting to do this with a Style and a Setter. This works apparently for the root-level TreeViewItems, but not for their ...

WPF XAML Style Gallery

WPFThemes is a good resource for WPF themes and styles. As of now they do not cover many controls like Window Popup Datagrid etc.. Is there any other resource to help developer in styling a WPF application? ...

Flex scrollbar styling issue

Hey buddy, I'm trying to style vscrollbar and hscrollbar inside a Vbox.But there's always a white square thing at the right bottom cornor which can not be styled. My CSS is: ScrollBar{ downArrowUpSkin: Embed(source="assets/images/scrollbar/arrow_down.png"); downArrowOverSkin: Embed(source="assets/images/scrollbar/arrow_down.png"); ...

Style triggers in Silverlight

Hi, I am trying to use style triggers in silverlight like so: <Path Canvas.Top="20" Stroke="#FF808080" Data="M 0,20 20,0 40,20 Z" StrokeLineJoin="Round"> <Path.Style> <Style TargetType="{x:Type Path}"> <Setter Property="Fill" Value="DarkGray"/> <Style.Triggers> ...

DataTrigger does not work as expected

I have a combobox bound to a ViewModel property called "Property". "Property" is a TypeDescriptor. When user changes value in combobox the "Property" is updated. On the UI i would like to either hide or make visible different controls: textbox, combobox, date picker etc. Problem is datatrigger is not working as expected. <Style x:Ke...

WPF ControlTemplate: How to provide a default value for TemplateBinding?

I am writing a WPF control that subclasses a Button. I then provide a default style in Themes\generic.xaml, that looks like this (simplified): <Style TargetType="{x:Type WPFControls:MyButton}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type WPFControls:MyButton}"> <Button x:Name="PART_B...

WPF binding to another property's binding in a style

I'm not sure the best way to ask this question (sorry for the ambiguous question title), but essentially I'd like to set the MaxLength property on a TextBox using a value converter that is passed in a property from the data context, and the property on the passed-in property as the converter parameter. I'd like to do all this in a style,...

What is the difference between "word-break: break-all" versus "word-wrap: break-word" in CSS

I am currently wondering what is the difference between the two. When I used both they seem to break the word if it is not fitting the container. But why did W3C made two ways to do it? ...

Grid and columnDefinition

I am having a Grid in WPF application. I want to display all the text block on the first column in the grid to be aligned to the right. so I thought I could do it with ColumnDefinition and Style like this: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition> <ColumnDefinition.Resources> <Style Targe...

Default SVG style

What is the default SVG style ? for example, what is the default font of a new SVG document ? Is it described in the SVG spec ? <svg><text x="10" y="10">Hello</text></svg> Thanks ...

Having troubles color coding items in a listbox/listview/multiline textbox

Hi, I have an application that works similar to a chat, except beside the location where they submit their message they also have a dropdown that selects the type of message it is. When someone sends a message the message appears in a listbox (can also be a listview or a multiline textbox if that would work easier for what I want to do...

How to display static text and dynamic text(generated by variables) differently in PHP?

A HTML file is generated by a PHP file. Generally speaking, what a user can see from a HTML file can be divided into two parts, one part is static; another part is dynamic, this part is represented by variables in the PHP file. For example: $html=<<<eod $title<br/> Total Price:$row[column1] Quota:$row[column2] <pre>$row[column3]</pre>...

Hide controls in FlowDocumentReader

Is it possible to hide controls at the bottom like zoom slider, page navigation etc in FlowDocumentReader? It seems that only search can be hidden through the IsFindEnabled property. ...

Documentation style

I'm a PHP web developer, who is looking for a well proven method for writing a good documentation (aka docblock). There are several documentation styles, for instance: The descriptive but not categorized (#1): /** * Element name: class, function, variable etc. (Optional) * * Short description. * * Long description. */ ...

Flex Builder: Style is displayed in design perspective, but not in browser when I compile and run it

Hi, I am trying to use image as a background of my application, I have not success :( Here is the code which shows how I do it: <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" borderColor="#ECEEEF" color="#000000" cornerRadius="5" creationComplete="main()" xmlns:MyComp="components....

How to access a component in a style in wpf?

I rolled my own tab control with left and right buttons that, when clicked, scroll the entire tab control one way or the other. I have functionality that I can't exactly do in XAML, so I need access to these buttons in coded-behind. They are in my Tabcontrol's style, and if I assign names or x:names to them, I still can't access them i...

How to style uitextview to like Rounded Rect text field ?

Hello all, I am using a text view as a comment composer . In the properties inspector I can't find anything like border style property so that I can make it to rounded rect something like uitextfield. so the question is : How to style uitextview like uitextfield rounded rect ? ...