style

WPF Trigger / Style overrides another

I have a listview defined as such <ListView Width="auto" SelectionMode="Single" ItemContainerStyle="{StaticResource ItemContStyle}" .... Then in "baseListViewStyle" I have defined some base styles to apply to my lis...

Style Data in a gridview which dynamically generates the columns

I have built a dynamic gridview using the following code grdVariants.Columns.Clear(); int i = 0; foreach (DataColumn column in options.Columns) { grdVariants.Columns.Add(new GridViewColumn { Header = column.ColumnName, DisplayMemberBinding = new Binding(string.Format("[{0}]", i++)) }); } This wil...

Modify style for last module in a particular area in Joomla!

I am making a custom Joomla! template which should allow for multiple modules in the right column. Everything is working fine, and I am using "modules.php" to create a custom HTML wrapper for each module in the column. Only problem is - I need to remove the bottom border from the last module that appears in that column, whichever one it ...

div style working in Firefox but not IE8

I am creating a banner that resizes to fit the window (I got the code of a blog post) and it works fine in Firefox, but it doesn't display at all in IE8. Please help!! <html> <body> <div style=”position:relative; width:100%; height:100%; margin:0px; padding:0px; left:0px;right:0px;z-index:1”><img src="https://na6.salesforce.com/servle...

How do I add a border to a div that has the style='overflow:auto' only when the scrollbar is activated?

So I have a div that gets content dynamically, and when the content size exceeds a specified height, the overflow:auto kicks in and I get a scroll bar, but not before the content passes that height boundary. Now I am supposed to add a 1px border around the whole div only when the height is exceeded, and the scrollbar shows up...does an...

Static code analysis for new language. Where to start?

I just been given a new assignment which looks like its going to be an interesting challenge. The customer is wanting a code style checking tool to be developed for their internal (soon to be open sourced) programming language which runs on the JVM. The language syntax is very Java like. The customer basically wants me to produce some...

OuterGlowBitmapEffect Alternative Without BitmapEffects

What is a good alternative to OuterGlowBitmapEffect? Preferably one that can be used in a theme/style and one that can be used without BitmapEffects. ...

Custom Tabcontrol in silverlight 4

Hello, I'm trying to design a tab control which will have a tabs on left hane hand side, and will have a text displayed vertically besides it. And will have the Page displayed in the main tab control. For reference you can visit : http://www.nseindia.com/ and click on any tab in the main menu. How can it be designed? I have created ...

jQuery.html() removes scripts and styles

Is there a way to use jQuery.html() and not loose the scripts and styles? or any other non-jQuery way? I'm trying to output the full HTML of the page the user is on. Is this even possible? ...

custom grid style in silverlight 4

Hello, I want to set background of a grid using a style. I style I'm setting the Background Property of the grid. But I have a border filled with LinearGradientFill and a Path which also has LinearGradientFill in it. But I'm not able to combine both. Below is sample code. I want to create it as a style. <Grid> <Border BorderBrush="B...

WPF datagrid template

Hi, I want to make a WPF datagrid look similar to the HTML grid in the following picture: http://img443.imageshack.us/img443/2563/saltoftheearth.jpg Does anyone know an easy way to do this ? Regards, S. ...

How to make a smaller RatingBar?

I've added a RatingBar in a layout : <RatingBar android:id="@+id/ratingbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numStars="5" android:stepSize="1.0" ></RatingBar> But the default style for the rating bar is too large. I've trie t...

How do I change the animation style of a jQuery Accordion?

Hi there. Is there a way to change the default animation that jQuery accordion uses? It appears to be "slide" but I'd like to use a Bounce or Drop effect. Here's my current code: $("#accordion").accordion({ autoHeight: false, collapsible: true, event: 'click', active: 4 }); I'd like to change this from a slide to a drop or a bounce....

phpBB: how to customize the UI really

This will be quite a long way to ask my question, so please bear with me, I'm really interested in your opinion and need an advice. I would like to modify or convert an existing phpBB3 setup because my users don't like it anymore. They definitely don't like the (otherwise professional) design of the templates based on proSilver or subSi...

WPF. How do I create many LIstViews with the same look.

I've defined a listview in my recent project and realized that I will be using more listviews looking exactly the same and having the same solumns. Since I'm new to WPF am I curious of teh best way to do this. Is it to create a usercontrol? Use styles? I've tried to use styles but it didnt work the way I was hoping. I tried to set the "V...

Question about using adaptive layout + print style sheet

Hey everyone, In my web design class, we looked at creating different style sheets for different window sizes and using a javascript that detects the window size and loads the right style sheet. In the head, I'm linking to three external style sheets, as well as a link to the javascript file. So the adaptive layout works fine. However....

How to change Eclipse indentation style for automatically generated code?

Is there any way to change indentation style for automatically generated code in Eclipse? I'd like to change from class Test { blah blah } to class Test { blah blah } ...

css styling for Flex PopUpButton

Hi, How can I give a specific color (Let's say red) to the border of dropdown menu of Flex PopUpButton. Also if how can I set text properties (text should be bold) of dropdown Menu of PopUpButton. Thanks in advance - Atul ...

Have I taken a wrong path in programming by being excessively worried about code elegance and style?

I am in a major stump right now. I am a BSIT graduate, but I only started actual programming less than a year ago. I observed that I have the following attitude in programming: I tend to be more of a purist, scorning unelegant approaches to solving problems using code I tend to look at anything in a large scale, planning everything be...

Should .net comments start with a capital letter and end with a period?

Depending on the feedback I get, I might raise this "standard" with my colleagues. This might become a custom StyleCop rule. is there one written already? So, Stylecop already dictates this for summary, param, and return documentation tags. Do you think it makes sense to demand the same from comments? On related note: if a comment is ...