for school we are making an air application and we've run into some questions, things we don't know how to do.
Where can we find information on how to style our air application, we would like to get rid off the windows border and make something like kuler.
another problem is how to make google maps run in air?
we would really apprecia...
I have added a button to a template for a ListBoxItem. I want to know how to catch the click for the button (not selecting the ListboxItem).
The button clicks just fine in the UI, but I can't seem to find out how to wire up code so I can catch it.
I tried using:
<EventSetter Event="Click" Handler="Button_Click"></EventSetter>
but...
I'm interested in where this variation of the pure block style stems from. When I say putting the else directly after the end of the if block I mean...
if ( foo ) {
DoThis();
DoThat();
} else {
DoThing();
}
I noticed that the Google C++ Style Guidelines use this, but how often do you see other developers using it? Also, where do...
I have a TreeViewItem that when Selected, calles a method. However, I am finding that when the Selected event is called, the Selected event for the parent TreeViewItem also seems to be called.
I would really rather than not happen, but I haven't been able to find any documentation telling my why this is happening in the first place.
Co...
Greetings to the enlightened ones!
I'm playing on this for several hours now, but wasn't successful (perhaps because I'm quite new to WPF):
I have a DataGrid whose DataContext is bound to a DataTable. The DataGrid is of fixed size and its purpose is to hold a value table y(x) (i.e. the headers show the x-values and the corresponding y-...
Hello,
For a JavaScript library I'm implementing, I need to clone an element which has exactly the same applied style than the original one. Although I've gained a rather decent knowledge of JavaScript, as a programming language, while developing it, I'm still a DOM scripting newbie, so any advice about how this can be achieved would be...
This is a simple WPF window in XAML:
<Window x:Class="AnimateTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
x:Name="MainWindow"
Style="{StaticResource TestStyle}">
<Grid>
</...
I have a bunch of menu links and want to change their style on click - say you click "about" and it becomes bold and red. I select the items and bind click event to them:
$("#nav_menu > *").bind("click",function(){doTrigger(this.id);});
this way I pass the ID of the clicked item to doTrigger.
Ok. Now in doTrigger I am trying to itera...
I have a control derived from ComboBox, i want to use the ComboBox ControlTemplate, and just set a few values on it in xaml, namely the ItemContainerStyle. The code below doesnt work, the last setter, which im intending to apply the base ComboBox control template to this one, doesnt do anything.
<Style
TargetType="{x:Type local...
I want let the user choose what style my application has.Small example would be 2 buttons, if user presses button 1 then the background color turns red, if the user presses button 2 then the backgroundcolor turns green.
How do i do that? do i use multiple resource dictionaries? and apply them when the button is pressed? Whats the most ...
Hi all xaml-geeks ;)
I've just been fooling around with a ListBox control that I want to style a certain way. For now it looks just like I want it to with rounded corners and no padding. However, the rounded corners seems to cause a problem with the items in the ListBox.
A screenshot so you can see what I mean:
The thing is, that th...
Is there a way to get the style: display attribute which would have either none or block?
DIV :
<div id="ctl00_MainContentAreaPlaceHolder_cellPhone_input_msg_container" class="Error cellphone" style="display: block;">
<p class="cellphone" style="display: block;">Text</p>
</div>
I know that there is a way to find out if the DIV...
I have an element and multiple styles, how do I switch between the styles at runtime either programatically or through XAML binding.
<Rectangle x:Name="fixtureControl" Style="{DynamicResource FixtureStyle_Fast}">
<!-- In the style resources. -->
<Style x:Key="FixtureStyle_Fast" TargetType="{x:Type Shape}">
<Setter Property="Stroke"...
Hi der!
I'm using some fonts embedded in SWF in a program I'm developing. I need to use some specific font style like '37 Thin Condensed' and '26 Ultra Light Italic' etc... how can I specify these style when using fonts? I want to set style using AS3 code...
...
Hi,
How to make a single datagrid column editable if a particular condition is true?
I'm using MVVM pattern in my application.
Model ::
public class Book : INotifyPropertyChanged
{
public int BookId {get; set;}
public string Title {get; set;}
public string SerialNumber {get; set;}
public bool CanEditSerialNumber...
Is it possible to style a single, say, TextView in Android with multiple alternating styles, colors, and sizes? Think inline HTML or CSS but in the Android world.
As an extreme, to demonstrate the point, let's say I wanted to have a word "CIRCUS" with each letter a being different color. Do I have to create 6 TextViews for this or can t...
So I'm trying to give my air application a custom style, I've set the showFlexChrome to false and that's ok it works. now I would like to use an image window I designed in photoshop as the background (because now there is no background in the application).
I did the following but it doesn't work
<mx:WindowedApplication xmlns:mx="http:/...
Hello,
i have a ListView which contains objects bound from an collection. The representation of the objects i have set with data-template. Now i want to do the following.
There are two TextBlocks in my DataTemplate:
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Name}"></TextBlock>
<TextBlock Text="{Binding Path...
I have a style for a ListBox. In the listbox style I have a style for the ListBoxItems. All of this is in the section.
I want to catch the IsEnabledChanged event for the Listbox Items (see this question for why). I tried setting up an EventSetter, but it can't see the event because it is not a "routed event".
How can I attach an ev...
I frequently find myself wanting to make a table of forms -- a bunch of rows, each row being a separate form with its own fields and submit button. For instance, here's an example pet shop application -- imagine this is a checkout screen which gives you the option to update the quantities and attributes of the pets you've selected and sa...