wpf

Saving new indicies, triangles and normals after WPF 3D transform

Hi, I have a 3D model which is lying flat currently, I wish for it to be rotated 90 degrees around the X axis. I have no problem doing this with the transforms. But to my knowledge all the transforms are a bunch of matrices multiplied. I would like to have the transform really alter all the coordinates of the indicies of the model. Is t...

How to write a custom control, which can auto resize just like TextBox in a grid cell?

I have tried to override MeasureOverride, but the available size will not change when i resize a grid. which contains my control. class MyFrameworkElement : FrameworkElement { override Size MeasureOverride(Size available) { this.Width = available.Width; this.Height = available.Width this.UpdateLayout(); ...

How can I limit height of wpf datagridview based on number of rows?

how do I set the height of the datagridview based on number of visible rows. Let's say I have a datagridview with datasource, having 100 rows. I want the viewable area to show only 10 rows. The other rows can be viewed with scrolling. ...

Defining a ContextMenu in a DataGridRow style

I'm trying to clean up some of my xaml in my views by moving a lot of the DataGrid styles into a ResourceDictionary. One of the things I'd like to move is the ContextMenu that is bound to some commands in the ViewModel. However, when I move the context menu to the ResourceDictionary, the commands are are never firing anymore, and I can...

Multiple Progress Bar States in WPF

I'm currently developing a WPF application in C# and I want to have a progress bar control that can be in a "paused" state as well as an "error" state. Much like this: http://wyday.com/windows-7-progress-bar/ Unfortunately, that's a Windows Forms control and implementing it via a Windows Forms Host proved to be incompatible. My question...

WPF and IPAD\IPHONE

Can WPF Browser application run on IPAD\IPHONE? ...

Date Picker Today Option In WPF

Is there any property , option available in the date picker control so that if user want to select today from any date from current date ? e.g if user is view current month of last year then he has the option to select current date ? ...

Does anyone know about a WPF conponent that acts like the gmail to field?

Where the To-field is a textbox that also contains a dropdown, where each new contact is added to the text field? Similar to the facebook to field, where a box is created for each receiver. Is there such a library or component out there? Thanks ...

RDL Renderer in WPF

All, Is there a third party application / open source etc that renders RDL (Report Definition Language) to WPF? We are not happy with the presentation Reporting Services provides so thinking of using the RDL and render it in WPF. Thanks, MK ...

Animation on TabItem creation ?

Hi, Is it possible to animate a TabItem when it's created ? I would like to create an animation which will slide the TabItem from the bottom of my window to the TabControl itself and add some fade in effect too :) ...

XAML trigger as StaticResource

Why can't I create a trigger and use it as a static resource in XAML? <Window.Resources> <Trigger x:Key="ValidationTrigger" x:Shared="False" Property="Validation.HasError" Value="true"> <Setter Property="FrameworkElement.ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, P...

Update text in StatusBar in wpf using C#

hello, I have a TextBox in StatusBar in wpf which i want to update. I have a list of files in ListBox. On each file I would be doing some operation by calling say method ProcessFile(). So whenever the file processing is completed I want to show that file's name in the StatusBar text. I have tried something like this: private void but...

MS Surface Tag Visualizer steals contact events

I'm struggling with the TagVisualizer control on an MS Surface project. In theory the control seems great, allowing you to respond to input from real world physical objects The problem is that the control will cover the entire screen (since I want to capture tags on the entire screen) and as such, no other controls in my app will receiv...

Image Source binded to missing file

How can I display a default image when the binded path file is missing? <Image Source="{Binding DisplayedBook.ImagePath}" /> My solution: Used a converter, which check if the image exists and returns the appropriate path. ...

Open Word Document with WPF without open dialog

I have the path to a Word document saved in an SQL Database. I am able to retrieve the path but I cannot work out the best approach to open the Word document from WPF without using the OpenFileDialog. I've given up any thoughts of embedding Word in WPF as it has too many gotchas. I just want to be able to click a button or hyperlink a...

How to fire a routed command from a specified event ?

Hello, I've a simple question about commands in WPF : I have a button with an ICommand bound to the Command property, and when I click on this button, the command is started, and wow it works :) Now I whant to start a particular command when I'm just pushing down the button (MouseLeftButtonDown event I think), but I don't know how can...

Access Parent Property from inside Headertemplate

Hi, How to access a parent proeprty from inside a headertemplate.I have overrided the gridviewcolumn class and add some custom properties to it.Now inside my headertemplate of listview i want to access this custom property using which a button shold be made visible or collpsed.I tried templatedparent and Findancestor but i cant get to th...

Wpf usercontrol with parameterised constructor

Hi, We are using Microsoft Unity and dependency injection and so we have parametrised constructor for the usercontrol. How to inject this dependency into usercontrol using XAML? I have added the usercontrol in XAML as below. xmlns:usrRefundArrivalProcessor="Ttl.Refunds.Wpf.Dashboad.Application.Usercontrols;assembly=Ttl.Refunds.Wpf.Da...

Application icon is missing in the taskbar during program start, if another application is active

Hi, I've written a WPF application which has a custom (not the standard) icon. A Splashscreen is implemented too. The icon is correctly displayed if I start the application and wait until it is loaded. But, if I start my application and switch to another application (e.g. Outlook) before the my splash screen is shown, the icon is not ...

WPF MenuItem ViewModel Command

Hi, I am fairly new to WPF and am struggling a little with a scenario. I have a menu which has menu items. When one of these menu items gets clicked a method needs to be called that will do something based upon the text displayed associated with that menu item. So for example, the menu item's content was "test" so I would need to do som...