style

How do I group items in a WPF ListView

I have a ListView that I want to group results into, however the examples I am finding are not working. How can I group my results? I want to group on the Status property in my custom object. This is what I have: <ListView IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}" HorizontalContentA...

WinXP button-style with wxPython

Hi, guys. I noticed that my programs written with wxPython have Win98 button style. But Boa Constructor (that is written using wxPython too) got pretty buttons. How to make buttons look like current Windows buttons style? ...

Resize and repositon div using javascript

I'm trying to do a simple resize and reposition of a div element that shows a ajax loading image. The content it loads can change size, so I want the div element to resize to be the size of the parent, which in this case is a table dimension with the id "thEngineCategories". function resize_divProgress() { var control = document.ge...

How to style a WPF Expander Header?

Hello, I would like to apply a style on a WPF Expander Header. In the following XAML I have an Expander but the style is for all of it not just for the header. Thanks. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="640" > <StackPanel> <Stac...

Silverlight generic.xaml

Can I use generic.xaml in Silverlight to set the style of all TextBlock in the application? <ResourceDictionary xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Style TargetType="TextBlock"> <Setter Property="Foreground" Value="White" /> <Setter Prope...

How can I create a group footer in a WPF ListView ( GridView )

I have a ListView that displays sales orders, and groups them by status. In WinForms I had a footer at the bottom of each group that displayed the Total sale price for each group, and I would like to do the same in WPF. I have figured out how to group the orders, but I can't figure out how to create a footer. This is my current group s...

Setting Button FlatStyle in WPF

I have just been learning about how styles and control templates in WPF can affect the appearance of buttons, I'm trying to set the Button's FlatStyle, in the resources I've seen I can't find anything that tells me how I can do this, in Windows Forms this is set through FlatStyle = Flat. How would one do this in WPF? ...

Disable Markdown for a block

Markdown syntax is often convenient to write blogs and comments; But at times it interferes with the content when you would want to write a simple html Is there a tag / syntax that asks markdown to ignore that part like the pre html tag? If pre works, what if the markdown part needs to include an html tag? ...

WPF: Style based on another one in a separate assembly

Assembly A - ResourceDictionary contains StyleA style. Assembly B - ResourceDictionary.MergedDictionaries to merge resources from Assembly A into B. I would like to create a style in Assembly B "based on" StyleA. Is it possible? I am trying to create this style: <Style x:Key="StyleB" BasedOn="{StaticResource StyleA}"> <Setter Pro...

WPF Style Setter * Height and Width

I'm trying to create a WPF application which consists of a 9x9 grid with the row and columns using different styles. What I'm hoping to do is provide a star value for the height and width of the column and row definitions. This does not appear to work in the current context. Is this even possible, and if so, how? <Window x:Class="Baroqu...

WPF - How to apply style to AdornedElementPlaceholder's AdornedElement?

I'm trying to apply a style to an adorned element, but I don't know the correct syntax. Here is what I've tried: <!-- ValidationRule Based Validitaion Control Template --> <ControlTemplate x:Key="validationTemplate"...

CSS - Is there a way to target an element depending on what is inside it?

On my page, I have custom styled hyperlinks, and I also have alot of hyperlinked images. I don't want these custom styles to appear on the hyperlinks that only contain images. Instead of adding a separate class (i.e "nostyle") to each hyperlinked image, can I somehow target the hyperlinked images from my stylesheet? Thanks. ...

Load WPF styles (static resources) from an external assembly

I have a few WPF applications and I want all my styles to be in a shared assembly instead of declaring them in each application separately. I am looking for a way so I don't have to change all my Style="{StaticResource BlahBlah}" in the existing applications; I just want to add the reference to this style assembly, and delete it from th...

How to add CSS Styles to DataPager

Hi all, I have a simple question. I have a ListView which I have added a DataPager control to. At present the DataPager is just plain numeric based. Just wondering, is it possible to add CSS styles to the numeric numbers IE have a 1px solid border around each number ect. Any help would be greatly appreciated. ...

Should the Java "this" keyword be used when it is optional?

From what I gather as a Java beginner, when accessing instance members, the "this" keyword may apparently be used, but is not mandatory. I wonder whether there is any official recommendation of sorts of a style guide (though I was unable to find anything in the actual Java style guide). How do people usually do this, or is there maybe...

Background image positioning problem

I have this as my CSS styling. My #pg_wrap is not centering with the background image when the browser window is resized. The screen shot I have is when you reduce the browser window less than 1344px than the #pg_wrap width (the width doesn't have to be that, was just a test number). The screen shot was taken with Firefox, which does ...

Getting index of a gridview when hyperlinkfield is clicked

Hi, I have a web app(ASP.NET 2.0 using C#) that I am working on. In it, I have a gridview with a hyperlinkfield on a page(My_Page.aspx). When the Hyperlinkfield is clicked, it shows details on the same page. <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="My_Page.aspx?id={0}" ...

Internet Explorer does not show links styled as they are in Visual Studio designer

I use a master page and a theme. After finding that the style does not correctly work in the browser, I took the rendered html and created an html page in visual studio in order to see everything in the designer. I foun the style is showing correctly in visual studio disigner. When I tried to see the page in IE, the styl again didn't wor...

WPF button textwrap style

Hi, How do I change the default textwrapping style of a button in WPF? The obvious solution of: <Style x:Key="MyButtonStyle" TargetType="{x:Type Button}"> <Setter Property="TextWrapping" Value="Wrap"></Setter> </Style> doesn't work, because Textwrapping isn't a settable property here, apparently. If I try: <Style x:Key="MyButt...

CSS styles gone after Ajax call in IE 7

I've had a problem with my styles not being applied after AJAX calls. My styles were not in the < HEAD> section of the page, and they were only recognized by IE on initial Page_Load. If you know of any other ways to fix this problem, post them here. This is more of a reference, hope this helps some people. ...