wpf

WPF and ToolboxItem(false)

I'm setting ToolboxItem(false) attribute on couple of classes in my control library to prevent the from being added to Toolbox. This attribute works perfectly well with ASP.NET designer but with WPF designer it seems to have no effect. Is there some other way to achieve this with WPF or is just unsupported? ...

What is the best way to make a graph in WPF? (or in general that would apply to WPF as well)

So I am making a piece of software in WPF, and I want to be able to make graphs out of the data I am storing. Just line graphs with x and y axises. Ideally I would want them to have a nice elegant simplicity to them. I know WPF doesn't come with graphs, and I have tried ZedGraph in a WinForms project, but I thought frankly it looked...

In WPF, does this line leak?

Does this line leak if we remove TextBox from the visual and logical tree? To me this leaks because Mouse.MouseDown has a reference on myHandler and nothing is done to remove the handler. <TextBox Mouse.MouseDown="myHandler" /> I'm not sure, because this code is common practice. ...

Save WPF image with Shader effects applied

I have a WPF Image control with attached blur effect. Is there a way to save the image (with blur) without using RenderTargetBitmap? Thank you. UPDATE: I'm using now new custom effect which derives from System.Windows.Media.Effects.ShaderEffect. I would like to save my image with shader effect applied. ...

WPF DataGrid Styling

Does anybody know/have an example of how to change WPF DataGrid layout to be something like card-view or anything else, not just stack of rows? ...

wpf complete reference

Hey I am looking for a complete wpf tags documentation to use it with wpf controls. Anybody seen something like this? 10x ...

Combobox controling Tabcontrol

What i am really trying to achieve is to full control the active TabItem by using the combobox as the navigation control. Here is what ive got so far: <TabControl Canvas.Left="26" Canvas.Top="27" Height="100" Name="TabControl1" Width="220"> <TabItem Header="TabItem1" x:Name="TabItem1"> <Grid /> </TabIt...

WPF: Does MessageBox Break PreviewMouseDown?

I've been trying to get my WPF application to prompt users to either discard their unsaved changes or to cancel when they navigate using a TreeView. How can I cancel a user’s WPF TreeView click? How do I properly handle a PreviewMouseDown event with a MessageBox confirmation? I think I've found a bug. The MessageBox does not play ni...

Cross platform 2D Vector + Raster API + hardware accelerated - does this exist?

Requirements: Retained graphics mode API For 2D objects only (though 3D transforms of these 2D objects is of interest) Cross-platform Vector graphics drawing Raster compositing + support for opacity masks - hardware accelerated of course... Animation API Package size - can it run in an embedded environment? This is not for a game, bu...

How do I embed one WPF form into another ?

I would like to have master WPF form with tab control where each tab contains one independent WPF form. Those forms do not depend on each other, so I thought it will be easier to develop each of them separately and then just embed them into master form. Number of forms is known, so there is no need for dynamic plugin system. ...

Using Ribbon as tab control

I would like to create application with ribbon interface that looks and behaves like this: application have one main form with ribbon ribbon has multiple tabs when user switches tab on ribbon, panel below ribbon changes and displays content related to ribbon panel. That way, ribbon tab acts as if it is tab over whole window. For exa...

How do you exclude an object from picking up the default Resource Dictionary?

I am using a 3rd party resource dictionary and it is conflicting with another usercontrol that I need. How do I exclude this usecontrol from picking up the default resource dictionary? Thanks Dave ...

WPF and Layers

Hello all, I am trying to learn WPF and so far I love it. However, there is something missing or simply something that I don't understand. How can we display multiple layers of controls in WPF? Attached, the screenshot gives a good idea of what I am trying to do. I have a window and I want to display something else on top of it. How can...

WPF: Speed of Movement (Translation) varies with distance

With reference to this programming game I am currently building. I wrote the below method to move (translate) a canvas to a specific distance and according to its current angle: private void MoveBot(double pix, MoveDirection dir) { if (dir == MoveDirection.Forward) { Animator_Body_X.To = Math.Sin(Heading...

WPF: Rendering a canvas at Random Points

With reference to this programming game I am currently building. When the game is started, I am generating these robots at supposingly random points on a Canvas, and at first look (adding one or two bots at the same time), this seemed to be working as it should. ...but, when I added a ton of bots at the same time, this is how they wher...

Wpf hosting windows form - mouse events not getting through

Hi, I've got a WPF app that has a WindowsFormsHost, which hosts a geobase map. The problem I have is getting the mouse events through to the map. I've added MouseUp event handlers to the map (in code), but this does not work, and I've tried adding the MouseUp event handler on the Grid that contains the WindowsFormsHost, but the events...

Best way of acquiring information from several database tables

I have a medical database that keeps different types of data on patients: examinations, lab results, x-rays... each type of record exists in a separate table. I need to present this data on one table to show the patient's history with a particular clinic. My question: what is the best way to do it? Should I do a SELECT from each table w...

Is it possible to use WPF and Delphi 2007/09 win32?

Is it?! Possible? ...

Best way to store multiple controls in an array.

I have a UserControl in WPF with numerous child controls which I would like to index like an array. These child controls are in the same grid control as other child controls which I am not interested in. I'd like to be able to index these controls in a way similar to: someControl.Children[3]; With out having to avoid controls which I...

How do you set the Style so when the combobox has focus it does not have the highlight?

I created a FlatCombo Style that I want to apply to a combo box. The one thing that does not work the way that I want is when the ComboBox has focus. I want almost no indication that it has focus. Currently there is a blue highlight on the text area. I assume this is being picked up from my 3rd party resource dictionary. How do I ad...