2,674 questions with Windows Presentation Foundation tags

Sort by: Updated
1 answer

Using an image for the top of a ProgressBar's Value

Basically, I want to have a vertical ProgressBar that represents water and I'd like for the top of the ProgressBar line to be a wave instead of the default line. Is there a way to use an image like that in the ProgressBar? I really just need to have an…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-24T17:36:14.687+00:00
n0kx 1 Reputation point
answered 2020-03-25T03:59:02.513+00:00
Alex Li-MSFT 1,096 Reputation points
0 answers

Canvas.Setleft sometimes not working in the same condition

I want to achieve the effect of moving the rectangle edge (one rectangle moves along one side of another rectangle) using Canvas.SetLeft to set the left border of the moving rectangle. **Under the same conditions**, it can be achieved, but…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-21T15:51:26.847+00:00
Rancho 11 Reputation points
commented 2020-03-24T03:10:07.48+00:00
Alex Li-MSFT 1,096 Reputation points
4 answers One of the answers was accepted by the question author.

WPF Treeview Binding Problem

Evening, My Continents are displayed in the treeview in this case, and in the second piece of code my country's are displayed but i cant put both together, can somebody help. Thanks Madaxe <TreeView…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-21T22:42:31.933+00:00
Marc Jeeves 386 Reputation points
commented 2020-03-23T08:02:44.917+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
0 answers

Additional question about a user control loading more than once

Earlier I asked why a datagrid was causing the window to load more than once. I got the answer, and thank you for your responses! However, in a strange coincidence, the release version of the app still exhibits the same behavior. Although it does…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-20T17:43:42.057+00:00
Rod At Work 866 Reputation points
commented 2020-03-22T14:09:05.547+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers

Combobox with dynamically created items for enum type with text coming from Attributes won't support binding of SelectedItem

I have a custom WPF combobox that generates its contents based on an enum type it's told about via a XAML attribute. When that attribute sets the corresponding property, the control calls the function below. private void OnEnumTypePropChanged(string…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-18T17:42:52.56+00:00
Will Pittenger 281 Reputation points
answered 2020-03-21T10:03:41.937+00:00
Will Pittenger 281 Reputation points
1 answer

INSERT INTO (OLEDB) RAISED NO ERROR BUT NO NEW RECORD INSERTED

Hello. I'm new to WPF migrating from Windows Form. I'm creating a non-profit system for my village management to store data related to the residents. I need to add new user for login before adding new residents data and accessing the sensitive data. …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-19T17:12:06.037+00:00
Fiq 26 Reputation points
commented 2020-03-21T01:28:29.067+00:00
Fiq 26 Reputation points
1 answer One of the answers was accepted by the question author.

How do I get the XAML Designer to show side-by-side?

I must have fat fingered something which turned off the XAML view. Now all I see is the Designer. I want to see them both, side-by-side in the window. How do I get that back? I'm using VS 2019 Enterprise Edition, version 16.5

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-18T21:56:47.693+00:00
Rod At Work 866 Reputation points
accepted 2020-03-20T21:31:13.08+00:00
Rod At Work 866 Reputation points
3 answers One of the answers was accepted by the question author.

Why does clicking on a datagrid cause the window to flash?

I'm working on a WPF app with a colleague at work. This app has a launch panel with 7 buttons. Clicking on any of the 7 buttons causes a new window to popup. These new windows all start with a datagrid, listing the contents of 1 of 7 tables,…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-17T20:54:18.047+00:00
Rod At Work 866 Reputation points
accepted 2020-03-20T14:03:43.45+00:00
Rod At Work 866 Reputation points
1 answer

WPF: How do I bind with this behavior?

Here is an image to help clarify my question. Three TextBoxes and a TextBlock. I want the TextBlock to mirror the contents of one TextBox, but, if I mouse over another TextBox the TextBlock will mirror the Text of that TextBox instead. Mousing…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-19T13:03:54.717+00:00
OneZeroOne 1 Reputation point
answered 2020-03-20T05:10:04.843+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers One of the answers was accepted by the question author.

Using validation rules to disable a button

Hi, I know that in WPF, I could bind a button's IsEnabled property with some TextBox to receive the Validation.HasError result as its IsEnabled value. This does work for simple TextBox. But in my case, I have a DataGrid for user to do the input.…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-02-29T07:50:28.677+00:00
Fanhua Kong 241 Reputation points
commented 2020-03-08T07:03:57.013+00:00
Fanhua Kong 241 Reputation points
0 answers

Wpf white squares bug on display

When i running wpf application theres little white squares on display where position on mouse cursor. Any one know about these wieard bug

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-03-03T17:47:31.28+00:00
manoj lakmal 1 Reputation point
commented 2020-03-04T05:24:56.56+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers One of the answers was accepted by the question author.

How to sort ListView by selected column?

Source thread: how to sort list view with different dataTemplate (int, bool, string, ...), answered by Alex Li-MSFT. I have a ListView control and I want to sort all the items in the list when user click on specific column header, how to achieve it? …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-02-25T08:03:30.603+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
answered 2020-03-03T09:11:14.01+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer One of the answers was accepted by the question author.

When ValidationStep set to UpdatedValue, the invalid red border won't go off

Hi guys. I'm using ValidationRules to do the data check on UI. When I set the ValidationStep to UpdatedValue, it works weird. When the input is incorrect, the control shows a red border as normally. However, after I changed the value correctly, the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-02-28T11:54:04.897+00:00
Fanhua Kong 241 Reputation points
accepted 2020-02-29T09:02:11.687+00:00
Fanhua Kong 241 Reputation points
1 answer

Async ProcessBar not working

Source thread: Async ProgressBar not working, answered by Peter Fleischer. I'm trying to set up an async read of a bunch of files with a ProgressBar, but it doesn't work. Here is my MainWindow: Class MainWindow Dim TheProgress…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,674 questions
asked 2020-02-25T07:55:08.207+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
answered 2020-02-25T08:00:07.347+00:00
Alex Li-MSFT 1,096 Reputation points