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

"c" key is not working in a WPF application

I have encountered the most bizzare keyboard issue since I started working with WPF.In a certain mode of my app, I find that the "c" character cannot be typed inside any of the text input fields. The...

View Article


WPF project, add existing item as link

Hi.I have two solutions for .NET2 and .NET4 and NET4 solution has projects that use files (.cs etc) from .NET2 solution. I have create a WPF application project in my .NET4 solution and trying to add...

View Article


Dynamically bind datatable to a dynamic datagrid

Using Visual C# 2010 Express, I have a primary data table dt. From this table I have to select few records depending on a filtering condition and load into a new datagrid of a new tab item in a Tab...

View Article

Copy multibound DatagridTextColumn value to the clipboard?

Hi, I'm having a strange problem with copying from a datagrid text column to the clipboard.This is my binding for the column:<DataGridTextColumn Header="Yield" Width="120"...

View Article

Image may be NSFW.
Clik here to view.

Override ScrollViewer ContentTemplate WPF

I have a custom ScrollViewer template that I use to customize DocumentViewer control.<Style TargetType="{x:Type ScrollViewer}" x:Key="CustomScrollPresenter"><Setter...

View Article


How to prevent changed color of listview selected item not to affect listview...

In a list view I was able to prevent the background color on a selected item from showing, see xaml below.  But on the listview context menu I what the selected item to be highlighted.  So how do I get...

View Article

System.Windows.Control.Label c# Cannot use Invoke for cross thread access

I am trying to update a System.Windows.Control.Label from another thread. I cannot use a delegte, as one does not exist for thiese controls. What are my option (c#).Steve

View Article

How to end wpf datagrid cell editing outside CellEditEnding event handler

I have WPF tab control which contains datagrid and several buttons. After user edited CheckBox in he datagrid, without clicking Enter key or Tab key, user directly click "Finish" button outside the...

View Article


WPF app referencing another WPF assembly (dll) not starting in Release mode

Hi,My WPF app references another WPF assembly compiled as class library (dll).  My WPF class library has only one simple class to present a Login window where user authenticates before the main WPF app...

View Article


.Net 4.0 DataGrid Row Validation

I'm using a WPF 4 datagrid (not the toolkit datagrid) and I have an ObservableCollection of objects that implement the IDataErrorInfo interface. My implementation is as follows: #region IDataErrorInfo...

View Article

arrange 3 grids in a Window

I have 3 grids in my window.2 in the left one below the other(like left pane) and 1 in the right paneHow to arrange them so that they resize automatically in the ration of 25,25 and 50 %

View Article

How to know whether property value change has started or ended at...

Hi,We have a scenario where we need to use UpdateSourceTrigger = PropertyChanged, because we need to show the changing text as user keeps typing in same control. Because of this, i am aware that the...

View Article

How to image show in context menu ?

Hi all,           How to multiple images show in context menu such as i want to show  Cut,Copy,Past images  in context menu .  Thanks          aniruddha

View Article


Trouble With Mouse Events and Dragging an Element.

HelloI want to drag some elements on a Canvas and am using this DraggableExtender code as the basis for my solution:DraggableExtender.Essentially it appears to attach PreviewMouseUp, PreviewMouseDown...

View Article

Problem with ApplyPropertyValue Method

I have encountered a strange problem with the ApplyPropertyValue method of the TextRange object. The following code segment works fine for a small amount of text in the WPF RichTextBox rtb, but hangs...

View Article


Rotate a Custom Panel in wpf

Hi experts!I Have Custom Panel:public class RelativePositionPanel : Panel { public static readonly DependencyProperty RelativePositionProperty = DependencyProperty.RegisterAttached("RelativePosition",...

View Article

Can we use RenderTransformOrigin with LayoutTransform

I want to zoom an a control and i use ScaleTransform and RenderTransformfor doing so . While zooming the control i need tomake sure Zoom from center of control not from top left, so i...

View Article


How to drag custom Window select on title bar ?

Hi All,<o:p></o:p> I am using Custom Window and its Height & width are as below:<o:p></o:p>           Height = 500, Width = 500,  MaxHeight = 500, MaxWidth =...

View Article

Bind to an array of an existing object in XAML returned in async server call.

Hi All,I am new to WPF. I would like to bind existing class to ListView. I've read MSDN's articles, however I still can't figure out the best way to do that.I have a class which is defined by WSDL. It...

View Article

WPF UK Date Format

Hi there I am working on a WPF project some of the client machines are set to regional setting in US date format(mm-dd-yy). Is there a way I can force to my WPF application to use the date as UK date...

View Article
Browsing all 18858 articles
Browse latest View live


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