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.…
![](https://techprofile.blob.core.windows.net/images/QTzc_wAAAwAAAAAAAAAAAA.png?8D8026)
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
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…
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. …
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
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…
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
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…
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
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…
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)
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…
![](https://techprofile.blob.core.windows.net/images/319aafad7757470c87140361047582b7.png)
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) …
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,…
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…
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…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
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…
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 =…
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…
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.
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…
![](https://techprofile.blob.core.windows.net/images/e132fda0c00c4bb98c608a076c87a4cb.png)
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…
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…
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 …
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…