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

WPF Datagrid Inserting new row and saving to context when user moves away...

Hello,I'm new to WPF and I was wondering if there any easy way to insert a new row to datagrid and as soon as the user goes up or down the row, automatically save to the context.When I click on the...

View Article


How to binding to Delete button?

Hi,I have a button, I don't want to implement any code for the button. I just would like to bind it to the Delete button of the key board?How to do that? This is seems very simple but have been spent...

View Article


Style should not override all the properties of custom class in wpf.

I have a custom button Names ButtonSP with properties like TextKey, ColorKey.In my view i created a button and use the properties of TextKey that will get the text from database to display content on...

View Article

populate combobox in datagrid with CanUserAddRows="True"

Hi I have a very strange problem with a combobox inside a datagrid where the CanUserAddRows="True". The very first row of my datagrid works correctly my combobox is populated and I can add it to the...

View Article

Style for WPF Toolkit DatePicker apply the style for textBlock

Hi I have a resource dictionary for style my controls which will be like that<ImageSource x:Key="winBackground">..\Images\bluebg.jpg</ImageSource><SolidColorBrush x:Key="infoBox_brush"...

View Article


XAML - Access to the parent window of a page from this page

Hi everybody,I have a Page that is hosted in a Window. I would like to access to Window's properties from the XAML code of the Page (not from the .cs code, I already found the solution for that). I...

View Article

Problems with getting input from mouse WPF C#

Hi everybody, first of all, thanks for taking the time to read my question. I'm new in the WPF world and I'm trying to build my first application. My problem is that the event MouseLeftButtonDown wont...

View Article

issue with RenderTargetBitmap() Method for Large Image

Dear All,Please help, i cant render image having width=94754 and height=79309 using RenderTargetBitmap() MethodError: Value does not fall within the expected range.Error Code Lines...

View Article


Document Scanner Integration

This is more of a C# question, but will be used in a WPF app.  I'm wanted to integrate a document scanner to my app that will scan a document that is loaded in the scanner, save the file as a PDF or...

View Article


WPF application hangs with 50% CPU eaten

I have developed a WPF application which runs for months without any errors shown. Suddenly, one day, it happened to eat 50% CPU and remained non-responsive. The machine has not updated any patches for...

View Article

Change ForeColor of a Row in a LIstBox if the row contains the word "Error"...

Hello,I have a listbox and I write to it using multiple threads, continuously. At the time of writing I would like to check if the message contains the word "Error" and if so I would like to change the...

View Article

Data grid row selection

Hi,I have created a data grid using Framework element factory and added a radio button along with click event handler. In the click event I am retrieving the selected row and storing it. After changing...

View Article

in C#, in Files and Streams themes

Dear Programmers,Please help me!the Following is my fully code. If there is someone who has is less busy, pls. check this out to help me with my project.Im thinking I have no mistake, but I can not get...

View Article


Framework Crash occurring while entering Japanese Kana in WPF text Box after...

Hi,When I enter Japanese Kana character in WPF TextBox soon after setting Focus, System.Environment.FailFast Exception is occuring. The following details is obtained from event log, 場所...

View Article

MVVM. How to sort column of a BindingListWithRemoving

in my MVVM application, I have a class Users (Model) and its corresponding UsersViewModel (ViewModel). I wish to display a collection of UsersViewModel items in a...

View Article


sampling color from images

HelloUsing xaml, how can sample a color from an image and use that color as a background fill color in runtime?thanks

View Article

Binding IsEnabled property on a Button - System.Windows.Data Error: 40 :...

Hi,I have a ListView that is bound to my TurahSummaryItem object.  I also have aButton defined inside the ListView using a GridViewColumn.CellTemplate:<ListView x:Name="TurahSummaryItem"...

View Article


style is not applied at runtime but being applied at design time

Hi There,I have a simple style in a resource dictionary which is located in a WPFResources.dll, i am accessing this style in another project, i can see that the style is being applied at design time,...

View Article

Passing user credentials automatically from WebBrowser

I have a WPF control containing a WebBrowser, which hosts a Google Earth plug-in.The plug-in tries to address a WCF service that requires Windows authentication.When I browse this address manually on...

View Article

WPF C# datagrid fix view row (fix scroll)

I am working on WPF datagrid and want to fix view after insert row at top, whenever row insert at top view scroll down by 1 row, i am using following codeint i =0;DataTable dt...

View Article
Browsing all 18858 articles
Browse latest View live


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