wpf

How do I change properties on the Navigation Bar in a WPF Frame?

Hi, I'm working on a page based WPF application, and I want to change the size of the navigation bar in the frame. I set NavigationUIVisibility="Visible" in order to see the navigation bar, now how do I change properties on the navigation bar like it's size? Thanks, Roy ...

Resize a shape object

In this question I talk about a star-shape: http://stackoverflow.com/questions/839843/reuse-path-object-in-xaml) <Path x:Name="NiceStar" StrokeThickness="10" Stroke="#ff000000" StrokeMiterLimit="1" Data="F1 M 126.578613,11.297852 L 162.373535,83.825684 L 242.412598,95.456055 L 184.495605,151.911133 L 198.167480,231.626953 L 126.578613,1...

Silverlight listbox won't update with new itemsource

I have a listbox which is bound to a generic list, whenever I removed an item from the generic list and rebind it to the listbox it still shows the deleted items. Here is the code : InventoryList.Remove(currInv); lstSubMenu.ItemsSource = InventoryList; lstSubMenu.DisplayMemberPath = "Inventor...

How do you create a carousel menu interface like in the iPhone using WPF?

Hi, I've seen a couple of tutorials, but not with dynamic animation. Could anyone please teach me at least a rough tutorial on it? I'm a C# developer but have been doing flash animations a long time. Thank you so much! ...

In what way a WPF Wrap panel is slower that we need virtual wrap panel

Hi, I hear a lot about the wrap panel being slower to load things and hence we need a virtualising panel. Can somebody give me a small wrap panel sample where it can be proven it is slower to load etc that it needs a virtualising panel please. I set a wrap panel as a panel control for a listbox, and added 10000 string objects to it, a...

Column Header Styling Issue in Data Grid in WPF

I have formated the Wcf Toolkit Datagrid and below in the is the ColumnHeader Style for it But, there are still some area in Column Header, which are not styled as shown in the image http://www.freeimagehosting.net/uploads/9aba4fbd93.jpg <Style x:Key="ColumnHeaderStyle" TargetType="{x:Type dg:DataGridColumnHeader}"> <Setter Pr...

Resizing Labels

I have a chart in WPF with a lot of labels. The text on these labels is dynamically loaded and subject to change. If I set the width just to auto, then these labels may overlap, which makes the text unreadable. The chart support multiple sizes, so if it gets larger, then the bars are re sized and there is more space for text. Now I want...

.NET WPF Remember window size between sessions

Hello, Basically when user resizes my application's window I want application to be same size when application is re-opened again. At first I though of handling SizeChanged event and save Height and Width, but I think there must be easier solution. Pretty simple problem, but I can not find easy solution to it. ...

Populating grid in C# 3.5

Yesterday i installed C# 3.5 and today when read topic here of "Accessing Google Spreadsheets with C# using Google Data API", and decided to try it out. So i decided to write a example, that: 1) get data feed of first Worksheet of first Spreadsheet, that name contains string segment that user inserted 2) fill grid with data Well i got...

Building a WPF App with NAnt

Hi, Is there some way to compile (with the CSC task) a WPF Application with NAnt except for using the task from the NantContrib? greetings Tigraine ...

Impersonating domain user in WPF - UnauthorizedAccess

Hi all, I am trying to impersonate a domain user account in a WPF application so the application can write to a folder on the network. The domain user has sufficient rights to write to this location. I'm using some code found on the net to perform the impersonation. Basically, it calls the native LogonUser method which returns a securi...

What kind of cascading or multiple-style functionality do I have with XAML Styles?

I have a DockPanel with "StackPanel rows". I need each StackPanel row to get the same style, however, the FIRST StackPanel row which should get one addition style. In CSS I would do this using the cascading feature which I don't seem to have in XAML styles. Is it possible then to have multiple styles as shown in the pseudo code below? ...

How to get WPF DataBinding-to-an-object to work

In the following example I bind the XAML to a static object via ObjectDataProvider. When the user changes information, I want it to automatically reflect in the XAML. What I don't understand is: how do I perpetuate the object? do I have to create a singleton? in the click event, how do I access the "object that is being edited" eventu...

Need to format dates in dynamically built WPF DataGrid.

We are binding an unknown result set to a WPF DataGrid at run time. Some of our columns are going to contain DateTime values and we need to properly format these date time fields. Without knowing which columns are going to be DateTime fields at design time, how are we able to format the columns at runtime? We are using a DataTable's D...

Is it possible to bind WPF Combobox.SelectedValue to multiple ObjectDataProviders?

Trying to determine if it is possible to bind the SelectedValue of a ComboBox to the inputs of multiple ObjectDataProviders with XAMAL Bindings. I looked at MultiBinding but that appears to be grouping multiple controls together, not exactly what I'm looking to day. I'd like to be able to have the ComboBox (locations) change the TextBl...

Text Will not show for selected Item in ComboBox.

I feel really stupid for asking this but I have been thrashing for over 8 hours. How do I get the Selected Item to show its text in my WPF combo box when selected? Above is an option dialog that allows users to select and configure the available tournament displays. The problem is the selected combo box item shows the UserControl in...

WPF equivalent of margin-top?

How do you do the equivalent of css's margin-top in WPF? I have an image which I want to add a margin on the top, but all I can seem to get to work is margin, which effects each side of the image. ...

WPF Memory Usage #2

I've asked a question about my memory management problem in WPF, but this is a different one about the same problem. I am using DotTrace trying to figure out what's going on. When I start up my app, I can see in Task Manager that it is taking 200MB. DotTrace says a total of 33MB. If I simply minimize the window and bring it back up, the ...

WPF - Image Source - Not Fall Within Expected Range

In my XAML and when I build I get the following exception: Error 3 Value 'colorpick.png' cannot be assigned to property 'Source'. Value does not fall within the expected range. Here is the XAML: The "Source="colorpick.png" is underlined. One of the few things I could find regarding this was the below blog post: http://nickeand...

Update a binding that doesn't implement IObservable collection

I am trying to bind a list box to a collection. The problem is that the collection can change, but the collection doesn't implement IObservableCollection. What is the best way to force the binding to refresh? ...