styles

Styling a Gridview "Caption" from C# class

I'm trying to style the caption of a ASP.Net GridView in a C# file. here is my method that returns a styled GridView: private GridView setupGridView(string caption) { var gview = new GridView() { BackColor = Color.White, BorderColor = Color.Gray, BorderStyle = BorderStyle.Solid, BorderWidth = new Unit(1, UnitType.Pixel), Cap...

WPF - How to display text on every screen

I have a WPF Window style defined thusly: <Style x:Key="Applet" TargetType="{x:Type Window}"> <Setter Property="WindowStyle" Value="None" /> <Setter Property="WindowState" Value="Maximized" /> <Setter ...

Doesn't recognized my css, js, and so on...

I have .htacces like: RewriteEngine On RewriteRule ^en/$ index.php?page=index&lang_id=2 RewriteRule ^contact.html$ index.php?page=contact RewriteRule ^en/contact.html$ index.php?page=contact&lang_id=2 # ...[and so on] In my site i have a switch language button(image). My basic language is in Ro and and i want to swtich ...

How can i change the default values of the Binding Option in WPF?

In my current project i'm using several textbox controls whose content is filled from objects which are coming from a database. The object uses validation to validate the correct insertion of the text. When i want to show a validation error (i.e. the text has to many characters) i have to add some binding options to the text property li...

Spinner pop up window title background

I would like to modify the background of the title bar of the dropdown dialog associated to a spinner. If this is not possible I would like to know what resource is used to draw this background android.R.drawable.* ? This is an effort of uniformity for my various pop ups in my application. ...

How to expand bound & styled TreeViewItem nodes

Hello, I have a TreeView in WPF which I have bound to a collection of categories that itself contains a collection of categories and son on and so forth. Currently, I'm binding the collection successfully and having all of my category names appearing. However, I also have an IsExpanded property on my collection objects that when all set...

Reusing of DataTemplate

I have two DataTemplates for different cells in my Treelistview control. the templates are 90% similar. How can I reuse the identical Xaml ? <DataTemplate x:Key="@names"> <TextBlock Name="txt" Text="{Binding Names}" Style="{DynamicResource @BasicTextBlockStyle}" Foreground="{Binding RelativeSource={Rela...

How do you set a custom theme for a .NET application?

Much as the title says, I am wondering how to style a program like Photoshop CS4 or Autodesk Maya 2011. These programs are styled to where the UI looks completely custom. Right now I am using C# to program, but I can easily switch to C++ and WinAPI if it is easier. I have done multiple google searches for styling controls in C#, but ther...

Javascript style isnt compatible with IE

<div align="center"> <span class="style19"> <script type="text/javascript" src="http://ebayfeedback.easystorehosting.com/esh/ebayfeedback/feedback.php?eBayId=Mizauctions"&gt;&lt;/script&gt; </span></div> I am trying to style this string of javascript so that the text it generates is about 10px. It works exactly how ...

asp.net datalist - change styling

<asp:DataList ID="ItemsList" RepeatDirection="Vertical" runat="server"> <ItemTemplate> <asp:LinkButton ID="SecondLevelItem" runat="server" CommandName="second" OnCommand="SecondLevelItem_Onclick" CommandArgument="<%# Container.DataItem %>" Text="<%# Container...