24,752 questions with .NET-related tags

Sort by: Updated
0 answers

Directory.CreateDirectory() not working.

I have created one wpf core windows app. I have to create folder for save database file. But Directory.CreateDirectory() method is not working after publishing the app on local machine. No exception log in log file. Code is also working on visual sutdio.…

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-26T04:56:47.567+00:00
SatnamSingh 1 Reputation point
commented 2020-05-27T05:13:54.797+00:00
Alex Li-MSFT 1,096 Reputation points
2 answers One of the answers was accepted by the question author.

Visual Studio 2010 - How to fix C# WPF Tab Hover Color to NOT change color when Tab is set to background custom color?

In my Visual Studio 2010 C# WPF Application, I have 7 tabs with alternating colors which is what my client needs. They do not like the Hovering over the tab with a mouse and having the background color of the tab change even though the tab is not getting…

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-22T22:08:12.05+00:00
BillNew 36 Reputation points
answered 2020-05-26T15:43:14.86+00:00
BillNew 36 Reputation points
1 answer

How to Create Setup/Installer exe file from Visual Studio C# (WPF) project

I have one WPF (C#) solution, which contain 4 projects (Please check the picture), and some icons. I want to create setup/installer exe file. How can I do that? I have tried Installshield and Advance Installer Project but its not even debugging. …

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-22T15:11:47.43+00:00
Crown Trading International 1 Reputation point
commented 2020-05-25T01:51:39.58+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
0 answers

WPF in AppDomain and System.Runtime.Remoting.RemotingException

I created AppDomain where is created WPF application. Everything working untile some time pass, then I got this exception: System.Runtime.Remoting.RemotingException: Object *.rem has been disconnected Even when I have opened window with WPF GUI, 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-03-21T21:47:19.797+00:00
Code Wanderer 396 Reputation points
commented 2020-05-25T01:41:15.287+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
1 answer

How to reduce the size of a MSIX .Net Core 3.1 installation?

I have a WPF/.Net Core 3.1 app that I'm packaging as an MSIX for submission to the Store. If I publish the app as a sideloading .msixbundle then install it, the resulting directory is WindowsApps is huge. I assume that's all of .Net Core. But most of the…

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,705 questions
asked 2020-04-20T22:02:07.5+00:00
Chuck Bohling 346 Reputation points
answered 2020-05-25T01:23:50.087+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
0 answers

Why did they move WPF forum?

I am curious as to why the WPF forum from MSDN was moved to this docs? It was working, more focused and solving issues. This seems like a lost cause? Sorry for asking this, but I really like WPF and this seems a like a step in the wrong direction…

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-18T02:39:01.727+00:00
Vijay Kamat 1 Reputation point
commented 2020-05-25T01:20:38.303+00:00
Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
0 answers

How to aquire access between two pages in wpf

Hai I have two pages in my main window side by side. Page1, Page2 is loaded in two frames in main Window frame1 and frame2. Page1 has a datagridview with observation collection of product name. Page2 has a datagridview with observation collection…

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-23T08:59:31.313+00:00
Babu R 81 Reputation points
commented 2020-05-23T09:40:27.433+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
2 answers

Selecting, deselecting ListView items by code...and manually

Hi, Working with a list of about 50,000 items, I must be able to select/deselect items code behind. I first tried to achieve this through UI. For instance, to deselect a selection: foreach (ListViewItem item in ListView_DB_Edit.Items) …

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-27T09:01:55.06+00:00
JM Deb 1 Reputation point
commented 2020-05-22T17:45:12.933+00:00
JM Deb 1 Reputation point
2 answers One of the answers was accepted by the question author.

WPF DataGrid.ItemsSource in DataGrid inside another DataGrid's RowDetails XAML causing Visual Studio 2019 to crash and exit

That might sound a bit complicated, but I have a datagrid inside the rowdetails of another datagrid in a WPF window. I recently installed version 16.5.3 of VS2019. The WPF window builds and executes successfully, but if I try to edit the .xaml file,…

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-10T09:14:52.137+00:00
Mike Whalley 71 Reputation points
commented 2020-05-18T10:54:31.767+00:00
Mike Whalley 71 Reputation points
5 answers

Setup WPF Data Template With Class in Another Mudule

Trying to bind a TreeView to a class that's in a module. I was fortunate to get this fabulous example from Peter Fleischer. In it he uses: xmlns:local="clr-namespace:WpfApp1" Then later: <HierarchicalDataTemplate DataType="{x: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-05-12T03:32:47.923+00:00
Ken Krugh 116 Reputation points
answered 2020-05-18T03:33:27.24+00:00
Ken Krugh 116 Reputation points
1 answer

Need to move tab focus to the popup element

I have custom control, in which i need to provide keyboard navigation support for all elemenst used in it, but I have failed to move tab focus to popup element on button click. Please find the code for reproducing.I have used move focus method to…

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-15T04:13:34.353+00:00
Magesh Sankar 36 Reputation points
answered 2020-05-18T02:27:09.077+00:00
Alex Li-MSFT 1,096 Reputation points
1 answer One of the answers was accepted by the question author.

VB2015 Programming Question Accessing Object Properties

I want to access an objects properties using a string and not the specific object name. Example: Radio Button name is rdb11. Set a string variable strObject = "rdb11" then attempt to change the objects properties using the 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,705 questions
asked 2020-05-15T15:50:18.68+00:00
Glenn Currie 21 Reputation points
commented 2020-05-15T16:41:58.31+00:00
Glenn Currie 21 Reputation points
3 answers One of the answers was accepted by the question author.

How to do arithmetic with textboxes

I have two textboxes on a wpf window that contain numeric values; call them txt1 and txt2. I want a third textbox (txt3) to show the difference between those two values. I created a Property in code-behind called Diff defined as: Diff =…

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-30T20:24:22.7+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2020-05-14T04:48:17.447+00:00
RogerSchlueter-7899 1,236 Reputation points
1 answer

WPF - Is there a way to get Windows to ignore the manual WindowStartupLocation I'm using for a particular window?

I'm using WindowStartupLocation.Manual to open a window on my app and I wonder if there is a way to tell Windows to ignore that location and do not open the next window after this one (where it is not mentioned a specific location for it) following 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-05-12T08:53:20.903+00:00
Karmel Cohen 1 Reputation point
answered 2020-05-14T00:18:40.347+00:00
gekka 7,911 Reputation points MVP
1 answer One of the answers was accepted by the question author.

adding stacked pages in xaml at runtime

hi what is the appropriate way to show pages vertically (something like MS word...) and adding pages at run time? 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-02T01:59:06.237+00:00
essamce 621 Reputation points
accepted 2020-05-13T10:57:02.907+00:00
essamce 621 Reputation points
1 answer

copging UIElement

hi, i'm trying to copy UIElement, and it always gives me the same error. here method i'm trying: public static UIElement cloneElement(UIElement orig) { if (orig == null) { return…

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-11T08:50:19.76+00:00
essamce 621 Reputation points
commented 2020-05-13T09:00:36.21+00:00
Alex Li-MSFT 1,096 Reputation points
0 answers

How do I bring my UserControl (or whatever control is suitable) out of the Main Window and drag it around?

Hi, I am working on a project where I need to have a panel which can be dragged around and should not be restricted by the Window bounds. User should be able to drag it right out of the main window and onto a second monitor if he chooses it. When…

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-06T13:27:29.22+00:00
Vijay Kamat 1 Reputation point
commented 2020-05-13T03:11:40.84+00:00
Vijay Kamat 1 Reputation point
1 answer One of the answers was accepted by the question author.

Using UWP's FileOpenPicker in a WPF app fails.

I'm trying to use UWP's FileOpenPicker with a WPF app but it's not working. It sounds like it should. At first, when I called FileOpenPicker.PickMultipleFilesAsync, it failed with an "invalid window handle". I found some code online that fixes…

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,705 questions
asked 2020-05-11T18:35:56.8+00:00
Chuck Bohling 346 Reputation points
accepted 2020-05-13T01:21:45.723+00:00
Chuck Bohling 346 Reputation points
1 answer One of the answers was accepted by the question author.

ToolBar as usercontrol

hi i'm building kinda large scale wpf (with mvvm) project and i want to define some ToolBars for some different/logically separated views, then collected them in the application mainwindow(main view), here is one of them: <UserControl …

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-09T01:02:00.97+00:00
essamce 621 Reputation points
accepted 2020-05-12T09:36:23.037+00:00
essamce 621 Reputation points
1 answer One of the answers was accepted by the question author.

Popup sporadically flickers when setting margin (after animation)

I'm creating a drop-down button which consists of a ToggleButton and a ContextMenu. The menu opens when the button is clicked and is aligned with the button using a CustomPopupPlacementCallback. I apply a customized animation to the menu when 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,705 questions
asked 2020-05-06T16:21:18.013+00:00
mister.nobody 101 Reputation points
accepted 2020-05-11T17:03:18.217+00:00
mister.nobody 101 Reputation points