24,752 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

RowValidationErrorTemplate as a static resources

hi ,i have: <DataGrid.RowValidationErrorTemplate> <ControlTemplate> <Grid Margin="0,-2,0,-2" ToolTip="{Binding RelativeSource={RelativeSource FindAncestor,…

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,705 questions
asked 2020-04-01T12:40:27.94+00:00
essamce 621 Reputation points
accepted 2020-05-11T08:42:16.683+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

C# .NET Core WPF Listbox items outside grid cell.

Hi, I want to have a listbox which contains two items a Checkbox and a WebBrowser control. I have the listbox appearing in the center cell on my WPF Window. However if there are more then one item then it exceeds the cell and drops to the cell…

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,705 questions
asked 2020-05-09T08:22:09.297+00:00
WardH 61 Reputation points
accepted 2020-05-11T07:11:27.533+00:00
WardH 61 Reputation points
1 answer

Custom control does not receives the tab focus

I have custom control, which is templated like below Blockquote <DockPanel> <local:CustomControl1> <ToggleButton></ToggleButton> </local:CustomControl1> </DockPanel Blockquote Problem: When i press tab key…

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,705 questions
asked 2020-05-11T03:32:38.52+00:00
Magesh Sankar 36 Reputation points
answered 2020-05-11T06:07:22.71+00:00
Alex Li-MSFT 1,096 Reputation points
0 answers

how to remve listview items gap

hi i'm trying to create report page (something like image2) and i'm trying to use ListView which allows me easily add/remove table rows and also allows to use table rows as custom control. the problem is listview items alway separated…

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,705 questions
asked 2020-05-09T15:45:00.967+00:00
essamce 621 Reputation points
commented 2020-05-11T03:30:25.977+00:00
essamce 621 Reputation points
3 answers One of the answers was accepted by the question author.

ItemControl background for child control

In my WPF application, I have added ItemControl and I set the background color in it. How do I set the parent background color only for child control without showing any background color in the parent? I have added a sample code and screen here. …

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,705 questions
asked 2020-05-10T09:20:44.797+00:00
Binoy Balakrishnan 21 Reputation points
answered 2020-05-10T20:11:58.977+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
3 answers One of the answers was accepted by the question author.

WPF UserControl and inheritance (how to?)

Hello I want create create my own class UserControl and add here all DependencyProperties (for separation and reuse) and then inherit this UserControl in U.C. with Xaml. for example: public class c_knob : UserControl // this control doesn't have xaml { …

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,705 questions
asked 2020-05-09T09:47:35.52+00:00
Wanderer 101 Reputation points
accepted 2020-05-10T11:20:40.24+00:00
Wanderer 101 Reputation points
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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,705 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,306 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,705 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,705 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