I'm working on a Microsoft Surface and attaching a round image object to a ScatterViewItem. I'm having an issue hiding the background of the square ScatterViewItem. If I go in and set the background to transparent, it's not transparent, it's more like gray translucent. So what I end up with is a round image in the middle sitting on a ...
I'm trying to style a TabControl and have got 75% of the way there, but I'm having difficulty styling the actual TabItems:
What I am trying to achieve is remove the default ContentPresenter so that I can make the tab items partially transparent with rounded edges instead of the place holder red and green i have now.
I'm sure it's pro...
I want to be notified when the animation is completed.
However, when I apply the following code, I get the following error
"The event 'Completed' cannot be specified on a Target tag in a Style. Use an EventSetter instead."
<Style x:Key="CredentialEntryListViewItemStyle" TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource altern...
I have a method which returns a generic list (from the db it returns a set of data to a list). I want to bind one property of that list to a combo box using ComboBox's ItemsSource="{Binding Path=ListFirstName}" property. How can i achive this? The code i tried
XAML code:
<ComboBox Name="cmbName"
ItemsSource="{Binding Path=Exa...
Hello
I am trying to create a window to act as a switch board for testing an application I'm working on, and having two problems doing so.
The first problem is trying to set the size & margin of buttons that need to be added to a stack panel dynamically. In XAML, the properties look like this:
<StackPanel Name="_mainStackPanel" >
...
What should I put for BasedOn in this style?
<Style
x:Key="DataGrid_ColumnHeaderStyle"
TargetType="wt:DataGridColumnHeader"
BasedOn="??????????"> <!-- I want this to be a reference to the default style -->
<Setter
Property="BorderBrush"
Value="{StaticResource Media_RaisedBorderBrush}" />
<Setter
...
Hi,
I have a list page which list records in graphical representation.
On clicking a some graphical portion or some button-which is added runtime on page- i want to activate new page by passing a some data as a parameter.
Eg. I have Category list page, the UI representation is done at runtime. So clicking on some category I want to lis...
For example I have an animation that triggers when mouse is clicked.
Problem is if you keep clicking the animation will restart.
I want to guarantee that an animation always plays through to completion.
Ideas?
...
Hi,
This should be easy but it's not working. I have a WPF combobox bound to a List.
The items populate just fine
I want the first item to show on startup.
However! If the SelectedIndex is set to 0 or anything else it stays blank.
Wozzup?
Code Result: No item selected when the form loads. :-(
...
Is there a way or a tool i can use to make WPF animations and controls without using Expression Blend...maybe just using Visual Studio 2008 or something???
...
Hi again! Here's another easy XAML question for you guys:
I can populate a 'complex' list okay in XAML like:
<local:People x:Key="family">
<local:Person Name="The Babe" Age="45"/>
<local:Person Name="Greggles" Age="41"/>
<local:Person Name="Elmo" Age=10"/>
</local:People>
But in the case of:
public class FileN...
Basically I have a DataTemplate that contains Border, StackPanel and stuff, and later I use this DataTemplate as a ContentTemplate in many ContentControl(s).
These ContentControl(s) are named, but from the C# code I don't manage to find a way to get back my Border, StackPanel and stuff from them.
Any ideas?
...
I can do a nice cloud effect in flash.
I want to do the same in .net 3.5 WPF in C# code. Can you show me how to do it?
...
I have a ListBox and a lot of templates that override/extend each other.
How can I check from code-behind, what template currently affects my ListBox?
I can access ListBox from code-behind, its Template property gives type of control this template is for, how to get Name of this template?
Same about styles.
...
I'm working on styling a TabControl on a PC runnnig Windows 7 and everything looked fine, but when I tried running it in Windows XP, I get a hideous white border around the TabControl:
I believe it's the same problem fighting with luna (described here http://stackoverflow.com/questions/952896/tabcontrol-without-border-wpf-xp), but I'm...
Is there any free WPF HTML/Javascript/CSS syntax editor control? Thanks
...
I have a ListView with a binding to a ObservableCollection. Further I am listing out all items in the ObservableCollection. Now, Is there a good way to check if the ObservableCollection is empty, and the display an alternative xaml?
...
Is it possible to have a ListBox with a Data Template that changes depending on certain properties of the ItemsSource? For instance maybe you want a list with a variety of items such as images, video, custom panels, etc. Was hoping it could behave like some sort of factory.
Any ideas how this would work?
...
I'm experimenting problems with text rendering in WPF (third party applications and mine too). Labels and other text don't display correctly, look a little blurred and are rendered with some random colored pixels around.
I'm working on a low end crap machine (SiS Mirage 3 graphics) with Vista SP1, .NET 3.5 SP1 and graphics driver update...
I have a XAML file representing a 3D model with textures.
I want to make the textures read from the same place the file is, or relative to it.
I read the file using a XamlReader, so I want the file to be self-contained.
I place the textures using an ImageBrush which ImageSource is a pack synatx URI.
When I use a 'siteoforigin' syntax...