I have a vertically orientated LinearLayout with some Buttons in it:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">
<Button android:layout_height="wrap_content" android:layout_width="fill_parent" android...
Most WPF styles I have seen are split up into one very long Theme.xaml file. I want to split mine up for readability so my Theme.xaml looks like this:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionar...
It seems like there has to be a way to do this:
I am applying an ItemContainerStyle in my Listbox, based on two property triggers. As you can see, I'm using the exact same set of trigger enter/exit actions, simply applied on two different properties. Is there something equivalent to a <Trigger Property="prop1" OR Property="prop2"> ???...
Hi
I was looking to join 2 styles together to make a super style for easy use and customisation of my page.
Is it possible to define something like this? (if so how)
.bold { font-weight: bold;}
.color1 {color: white;}
.boldColor {.bold; .color1;}
where .boldColor is effectively
.boldColor {font-weight:bold; color:white;}
I want t...
I know there are certain ways of using bold/italic/underlined text in facebook's chat, but I'm struggling to achieve the same on the page description. That is the text below the page's logo.
I know this is probably the wrong place to post this but since you guys are awesome * pleaseee :) * and fast, if you're not able to help me, no one...
Hi all, I am trying to set the style of an asp:TextBox in codebehind, the textbox is style is set initially to
style="display:none"
when I set the dispaly to block in codebehind the textbox appears for a moment and then it's gone. I don't know what this problem is, when it's done in javascript it works fine
Here is the code:
asp.net ...
I have some buttons orientated in a vertical LinearLayout with the default menuitem_background applied to them (Which gives them a transparent background at default state and a highlighting color on click/press).
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_h...
Hi, I'm trying to style Comboboxes in WPF so that they are white, and have the same border as TextBoxes. I have the following style so far, but don't know how to set the border:
<Style TargetType="ComboBox">
<Setter Property="Margin" Value="0,2,0,2" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property=...
I have an SVG map of the world, and I want to colour each region by various metrics in real time by altering style attributes for each region in the svg. EG I want to tint the UK blue to reflect the upcoming tory victory (ahem).
This needs to be dynamic as the data changes often and is pushed out to the browser.
...
Hello,
I made some changes with chart (WPF toolkit) component at the MS Blend 3.
A lot of stuff like this:
<Style x:Key="BoardsLineDataPointStyle" TargetType="{x:Type chartingToolkit:LineDataPoint}">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Width" Value="{Binding Mode=OneWay, Path=Value}"/>
<Setter Property="Te...
Does anybody know how to do this?
Theme A
style_for_x.aspx.css
style_for_y.aspx.css
Theme B
style_for_x.aspx.css
style_for_y.aspx.css
Or even better:
Theme A
style_for_all_pages.css
style_for_x.aspx.css
style_for_y.aspx.css
Theme B
style_for_all_pages.css
style_for_x.aspx.css
style_for_y.aspx.css
...
I am using php to output some rich text. How can I strip out the inline styles completely?
The text will be pasted straight out of MS Word, or OpenOffice, and into a which uses TinyMCE, a Rich-Text editor which allows you to add basic HTML formatting to the text.
However I want to remove the inline styles on the tags (see below), but...
In my particular case, I want to bind to the IsReadOnly property of a TextBox to set the Content property of a Button? They are both part of the same StackPanel.
I've tried doing it with a DataTrigger with a Binding to the ElementName of the TextBox and a Trigger using the TextBox name as the SourceName.
Any thoughts?
...
I am wanting to use the example from
http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/09/22/lt-howto-gt-replace-listview-columns-with-rows-lt-howto-gt.aspx
However I don't want to put this into the App.xaml code as this will apply to ALL gridviews, how do I apply this example to a select few gridviews in the application? Th...
I have a style applied to all my textboxes, defined in a resource dictionary..
<Style TargetType="TextBlock">
<Setter Property="TextBlock.FontSize" Value="{Binding Source={StaticResource ApplicationUserSettings}, Path=fontSize, Mode=OneWay}" />
<Setter Property="TextBlock.TextWrapping" Value="Wrap" />
<Setter Pro...
Hi
I'm looking for some free silverlight styles to play with. I'd ideally like a style which makes a silverlight page's controls (textbox, etc), look as though they came from a html page. Also after some other styles to play with, any good free libraries out there?
thanks
...
I have an application that my customers can write plugins (that have WPF UIs) for. Now I would like to expose a set of styles as a library that they can use and that will help them with the development of the UIs sO they don't have to reivent the weel. How would I idealy expose those styles without actually having to deploy a lot of xaml...
Could you guys help me? I have a with custom and in it:
<ListBox>
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Black" BorderThickness="2" CornerRadius="5">
<Image Source="{Binding Picture}" />
</Border>
</DataTemplate>
</ListBox.ItemTe...
I have WPF Form which has many buttons with the same code. Appearance of all buttons must be the same
For example, code for one of these buttons
<Button x:Name="btnAddRelative" Width="120" Click="btnAddRelative_Click" >
<Button.Content>
<StackPanel Orientation="...
I need to style a ton of different elements (read: "cells") in a PDF using iTextSharp. Label, header, subheader, number, etc. Right now, I'm using three different methods for each cell type:
public static PdfPCell GetDefaultCell(string strText)
{
PdfPCell cell = new PdfPCell(new Phrase(strText, GetDefaultFont()));
ce...