Hi
In a datagrid I have two DataGridComboBoxColumns. The items of one of these columns should depend on what is selected in the other column. The underlying collection used to model this is a dictionary<string,List<string>>. How should i go about implementing this? I can't seem to hook up to any relevant events on the columns, and I ca...
I'm implementing drag & drop from a ListBox, but I'm seeing some strange behaviour with a ContextMenu elsewhere in the window. If you open the context menu and then start a drag from the ListBox, the context menu closes but won't open again until after you perform another drag.
Does this make sense? Anybody got any ideas what might be...
I know this has been asked before, but the answer seemed incomplete...
Is there a way to playback .mov files in the MediaElement control in WPF, or what's the alternative? Has anyone done it here?
...
Hi,
I am using multiple window,xaml files in my aplication. The parent window is ParentWindow,xaml. On click of one of the button in this window I am opening the child window named Ancent.xaml. Now once I open this child window, I want to dock the parent window. Can u tell me how can I do this?
...
I am creating a report designer and so i have a need to add/remove fields and move them around in the designer.
I have a custom canvas (extending the Canvas class) with a matrix of labels that I am able to drag around.
I would like to build up all these labels dynamically from a databound data source.
What would be the best way to do th...
How to get existing control's controltemplate in WPF in XAML format(visual tree)?
This is to help to create new controltemplate with the help of existing template.
...
The problem I started with is that I want to display in an ASP.NET application a 3D model.
First of all I thought of Silverlight, but Silverlight 3 does not support 3D rendering. WPF does, so the next step was creating a demo for an WPF browser application.
The 3D surface was rendered, but how can I include it in the APS.NET applicat...
I have a treeview which shows a hierarchy of items where each item has a checkbox. I would like to show below the treeview a listbox with all the checked items. How to achieve such functionality using MVVM pattern?
Thanks in advance
Lukasz Glaz
...
This combobox should display a bound value as its text, and cannot be disabled.
I just want to prevent a user from changing the displayed value.
...
Hi,
I'm just starting up a new, big project that will be using WPF for the front end. I'm looking for some kind of solution for an integrated help system. The basic use case for this is that the user needs to be able to reach context sensitive help at any time when using the system. The help content should be localized and displayed wit...
Hi,
I have some text which has "\r\n" newline markers. I would like to have the newlines in a WPF textblock. I've tried replacing "\r\n" with "& # 13;" (without the spaces), which worked when I set the Text property in XAML, but doesn't seem to work when setting from the C# code-behind.
So...what's the standard way to convert "\r\n" to...
hi everyone! i am new in wpf so forgive me i want more!!!
i am trying to build an application. i have a treeview that bounded a datasource. it is okay. i have two problems. First; how can i select an item from treeview? i wanna a new window popsup when i select an item; when i click another item; another window popsup. Second problem i...
Hi,
I am creating an application which populate rows from the database with filter option. Please sugest me how to add a filter button in ListViewColumns?
Thanks for your reply.
Regards,
Prabu
...
I am building a text-to-image generator that takes a text, a font, a max width and some other parameters and generates an image from this. It will be used as a custom server control in a web site to generate headlines.
I allready have a component like this which uses GDI+. The problem with this is that GDI+ is incapable of setting line ...
I want to place a static rectangle on top of an image.
The rectangle should be a percentage of the image size (like 80%) regardless of the image size.
I have tried to put the image in a Canvas and as a Canvas background but then I can't get the image to fill the surrounding area.
<Canvas Grid.Row="1" Grid.Column="0">
<Canvas.Backg...
I have a User Control that has one child - an Image. I'm trying to set a default image using code in the User Control's default constructor to display an image resource, but so far with no success in either Blend preview or when I actually use it in a running app. I do not get any errors either. Shouldn't this be possible?
Here is the X...
Is it possible to bind an OvservableCollection of Labels or and FrameworkElement to a canvas?
If so how can this be implemented?
...
I'm working in the MVVM design patter with WPF. I have a context menu with several items in it on a ListView. Based on the number of items selected in the listview, I want to enable/disable certain menuitems. Is there a way to route the selection changed event along with the number of selected items in the listview directly to the vie...
Hi All,
I wan't to control DataGrid columns visibility through a contextmenu available to the user by right-clicking the column header. The contextmenu displays the names of all available columns. I am using MVVM design pattern.
My question is: How do I bind the DataGridColumns Visibility property to the Ischeked property of a MenuItem...
I recently discoverd that there is a bug in the dutch .Net assembly that effectively breaks NavigationWindows on dutch vista SP1 or higher. See for details this link
A hotfix is available, but how can I distribute this with my ClickOnce application? I am appalled that this situation, that seems to be known since february, has not been r...