Hello,
I'm writing an application for a Pocket PC 2003 device. In it there is a dialog where various text information is shown. The information is separated so that each piece resides inside its own label, defined as LTEXT in the resource file.
Now my problem is that, at the moment, all text lables have the same font and style (normal ...
I have a general question about WPF performance. We have a relatively simple forms application. Some team members believe that redesigning the templates for basic controls will improve performance and maintainability. One preferred technique is to create multiple control templates for a control, and swap them out with triggers. The belie...
How can I do something like this?
<Style TargetType="Grid">
<Setter Property="Children">
<Setter.Value>
...
</Setter.Value>
</Setter>
</Style>
I know Children in read-only and this gives me "Writable property expected" on Children.
Thanks
...
Hi
I wanted to have nice tooltip for my TextBox, so I started with simple tooltip.
<TextBox>
<TextBox.ToolTip>
<StackPanel>
<TextBlock>Nice text</TextBlock>
<TextBlock>Nice text</TextBlock>
</StackPanel>
</TextBox.ToolTip>
</TextBox>
However I have a dozen textbox...
Hey Guys,
any idea, how to make a setup which looks like Office2007-Setup? For example the blue buttons which become golden on hover etc.?
Greetings
...
I know that it's incorrect to style a <section> tag but how about the <header> and <footer> tags. If using these tags provides a more semantic markup then they should be used, however, if they can't be styled then a <div> would still need to be inserted inside the tag to wrap the content and style it.
I know that <header> can be styled ...
This is a style question:
Because Apple reserves the "_" privatization for its keywords, I was thinking of something along the lines of the following:
#import <Cocoa/Cocoa.h>
#define _(name) pvt_##name
@interface SFMeasureViewController : NSViewController {
@private
NSTextField *_(label);
}
@property (retain) IBOutlet NSTex...
Is there an elegant way to get the computed style for each DOM node in a web page, for a large number of files, in order to compare style data for similar nodes across those files?
I'm working on a large number of HTML files (> 500) containing pretty broken HTML from MS FrontPage, trying to extract style data and convert it to semantic ...
I am trying to add tag inside fckeditors textarea. Fckeditor is removing the tag when I save it.
I added
FCKConfig.ProtectedSource.Add( /<style[\s\S]*?<\/style>/g );
to the fckconfig.js file but it is not helping.
I did the same thing for the javascript tags and it works. To preserve style element, do I need to do anything el...
How can I set the opacity of the background for a groupbox etc.
The code beneath doesn't compile:
<Style TargetType="GroupBox">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Opacity="0.5">White</SolidColorBrush>
</Setter.Value>
</Setter>
</Style>
...
I have a list of names that I'd like to have bound to a datagrid for editing/sorting/etc. But, I don't like how the DataGrid is displayed at all. Columns are placed in Alphabetical order when I really want a custom order (and I wish I could hide the ID column, or make that column not editable). I'm not sure how to start doing any of this...
I have seen some articles that show how to use AlternationIndex with ListBoxes or ListViews, but I had spent a few hours trying to get alternating background colors on the base ItemsControl class and nothing seems to work. All ListBox samples I saw use ListBoxItem as the target type for the style that sets the background based on Alterna...
Hey all,
Is there a way to setup global styles for my WPF application?
What I'm hoping to do is apply a style to all my Buttons that also have an Image child.
Thanks in advance,
Sonny
...
Hello,
I'm trying to work out how I can alter the template depending on the size and number of items. This is very similar to the ribbon which dynamically changes depending on the size, or Windows 7 thumbnail of programs.
In this case, it's an ItemTemplate of a ListBox and I want to reduce the size of the image or not display it, rathe...
Hi all,
I was wondering if there was any way of removing unwanted style attributes from objects (p, ul, li etc), as for some reason my client has decided to copy/paste information from word into a wysiwyg and doesn't bother removing the crap that comes along with it, I was wondering if jquery could do this?
Here's an example of the ou...
I have a DataGrid wich is bound to a DataTable.DefaultView. And now what i need additonaly:
I did set the ColumnError Information of the DataGridRow. So for every row in my table i have column errors and i want to display this columns with red textcolour. So the user can see this column had an error.
How can i set the cell color depen...
look at this image
see the white are below the grey... its not supposed to be there find me a cure
<table border="0" cellpadding="0" cellspacing="0" height="30">
<tr>
<td>
<div class="mainmenu">
<ul>
<li class="li_nc"><a href="/" target="_self" >HOME</a></li>
<li class="li_hc"><a href="#" >PROGRAMS</a...
I have a control in my XAML bound to a property with a style.
<TextBox x:Name="txtCapAmount" Text="{Binding Path=CapAmount}" Style="{DynamicResource AmountTextBoxStyle}" />
In the style I'd like to use the Binding from the control but am not sure how to set it
<Style x:Key="AmountTextBoxStyle" TargetType="{x:Type TextBox}">
<E...
Many pages have a search box to them which will typically have the overlayed text "Search" which disappears when one focuses the element and reappears when focus is lost. I'm curious to know what people recommend as the best strategy for this.
The strategy I've employed is to use the focus/blur events of the input element and test the c...
how to create styles for zk components, for examle grid?
i try something like this:
<style>
.mine{
}
.mine tr{
}
.mine tr td{
width: 16%;
padding: 2px 5px 2px 1px;
}
.mine tr td input[type='text']{
width: 100%;
}
...
</style>
...
<grid sclass="mine">
...
and it works.. but it's usual css, which shouldn't be used with zk.. i'm sea...