style

Is there a way to set an inline style on an href link on "a:hover" in a html email ?

The question is to know if there is a way to build an HTML email with inline style (no CSS file, nor tags) with the href links that react with the mouse passing over them : just to be able to change the color font. So, no JS, no script, no , just link ...

Why cant i add Orientation property to the Style Setter in WPF

When i write something like this: <Style x:Key="panelS"> <Setter Property="Orientation" Value="Horizontal" /> <Setter Property="DockPanel.Dock" Value="Top" /> </Style> I get the error that says: Cannot resolve the Style Property 'Orientation'. Verify that the owning type is the Style's TargetType, or use C...

WPF DataGrid button style

If I have a DataGrid in a XAML form, and add the following style: <Style TargetType="Button"> <Setter Property="Margin" Value="2"/> </Style> The data grid locks up the application. I found if I put the style into a resource block that isn't seen by any data grid, then it seems to be happy. However, if I want to have the styl...

Coding style in .NET: whether to refactor into new method or not?

Hi As you aware, in .NET code-behind style, we already use a lot of function to accommodate those _Click function, _SelectedIndexChanged function etc etc. In our team there are some developer that make a function in the middle of .NET function, for example: public void Button_Click(object sender, EventArgs e) { some logic here.. ...

Custom RowGroupHeader ?

Is it possible to customize the row group header in a datagrid ? ...

Android: Make application background behave like homescreen background

Hi, I have a big background image for my views's background, which also can be tiled (it's repeadable). When switching from one Activity to another i want the background to behave like on the homescreen (the background moves only a bit, but the foreground moves one screen with). Is this possible and how? Here is my current background d...

How to style a text wrapping (hanging, like in MS Word) in the WPF TextBlock

I need to style a WPF TextBlock, like <TextBlock Text="- Test text text text text" TextWrapping="Wrap"/> that will show the - Test text text text text and not the - Test text text text text Do you know the solution of the problem? ...

WPF CheckBox style with the TextWrapping

I need you a TextWrapping in the WPF CheckBox. Please look at this two samples: <CheckBox> <TextBlock TextWrapping="Wrap" Text="_This is a long piece of text attached to a checkbox."/> </CheckBox> <CheckBox> <AccessText TextWrapping="Wrap" Text="_This is a long piece of text attached to a chec...

Listbox with checkboxes and single check in Silverlight

Hello, everyone. I need a ListBox which will contain several options. I need checkboxes exactly(style), not radio buttons. Is there any way i can allow only 1 checked checkbox at the moment? I'm using MVVM, so i can't just check or uncheck them manually, it's against the rules. And if i can't make such functionality - is there easy way t...

Changing Background Images per state

I have a Component that has a specific background image. The code looks like: <mx:backgroundImage>@Embed(source='img1.png')</mx:backgroundImage> <mx:states> <mx:State name='state2'> <mx:SetStyle name="backgroundImage"> <mx:value>@Embed(source='img2.png')</mx:value> </mx:SetStyle> </mx:State> </mx:states> But when I ...

overloading cascade style sheets

Hi all, We have a project that will need to work in IE6,7,8. I'm not that experienced with stylesheets, however I know there are various ways to load stylesheets depending on browser type. My question is, is it possible to have a Master stylesheet that all of the browsers will use and then import an additional one that overwrites vari...

Is there a way to prevent UIImagePickerController change statusbar style?

UIImagePickerController changes statusbar style to black/opaque. I want to keep status-bar style black/translucent. I'm finding a way to prevent status bar style changing. Or making it transited smoothly. Now, presenting UIImagePickerController changes status-bar style instantly, even -[presentModalViewController:picker animated:YES] spe...

WPF XAML: How to trigger style change in ListBoxItem ancestor to user class?

I have an ObservableCollection of items of my class "PlaylistItem" that implements INotifyPropertyChanged. The collection is databound to a ListBox and everything else is working. I want to know what markup to use to trigger a style change of the wrapping ListBoxItem based on a property (e.g. "Playing", bool) of the PlaylistItem. How ...

Documentation style: how do you differentiate variable names from the rest of the text within a comment?

Hi, This is a quite superfluous and uninteresting question, I'm afraid, but I always wonder about this. When you're commenting code with inline comments (as opposed to comments that will appear in the generated documentation) and the name of a variable appears in the comment, how do you differentiate it from normal text? E.g.: // Try t...

Java Constructor Style (Check parameters aren't null)

What are the best practices if you have a class which accepts some parameters but none of them are allowed to be null? The following is obvious but the exception is a little unspecific: public class SomeClass { public SomeClass(Object one, Object two) { if (one == null || two == null) { throw new I...

Parse CSS out from <style> elements

Can someone tell me an efficient method of retrieving the CSS between tags on a page of markup in .NET? I've come up with a method which uses recursion, Split() and CompareTo() but is really long-winded, and I feel sure that there must be a far shorter (and more clever) method of doing the same. Please keep in mind that it is possible...

Silverlight ~ MVVM ~ Dynamic setting of Style property based on model value

I have a class called Question that represents a question and it's answer. I have an application that renders an ObservableCollection of Question objects. Each Question is rendered as a StackPanel that contains a TextBlock for the question verbiage, and a TextBox for the user to enter in an answer. The questions are rendered using an Ite...

What is the advantage of the 'src/main/java'' convention?

I've noticed that a lot of projects have the following structure: Project-A bin lib src main java RootLevelPackageClass.java I currently use the following convention (as my projects are 100% java): Project-A bin lib src RootLevelPackageClass.java I'm not currently using Maven but am wondering if this is a Maven conven...

Excel c# convert cell to percentage

Hello. I need to convert a cell with a double to a precentage. I used a macro in excel and it says: Range("B5").Select Selection.Style = "Percent" When I do this in c#, it doesn't work: Excel.Range procentRange = xlWorksheet.get_Range("A1","A1"); procentRange.Style = "Percent"; Anybody knows how to do this? ...

Styling select and options in html (IE 6)

I want to stlye a select element. i.e to constrain its width to a specified value,background-color. I also want to be able to style the option set(via Option constructor) Is it possible. I am using IE6. ...