wpf

Can't create Columns in my WPF Grid. [Newbie]

I have this code for my very very basic WPF Project. <Window x:Class="WpfApplication1.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"> <Grid ShowGridLines="True"> <ColumnDefinition x:Name="LeftColumn"></Colu...

Is there a way to reference a Grid Column by the x:Name as an alternative to its zero-based index?

In my code I can reference the Column using it's index. But I'd much rather use it's name. Is this possible? I have no idea. :D <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="800"> <...

WPF - where can I find some Resource files that will really make my datagrids stand out?

I'd like to make my WPF datagrids really "pop" in my application. Is there a repository of really good resources files out there that I can use to apply to my datagirds? I've already used some from the silverlight toolkit but I'm sure there must be more out there. ...

WPF binding with explicit conversion.

Hello everyone, My question may be a repeat of other conversion question but I feel mine is different. Here goes... [simplified example]. public class DataWrapper<T> { public T DataValue{ get; set; } public DataWrapper(T value) { DataValue = value; } public static explicit operator DataWrapper<T> (T value...

WPF and 3D question about animations

I have a few 3D meshes in my WPF application, and I need to add some animations to them, not the typical animations, but rather a sequence of PNG images for creating a graphical animation. Think of it like I need to add a cartoon animation to the side of a Cube. I know very well about the Viewport2DVisual3D, but when I replace my norma...

Limitations of using .NET 2.0 (Windows Forms) controls in WPF?

I want to start a new application on WPF. The new User interface in WPF needs DataGridView control and PropertyGrid Control. But it looks like that these two controls won't exist in WPF and I want to host these two controls using WindowsFormsHost. However, if I do that, is there any limitation anybody forsee with this approach? ...

Wpf Panel Background problem

When i don't set background of my panel i can not get mouse events on that. why this behaviour? I am able to get mouse events on panel by setting Background to Transparent which is null by default. Whats the difference between Background null and Transparent? ...

Print in c# with specific options

Hi I am wondering if it is possible to print a few images with specific options in c#. We have bunch of images in our db. The options also will be coming from db. For ex: Option 1: FileName1, A3 Size, Landscape, Print Quality = Best, Pages persheet = 1, 600 DPI, whole page. Will appreciate any input. Thanks, N ...

How to fill an overlapped area when FillRule fails?

Hi, I'm trying to draw a hand-made DB drum alike shape. The problem is that the top ellipse is not completely filled. Sample: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid> <Image Width="126" Height="42" Margin="3" HorizontalAlignm...

How can I inform the user of an XCOPY WPF 4 app that he needs to install .NET 4?

I've made a small tool application with Visual Studio 2010 which to distribute it, I zip these files from the Release folder: Data MainData.mdf MainData_log.ldf DataBackup.exe DataBackup.exe.config FluidKit.dll then unzip them on the target machine (no installation). When I run it on a Windows 7 machine with .NET 4 installed, it ...

WPF: Is it possible to create a number of ListView.View templates and dynamically select one at run-time?

I want to have ListView control which can be filled with one of a number of different object types (not mixed, always just one type). I would like to adjust the columns dynamically to correspond to the object type currently in the list. I know I could do this programmatically (http://stackoverflow.com/questions/868204/adding-columns-pro...

Wpf Recursive Binding

I'm trying to figure out how to build a recursive binding in xaml. I know about HierarchialDataTemplate, but that's not what I want, because my data source is not a collection of items. Specifically, I'm building an exception browser, and am trying to figure out the best way of expressing the exception's InnerException field (which is of...

how are wpf and silverlight different?

can anyone tell me what is the difference in wpf and silverlight, what features has been added and removed from wpf in order to get silverlight. ...

Wpf Binding tow binding on the same Dependency property

i have a control the have a property called "SelectedItems" my control bind SelectedItems to an innerDataSource. the control user bind this property to his model view how do i explicitly trigger a bind update for the two binding ? using getBindingExpretion Gives me reference to only one of the binding . ...

How bind the mouse...

Hi All,i wish bind the mouse icon in a Visual Brush,i.e i have a Canvas and so i add A visual Brush to bind whole content of the Canvas but now i wish bind also when the mouse move the Visual Brush can reproduce the movement of the mouse into the Canvas. Do you have any idea how work out this step/feature? Thanks so much. ahh i forget ...

Focusable Panel in WPF

I need to make a Panel focusable in WPF, so that it captures keyboard events just as any other focusable control: The user clicks inside the Panel to give it focus any KeyDown or KeyUp event is raised at panel level if another focusable element outside the panel is clicked, the panel loses focus I experimented FocusManager.IsFocusSco...

Set different SelectionChanged Event Handler for a DataGrid inside another DataGrid

I have a DataGrid (WPF Toolkit) with a custom combobox like edit template of a cell. This custom combo box have another datagrid like popup. I have this problem: In the window constructor I assign the event handler to the master datagrid with this statement this.dgDoc.SelectionChanged += new SelectionChangedEventHandler(dgDoc_Selectio...

WPF ObjectDataProvider that supports linq filtering?

Is there an WPF ObjectDataProvider that supports "Where" I mean like in asp.net there is an option to have a dataprovider that supports defining the results? What I actually need is two ComboBoxes that when I choose a value in the first it limits the second one. Say I have a parent table Category and a child table Group. I want that whe...

How to disable WPF Menu's transparency?

I am writing an WPF application with a menu. it needs 2 to 4 seconds to show the submenu. during that 2~4 seconds, the submenu showed in transparency state. So here is the Question, How Can I disable the transparency state of the menu? or something to avoid the 2~4 seconds' delay? Thanks in advance. ...

Xaml - add existing control to grid

Trying to develop using MVVM: I have this Csla.PropertyStatus control that is created in my ViewModel. I want to add it in the xaml (via binding, i think) and set some additional properties there (such as the target). I don't know how i could do that, not even if that is possible. I was looking for something like <csla:PropertyStatu...