Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

How to use mouse(pitch & yaw) and keyboard to rotate camera in WPF

Hi all, I'm currently working on a WPF game on Win7, with a terrain and an aircraft. The camera is bound to the aircraft and i can use keyboard WQSE to move it forward, left, back and right. Now I want...

View Article


DataGrid Performance changes within different Panels

Hi,I have a DataGrid with few thousand rows within the DockPanel. There are also buttons at the bottom of the Dockpanel.  But because my DataGrid is within the DockPanel the buttons are never visible....

View Article


Binding a list to a listview in C# with clickable selection

I can't seem to find an example of what I'm trying to do so I'm floundering around a bit.I have a list:public static List<Dinosaur> Dinosaurs = new List<Dinosaur>();That is derived from:...

View Article

Image may be NSFW.
Clik here to view.

Expander + Grid Splitter

Hi,I have grid with 3 rows, the first row containing an Expander control, the second row containing a grid splitter and the last one containing a button.I am setting the height of the first...

View Article

How can I stop an error that is occurring in .NET code?

I have a terrible problem in my WPF application that causes crashes when a user selects items in a ListBox control. I get a System.ArgumentException stating that 'An item with the same key has already...

View Article


Image may be NSFW.
Clik here to view.

Can you teach us anything about WPF? Win love and recognition! Become a...

TechNet Wiki is looking for great new content, from YOU!Show us your forum solutions or nifty knowledge nuggets and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!This is an official Microsoft TechNet...

View Article

Image may be NSFW.
Clik here to view.

WPF Datagrid Cell Focus Issue after commiting data

I have datagrid which has SelectionUnit = FullRow. When I clcik on cell, it goes to edit mode and without updation if I press Escape key. it came out from edit mode but still it has focus (dotted line)...

View Article

C# WPF how to bind a Label to a method?

I have a label:<Label Name="DinosaurStatus" Content="{Binding Path=Status}"/>But I really need it bound to the output of a method. Status is actually a byte that represents an enumerated type:...

View Article


Image may be NSFW.
Clik here to view.

Is this typical coding for WPF MVVM pattern? It seems way more involved than...

I found a sample WPF MVVM project (VS2008) athttp://www.codeproject.com/Articles/36545/WPF-MVVM-Model-View-View-Model-SimplifiedHere's what the wpf window looks like when running  (I'm just getting...

View Article


FileIOPermission for Partial Trust to read files in BaseDirectory

For practice, I'm writing a partial trust WPF C# application using VS 2010. The program involves some sound, so I've provided some .wav files in the program's base directory.To avoid problems at...

View Article

RenderTargetBitmap MILERR_WIN32ERROR

Hello,as others, I am hitting the 10,000 GDI objects limit with RenderTargetBitmap. But I haven't seen any solution other than "do not create that many bitmaps". So how can they be properly disposed?I...

View Article

Image may be NSFW.
Clik here to view.

VS2010 - DataGrid: How to center text vertically in DataGrid cells in a...

Hi all,I'm using a DataGrid with DataGridTextColumns. To increase readability of the Grid I tried to use DataGrid.RowHeight=25. The text in the cells is displayed with VerticalAlignment="Top" of the...

View Article

wpf listbox item scrolling when listboxitem width greater than listbox width...

i want wpf listbox item text scrolling when listboxitem width greater than listbox width using data template as textblock   on mouse enter and mouse leave events  normal behaviour is textwrapping as...

View Article


POS

hi,i want to develop retail POS web application.i want to listen the experts' opinion.Right now , i am not even familiar with full domain understanding (business understanding).i have to do everything...

View Article

problem in user control shortcut key in wpf

Hi,     i have problem in user control shortcut key..in my project i have expander if i click expander button i will show user control in ContentControl.. i have 2 button in user control and i set...

View Article


UserControl - TwoWay-Binding in ControlTemplate

Hi, I have a UserControl similar to this:public class MyUserControl : UserControl { public static readonly DependencyProperty ButtonClickProperty=DependencyProperty.Register("ButtonClick",...

View Article

Format Databindings for auto generated columns

Hi,I am binding a DataTable to a WPF DataGrid (ItemSource) and columns will be generated automatically based on the DataTable.However, I need to format some columns lengths once they are gone beyond...

View Article


How to bind different DelegateCommands to button down and button up

Hi,In my current project I need to implement separate commands for button down / button up.As soon as the button is pressed I need to start a process and then as the button is released I need to stop...

View Article

generating a licence key

HI guysI am trying to create a windows 8 desktop app, and would like to be able to generate a licence key to anyone who downloads the app....does anyone know of any good sites or suggestions as to how...

View Article

Image may be NSFW.
Clik here to view.

It it possible to 'tighten leading' (reduce space) between lines?

I would like to reduce the leading (space between lines) of the Labels in this window:I know you can increase the spacing using Margin. Can I 'tighten up' the spacing instead? Below is the...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>