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

C# WPF InkCanvas - Cursor jump

I'm writing drawing application using C# WPF InkCanvas. Problem is, When I set UseCustomCursor = "True", and Cursor = "Hand", the cursor on InkCanvas jumps to the first point of a stroke. Not all times...

View Article


XBAP appcrash PresentationHost.exe with Fault Module Name: clr.dll...

Hi, I have an xbap app and when I try to run the deployed version on my laptop it crashes every time. I am able to run this xbap from other systems without issue, so I know that the application is...

View Article


How do I find PageImagableArea for other papersizes

Im trying to fix a scaling issue when our application prints on other papersizes then A4. There is an existing method called GetPrintableArea in our code, but it returns the same values regardless of...

View Article

NullReferenceException in HwndHost.BuildWindow() since .NET 4.6

We're getting the following NullReferenceException when running our application with .NET 4.6 or 4.6.1 installed (works fine in 4.0) when a certain action is performed: Stack:    bei...

View Article

WPF Entity Framework, Custom ValidationRule for class.metadata.

Can't figure out how to do this, basically I want to create a custom Validation class which will allow me to define custom code like below:namespace PhotoManagement.EntityData {...

View Article


Datagrid Header New Line

Hello,i am binding a textbox to datagrid in xaml for filtering purpose, the code is working as expected. However i would like to move the textbox to New Line. Can someone suggest how to get textbox to...

View Article

getting started with MVVM

Hello,having used WPF for quite a while, my applications are growing bigger. I would like to start using the MVVM pattern, but I have great difficulties getting an good understanding of some basic...

View Article

WPF DataGrid CheckBox Check/Uncheck with single click

Hi,I need check and uncheck of CheckBox using spacebar key in a single click.I tried like below.<my:DataGridTemplateColumn Header="Chk" MinWidth="40">...

View Article


How to change a namespace and automatically all the references are updated?

I'm not sure, I'm asking it in the right place, anyways. I create a folder in my project and move some of the xaml (plus c# files) into it. But the namespace doesn't update. How can change the...

View Article


Image may be NSFW.
Clik here to view.

Get time elapsed from storyboard

How to get the time elapsed from storyboard ? The time elapsed needs to display according to the rectangle fill.MainWindow.xaml<Window...

View Article

DependencyProperty on UserControl - PropertyChangedCallback not firing on...

Hi,After finishing my AutoCompleteSearchBox UserControl, I now attempt to make it reusable. Therefore, I need to expose some dependency properties such asIList<object> SearchSource and string...

View Article

Image may be NSFW.
Clik here to view.

Why does my Form look different when running as a compiled exe compared to...

When Im running my program from within Visual Studio it looks like this...But when I run it as a compiled exe it looks like...Notice the positioning of the close button.Thanks

View Article

Image may be NSFW.
Clik here to view.

Incorrect location of RibbonQuickAccessToolBar of RibbonControl when...

I am trying to create RibbonQuickAccessToolBar in the top of left corner of the "RibbonWindow". To implement it I use a library ofSystem.Windows.Controls.Ribbon. It works very well till I...

View Article


Microchip HID_PnP_Demo, WinForm to WPF.

Hi anyone!I'm trying to convert a Microchip example code from WinForm to WPF, the example is about an HID that automatically detects, identifies and makes a connection with it (Plug and Play) but I...

View Article

Scale the a UI element by 200% at the center of UI element on mouse hover

Hello,  In my application, I have canvas which has many child UI controls inside it. On mouse hover, i want to Scale the a UI element by 200% at the center of respective UI element. And on mouse leave...

View Article


Two windows Simultaneous control WPF C#

Hello Everyone, I am pretty new in WPF C#. I am held up with an Issue.ISSUE:Lets say i have a MainWindow.xaml, and have the Main program logic in it.I have a second Window called Second.xamlI am...

View Article

Annoying auto scroll of partially displayed items in WPF ListBox

Problem: I havea ListBoxwith items having differentheights.When I clickon an itemthat is partiallyvisible jumps(scrolls)the elementuntil it is completelyvisible.I click onabutton,then the...

View Article


Login Animation

Hello I'm trying to make program with a login screen then once they enter in there details a small animation takes place.The login screen will have and picture or "icon" center above the login form....

View Article

AutoCompleteTextBox in WPF C#

I've seen a number of suggestions for AutoComplete in WPF on a TextBox. However, they are all years old by now and many are expired without working websites. Basically, I'm going to want to bind the...

View Article

Data repeater Height

I need to have data repeater whose height is based on number of times template is repeated.Please provide with solution

View Article
Browsing all 18858 articles
Browse latest View live


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