When you have a boolean option and a flag for setting it to false by prefixing "no" to the name, should it be "no" or "no_"? What's most commonly used or better style? For example:
--no_foo
or
--nofoo
...
I am creating a SWF file using a MXML file. The MXML file define several MX:Button and uses an external stylesheet to style them.
There is a problem I am facing at the moment, I am aiming to style the buttons in a way that is similar to the way I can style HTML button elements. However, I could not achieve such look and feel. For examp...
Can anyone please recommend a company who styles Infragistics for ASP.NET controls? Is there even a company who does that?
A friend needs to style a webmenu like a sample css menu and neither he or I are that good at CSS to get it 100% right.
If anyone knows who might be able to do this, please suggest.
Thanks.
...
I have an external style resource in a resource dictionary I'm referencing with x:Key. It has an x:TargetType specifying a target (TextBlock). Is it possible to apply this to a control containing a TextBlock and have all TextBlock elements within that control have the style applied?
Thanks,
Robert
...
Trying to figure out the best way to document request parameters via phpdoc in a manner that makes sense. Specifically, I've got some Zend Framework controller actions that receive parameters via GET/POST, but aren't functional params. Does this make sense?
/**
* Display a pagination/grid list of rows.
*
* @param string $_GET['order'...
Hi,
I am trying to change window style of a window in c#.
I have handle of the window. How do I send message to the window to change its window style?
My purpose is to make the window borderless.
...
With CSS I can set font and background colours for the individual options of a dropdown "select" list; however, these colours only show up in the actual dropdown. The colours shown in the box on the page when the list is not open are still the defaults.
Currently I have a list with many dropdown boxes having a few options, and it would ...
I’m struggling a little bit with some XAML syntax I hope someone can advise on. I want to create an “Effect” type style resource which contains a DropShadowEffect definition which can be reused rather than always manually setting the properties. Here’s what I have:
<Style TargetType="DropShadowEffect" x:Name="DropShadowEffectStyle">
<...
One of the methods that I'm creating throws an exception. What's the clearest way of showing (either in code or comments) that my method could throw an exception and therefore a try{} and catch{} needs to be applied to my method.
Thanks!
...
what book would you recommend to improve one's c# style of writing? I know Code Complete has a few tips on style and organizing code but it's not specific to c#.
...
So, everywhere I read you can embed a style on a ContentPresenter.Resources and it will automatically apply it to any object that are of the TargetType. So I have the code below.
Simple. But it does not work. Cannot figure this one. Any help??
<UserControl.Resources>
<Style TargetType="TextBox" x:Key="MyStyle">
<...
I have implemented an error style for textboxes using the following code. This sets a tool tip and puts a nice error image to the right of the textbox if the element reports an error status via an IDataErrorInfo interface:
<!-- Set error style for textboxes -->
<Style x:Key="txtBoxErrStyle" TargetType="{x:Type TextBox}">
...
I created a macro that will apply a particular style to whatever is selected in the document. However, when in draft view, when the user clicks in the style area pane to select a paragraph and then Ctrl + clicks on an additional paragraph, this additional selection is not applied when this macro is run:
Sub BodyTextApply()
Selection...
In one of the page of my ASP.NET MVC application, I have a list of messages that is shown to user. Something like this:
Pressing the close button marks the message as read on server so that it is not displayed again. This close button is internally a "submit" type input since I understand that any server side changes must be triggered...
Strictly speaking, do style tags need to be inside the head of an HTML document? The 4.01 standard implies that, but it's not explicitly stated:
The STYLE element allows authors to
put style sheet rules in the head of
the document. HTML permits any number
of STYLE elements in the HEAD section
of a document.
I say "strictly ...
Is it considered good practice to add style to the elements generated by a jQuery plugin in the script itself, or an external stylesheet?
(function($) {
$.myplugin= function(options) {
var options = jQuery.extend({
backgroundColor: '#0066cc',
borderColor: '#003366',
borderWidth: '1px',
fontColor: '#66ccf...
Hello,
I am using the jquery datepicker (http://jqueryui.com/demos/datepicker/).
The datepicker on the demo page is small and compact. However, when I use the datepicker on my site, the calendar is HUGE. I would estimate that each date is using 12 pt font.
How do I get the days to be smaller?
...
Situation:
I have a check box and a div container inside another div container. When the check box or the label for the check box is clicked, the inner div's display style should change. If the display is set to block, then it should change to none and vice versa.
Code:
HTML:
<input id="oper_sale" type="checkbox" name="oper_sale" onc...
I have adapted the holy grail three column layout into my site and it works great, except in AOL. I can easily use JavaScript to detect AOL and write new CSS styles after the rest have been evaluated, using document.write(' ');, but even with that freedom I cannot for the life of my style the page right. I was hoping someone could help...
Currently, I am referencing the Aero theme in my App.xml file.
In the main.xml file, I am using expanders to display the content in a resizable width app.
(For this example, I limited the width to 500)
The expander header content generally will be short, but it allows for up to 500 chars.
Depending on the window size (600 pixels by defa...