24,063 questions with .NET-related tags

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

Winform: How to copy treenode collection in clipboard with Tag property

Suppose i have a treeview and a particular node has few sub node and sub node has another nodes etc or particular node has no sub nodes. in my case i have assign a object to tag property of each node. Now i want when user select any node and click button…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-16T16:15:47.483+00:00
Sudip Bhatt 2,271 Reputation points
commented 2020-11-19T09:58:16.467+00:00
Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
0 answers

How to handle Transform Animation on listview (shopping basket sample)?

I have created a transform animation similar to below using xamarin.forms. I achieved that using a behavior on a view cell of the lisview. But what actually happen is, item of the view is literally moving to the basket using the code below and there…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2020-11-19T00:18:16.74+00:00
Emil Alipiev 271 Reputation points
commented 2020-11-19T09:30:28.027+00:00
Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
1 answer

array in dataGrid

Hi, I am writing a booking system. Following is my xaml. <DataGrid HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0" CanUserResizeColumns="False" …

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,681 questions
asked 2020-11-18T17:59:47.073+00:00
Vincent 1 Reputation point
commented 2020-11-19T06:28:00.77+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

old app version is started after file is replaced

We are developing a WinForms desktop application. In order to update our application, we replace the exe-file. At this point the application is running by several users. If a user restarts the application (on the same or another server in network),…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-10-14T09:41:50.503+00:00
teamtecture 1 Reputation point
commented 2020-11-19T05:17:31.237+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
1 answer

navigate from page to main window wpf

navigate from page to main window wpf

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,681 questions
asked 2020-11-18T19:59:27.47+00:00
Elluin white 1 Reputation point
answered 2020-11-19T03:09:43.73+00:00
DaisyTian-1203 11,616 Reputation points
3 answers One of the answers was accepted by the question author.

XAML Binding to the Title of a Window does not always work {Relative Source, AncestorType=Window}.

Hi. I need to databind two TextBlocks to the Window Title property. The first one works via "RelativeSource FindAncestor, AncestorType=Window}", but the second one does not (it's deeply nested within a button tooltip). How can I change 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,681 questions
asked 2020-11-18T04:10:42.657+00:00
Stout 286 Reputation points
accepted 2020-11-19T00:23:26.67+00:00
Stout 286 Reputation points
1 answer One of the answers was accepted by the question author.

IIS anonymous site prompting for credentials

Not sure what I have missed here but I have a simple site which uses anon authentication (all others are disabled). I have allowed directory browsing and have set NTFS to everyone, IUSR, users read/list contents but I still get prompted when trying to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,204 questions
asked 2020-11-18T21:58:53.71+00:00
Jay Paterson 96 Reputation points
accepted 2020-11-19T00:17:29.69+00:00
Jay Paterson 96 Reputation points
1 answer One of the answers was accepted by the question author.

Winform: Always getting NULL when retrieve data from clipboard

I have store the instance of my class in clipboard and when retrieve the same from clipboard then getting null always. i marked my class [Serializable] but still no luck. i am not being able to find out where i made the mistake. Here is my code. please…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-17T08:25:37.847+00:00
Sudip Bhatt 2,271 Reputation points
accepted 2020-11-18T19:13:22.517+00:00
Sudip Bhatt 2,271 Reputation points
3 answers One of the answers was accepted by the question author.

How to set cookies to WebView2 control in c#?

How to set the cookies in Webview2 control in c#? Here is how i am navigating the url into WebView2 control. WebView.CoreWebView2.Navigate("URL Name"); I tried using the 'WebResourceRequested' event but there is no way to add headers into the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
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,681 questions
asked 2020-10-29T10:41:51.553+00:00
remya Paul 96 Reputation points
accepted 2020-11-18T07:24:29.427+00:00
remya Paul 96 Reputation points
3 answers

Windows Store app cannot install Windows service ?

Hi, I'd like to publish my application (.NetFramework/WPF) on Windows Store. I could build an appinstaller package that installs perfectly. At first startup my application installs a Windows service which seems to fail. Is there some limitation…

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,681 questions
asked 2020-11-13T22:36:53.543+00:00
Julien Amsellem 1 Reputation point
answered 2020-11-17T08:05:00.263+00:00
Julien Amsellem 1 Reputation point
2 answers

Binding a Trigger to a custom property in a UserControl

I have a StackPanel with a handful of custom UserControls (MyUserControl). I'm trying to write a style trigger that will hide MyUserControls if their CustomObject dependency property has IsEnabled set to False. For example, with no style... …

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,681 questions
asked 2020-11-16T20:55:08.787+00:00
Knox 26 Reputation points
answered 2020-11-17T05:34:38.083+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers

Need Help with Resize Event

I am struggling with the Resize event. I have a 3 tabpage form with 300+ plus controls. I am not using anchors or TableLayoutPanel, but am calculating the new size and placement manually for each control in the Resize event. I allow the user to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,638 questions
asked 2020-11-15T16:45:05.203+00:00
Jean Vallee 21 Reputation points
answered 2020-11-17T02:23:50.85+00:00
Daniel Zhang-MSFT 9,616 Reputation points
1 answer

CollectionView / Grouping destroys selection

I have a ListBox which worked great. I put in code to prevent a selection from occurring during the load on the items into the ItemsSource (Binding). I then wanted to group the items. All of a sudden the code that I had no longer worked. Spying with…

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,681 questions
asked 2020-11-09T16:11:56.39+00:00
Lloyd Sheen 1,386 Reputation points
commented 2020-11-17T01:52:31.363+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

Why TextTrimming="CharacterEllipsis" doesn't work?

<StackPanel > <TextBlock TextTrimming="CharacterEllipsis" Text="{Binding RevitView}" ></TextBlock> <Button MinWidth="30" HorizontalAlignment="Right" >...</Button> …

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,681 questions
asked 2020-11-13T06:44:39.833+00:00
aa aa 21 Reputation points
accepted 2020-11-17T01:09:52.713+00:00
aa aa 21 Reputation points
1 answer

how to respond to List.Clear()

hi, we trying to define canvas with itemssource , but the only problem it doesn't respond to list.clear(), public IList<object> ItemsSource { get { return (IList<object>)GetValue(ItemsSourceProperty); } …

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,681 questions
asked 2020-11-15T14:42:00.013+00:00
essamce 621 Reputation points
commented 2020-11-16T16:15:27.05+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

Through the "System.Speech.DLL" Get voice pack problem.

Hello, everyone. I'm using the WPF programming tool on Win10, my job needs to install the multi-language voice packs for testing the Text-To-Speech on my current OS. So far, I have installed Japanese, Korean, French, German, Italian, and Portugal 6…

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,681 questions
asked 2020-11-12T01:06:49.447+00:00
驰 陈 21 Reputation points
accepted 2020-11-16T07:07:02.683+00:00
驰 陈 21 Reputation points
1 answer

How to use multiple dictionaries in WPF for controls independently

Hi All. I use several dictionaries in my project. One dictionary is MaterialDesignInXAML. When I added this library to my project, it styled all the controls. I would like to use this library for RadioButton and TextBox only, but it did not affect…

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,681 questions
asked 2020-11-15T00:48:51.05+00:00
zleug 61 Reputation points
answered 2020-11-16T02:17:32.46+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

minimize(automate) this binding boilerplate:

hi, is there a way to minimize(automate) this binding boilerplate: private static TextBlock NewTextBlock(TextBlockViewModel textBlockVM) { var textBlock = new TextBlock(); Binding dc = new Binding() { Source =…

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,681 questions
asked 2020-11-13T11:58:18.147+00:00
essamce 621 Reputation points
accepted 2020-11-14T18:14:47.79+00:00
essamce 621 Reputation points
2 answers One of the answers was accepted by the question author.

Is UDP viable for trading Server and Clients?

I've experimented once on UDP (Unicast, Multicast and Broadcast) and undermined it always as I read a lot about its unreliability in data transmission. Today, I've read an article, UDP Delivers BUT I'm not sure whether it's suitable for this, my first…

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,681 questions
asked 2020-11-12T10:59:49.017+00:00
Emon Haque 3,176 Reputation points
accepted 2020-11-14T12:43:10.88+00:00
Emon Haque 3,176 Reputation points
1 answer

Smooth Bezier Segment for UWP

If we look WPF implementation of Bezier cure you will find 3 functions (WPF mini-language) C for cubic Bezier (3 arguments) Q for QuadraticBezierSegment (2 arguments) and S for Smooth Bezier Segment (2 arguments). So, this path works fine which contains…

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,681 questions
asked 2020-11-12T20:00:55.097+00:00
Agha Khan 161 Reputation points
commented 2020-11-13T19:30:34.097+00:00
Agha Khan 161 Reputation points