2,686 questions with Windows Presentation Foundation tags

Sort by: Updated
5 answers

New binding results to "Object reference not set to an instance of an object"

Hi I have a data source at MS SQL Server and an app which reads definition and data from db without tight integration. New tables and columns get created all the time. I need to change binding names after data is read from db and before it is…

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,686 questions
asked 2020-05-06T07:00:50.313+00:00
Janne 1 Reputation point
answered 2020-05-07T08:23:10.077+00:00
Janne 1 Reputation point
1 answer

scope resources to ResourceDictionary file

hi is it possible to make some value (ex: Double) scoped to it's ResourceDictionary file so it wouldn't be accessible elsewhere. thanks in advance

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,686 questions
asked 2020-05-06T00:03:43.943+00:00
essamce 621 Reputation points
answered 2020-05-06T17:09:00.747+00:00
mister.nobody 101 Reputation points
1 answer One of the answers was accepted by the question author.

WPF label not updating value on the UI

Hi All, I am currently working on a C# WPF application. The UI contains a tree view with checkboxes. I need a label on the UI to update the number of checked checkboxes. However, even though i get the value and try to update the UI, the 'Property…

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,686 questions
asked 2020-05-04T05:30:35.5+00:00
abijith gowda 61 Reputation points
commented 2020-05-04T09:59:50.183+00:00
abijith gowda 61 Reputation points
1 answer One of the answers was accepted by the question author.

(C#) Show message before Shutdown when DVD is burning.

Hi I want to create a APP to Show message before Shutdown when DVD is burning. The situation is: 1, I use a third party APP to burn DVD. 2, I create a APP that can Shutdown OS and before Shutdown, I should check burn process is running or not.…

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,686 questions
asked 2020-05-01T08:39:33.293+00:00
jackygedeju 21 Reputation points
commented 2020-05-04T08:55:37.153+00:00
jackygedeju 21 Reputation points
0 answers

WPF Listview touch issue on window 10: "an event of another datatemplate is triggered while it may not happen"

This a MSDN question asked by Free_development, the source is WPF Listview touch issue on window 10: "an event of another datatemplate is triggered while it may not happen" Before we start:- (links will be provided later) Detailed…

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,686 questions
asked 2020-03-27T07:51:15.527+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
commented 2020-05-03T07:57:57.063+00:00
fre anc 1 Reputation point
2 answers One of the answers was accepted by the question author.

Tree View Checkbox issue

Hi All, I am working on a WPF C# application which has a tree view. The tree view is populated by a set of model classes. Each element on the tree view except for the root node has a checkbox. The issue now is that when i check a checkbox, it is…

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,686 questions
asked 2020-04-30T19:22:11.69+00:00
abijith gowda 61 Reputation points
accepted 2020-05-02T11:36:53.893+00:00
abijith gowda 61 Reputation points
2 answers One of the answers was accepted by the question author.

C# WPF How to bind a nested class to nested datagrid in “Datagrid Row-Details”?

How to bind data from nested classs to a nested datagrid? Why nested datagrid unable to read the class? what error i am doing? public class Student { public int Id { get; set; } public string Name { get; set; } public…

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,686 questions
asked 2020-04-30T04:23:39.06+00:00
MM Kottari 21 Reputation points
commented 2020-05-01T15:20:03.253+00:00
MM Kottari 21 Reputation points
3 answers

I have a problem with 'NoteViewer' in XML。

Dear sir, I managed to create a sample mentioned here with WPF App and Blank App (Universal Windows) http://musicengravingcontrols.com/en-US/Articles/Display?id=2 However, I have a problem here. Error Lists say "Unknown type…

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,686 questions
asked 2020-04-18T05:36:28.407+00:00
寛明 水崎 1 Reputation point
commented 2020-05-01T06:13:25.173+00:00
寛明 水崎 1 Reputation point
2 answers

Magnetic Usercontrol?

Hi, I am working on a WPF project where I will launch a new dialog inside a Window. User should be able to drag this dialog box to the edge of the window and if it is close enough, it should cling on to that side of the window like docking. User can…

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,686 questions
asked 2020-04-25T12:02:47.187+00:00
Vijay Kamat 1 Reputation point
commented 2020-05-01T03:14:19.713+00:00
Vijay Kamat 1 Reputation point
2 answers

Opening a New Window on a Button click - MVVM WPF

I am new to MVVM architecture, and I would like to keep the standard of MVVM without violating its rules. So I implemented an approach to open a new window on a button click using Services. I don't know if this is the right approach to do so. Here is my…

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,686 questions
asked 2020-04-08T03:45:22.81+00:00
Maneesha Rajaratne 1 Reputation point
commented 2020-05-01T02:44:19.933+00:00
Xiaodi Yan 876 Reputation points MVP
1 answer

Performance delay occurs when creating new instance of my custom class on while loop

I have one custom popup wpf control ( Repeater Items control), In the repeater control, every time when press up/down creating im creating new instance of item control added to repeater item collection. My problem: I have one progress bar and my…

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,686 questions
asked 2020-04-29T11:38:27.08+00:00
Magesh Sankar 36 Reputation points
answered 2020-05-01T01:35:03.48+00:00
Alex Li-MSFT 1,096 Reputation points
1 answer

[WPF - C7] - Problem with datagridview

Hi, I have a datagrid and when I drag fastly the vertical scroll bar to the bottom it shows like that If I click on "Install" (it's a datagrid cell with a button inside), it doesn't work and I get that If now I click on…

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,686 questions
asked 2020-04-30T15:51:54.417+00:00
BlackSun 21 Reputation points
answered 2020-04-30T17:11:46.9+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer

VisualBrush template in xaml

hi i'm creating a lib of hatch patterns as VisualBrush as a resource dictionary, every things goes well so far, i have some questions , here is my code: <VisualBrush x:Key="VisualBrush.Hatch.Fill" …

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,686 questions
asked 2020-04-28T20:18:18.337+00:00
essamce 621 Reputation points
commented 2020-04-30T09:37:30.963+00:00
Alex Li-MSFT 1,096 Reputation points
0 answers

Webview in wpf

I want to use my html page in webview in wpf application to load a video in webview from youtube but unable to load html page.

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,686 questions
asked 2020-04-28T07:39:56.57+00:00
Vaibhav Gupta 1 Reputation point
commented 2020-04-30T02:15:11.707+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers One of the answers was accepted by the question author.

Need to focus the grid which placed inside the Scroll Viewer on Mouse Click

Problem 1: I need to focus the Grid(UI Element) when it is placed inside the Scroll viewer. Code: <ScrollViewer> <Grid x:Name="RootGrid"> <Border Height="24" …

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,686 questions
asked 2020-04-16T12:52:01.073+00:00
Magesh Sankar 36 Reputation points
accepted 2020-04-29T11:23:52.39+00:00
Magesh Sankar 36 Reputation points
2 answers

How do i get back a listbox item after a window closes in C# WPF

I have 1 Listbox it takes items from TextBox, when an item is added to the listbox and the application is closed, upon opening the application the item added to the listbox will still be present. Use case: User opens application. User adds item…

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,686 questions
asked 2020-04-22T06:02:19.737+00:00
Sahana M 1 Reputation point
commented 2020-04-28T08:55:35.543+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers

Drag, Cling, Dock a dialog

Hi, I am working on a WPF project where I will launch a new dialog inside a Window. User should be able to drag this dialog box to the edge of the window and if it is close enough, it should cling on to that side of the window like docking. User can…

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,686 questions
asked 2020-04-17T02:49:08.257+00:00
Vijay Kamat 1 Reputation point
commented 2020-04-27T02:26:38.763+00:00
Alex Li-MSFT 1,096 Reputation points
4 answers

Need help writing a UserControl

I trying to create a UserControl that will be added a variable number of times to a wpf window at run-time. This is my first attempt at a UserControl. I have two requirements for this UserControl: The content of the label is to be defined at…

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,686 questions
asked 2020-04-16T21:42:02.433+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2020-04-24T16:16:26.133+00:00
RogerSchlueter-7899 1,236 Reputation points
0 answers

WPF Binding multiple usercontrol to one viewmodel

My program is basicly a truck diary. I have a main page that is set up like a diary with days of the week listed. In them days of the week I have a custom control called TripUI which is setup in a listview and bound to a ObservableCollection from my…

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,686 questions
asked 2020-04-24T07:27:33.197+00:00
Shaban Mehmet 1 Reputation point
commented 2020-04-24T09:47:38.893+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers

remove Item template background

when I make template to list view item in UWP it give me a background white or black to that template such as: how can I remove this black background this is the template that I was working with: …

Universal Windows Platform (UWP)
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,686 questions
asked 2020-04-04T21:39:10.577+00:00
AbdAlghani 1 Reputation point
commented 2020-04-24T07:55:05.373+00:00
Fay Wang - MSFT 5,196 Reputation points