24,659 questions with .NET-related tags

Sort by: Updated
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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,701 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,306 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,701 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,201 Reputation points
0 answers

WPF : Cursor not visible in text box first position in RightToLeft flow direction

Hi, I have tried to remove all margin value in TextBox by accessing inner element and set Margin as 0. With this value cursor not visible in RightToLeft direction first place. But working fine in LeftToRight direction. LeftToRight: RightToLeft:  You…

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,701 questions
asked 2020-04-21T04:16:07.127+00:00
Muneesh Kumar 1 Reputation point
commented 2020-04-24T01:58:27.463+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers

Issues using ResourceDictionary in a C# class library

I'm having trouble with reusing styles for WPF/XAML in my project. Just to give you some context. I am making a plugin for Revit, architectural/3D/CAD software used by many architects/contractors worldwide. To make a plugin for Revit, the Revit API…

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,701 questions
asked 2020-04-20T08:47:13.967+00:00
Martijn van gils 1 Reputation point
commented 2020-04-23T08:34:04.263+00:00
Martijn van gils 1 Reputation point
1 answer

ObjectAnimationUsingKeyFrames. Is it possible Canvases usage instead of Images?

Hello everyone, I'm currently using Storyboard type based on Image replacement. The code is below. It works fine, however there's a question arisen. Is there a way to replace images with canvases? Simple I failed to find such a variant in the Web. …

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,701 questions
asked 2020-04-19T18:07:45.94+00:00
cron kropjc 41 Reputation points
commented 2020-04-23T02:52:22.94+00:00
Alex Li-MSFT 1,096 Reputation points
0 answers

Is there any UWP API/way available to detect/prevent hooking?

There are many tools available to do hooking eg: frida 29.html. But i didn't find any API or way to detect hooking . Is there any API or way to detect hooking in Universal Windows Platform(UWP)? If yes, can it detect all kinds of…

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,701 questions
asked 2020-04-20T10:47:26.973+00:00
Rahul K 51 Reputation points
commented 2020-04-23T01:14:44.55+00:00
Richard Zhang-MSFT 6,936 Reputation points
3 answers One of the answers was accepted by the question author.

[C#7.0 - WPF] - RichTextBox in a DataGridTemplateColumn with binding

Hi, I'm getting crazy about a RichTextBox to insert and bind to a DataGridTemplateColumn. I have As you can see, in a cell of the DataGridTemplateColumn I have four lines and what I would like is to have these lines colored in different…

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,701 questions
asked 2020-04-21T17:10:59.81+00:00
BlackSun 21 Reputation points
commented 2020-04-22T12:13:22.29+00:00
BlackSun 21 Reputation points
1 answer

Flowdocument Table - custom border style

Is there any option to create a custom border style for Wpf Table (type of Content Element for FlowDocuments), like create a rounded corners? I'm thinking that It might be possible with drawing PathGeometry or using Adorner, but I don't know how to do…

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,701 questions
asked 2020-04-10T12:23:26.977+00:00
Luka Ciglar 21 Reputation points
commented 2020-04-20T18:10:08.267+00:00
Luka Ciglar 21 Reputation points
1 answer One of the answers was accepted by the question author.

Interaction DataTrigger doesn't work. Could anyone test this example. Perhaps I'm doing something wrong.

Hello everyone, here's a simplest code the purpose of which is animation launching from ViewModel. Some people claim that it is working code. There are not any mistakes. exceptions and it doesn't work. Could anyone test this example. perhaps I'm…

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,701 questions
asked 2020-04-17T11:18:04.82+00:00
cron kropjc 41 Reputation points
commented 2020-04-19T17:36:58.957+00:00
cron kropjc 41 Reputation points