how specify bitmapimage path in directory
Hi All. In my WPF VB project I have Resources folder where I'm keeping Dictionary.XAML file and some images. How to specify BitmapImage in the Dictionary file to have ability call it in some places in the project? I tried like this: <BitmapImage…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
Load only few items in ListView, but make all the items available to search in the CollectionView filter
I have a ListView that needs to display a ton of rows (think about 40,000+) and have a Filter implemented through a Textbox, where the user can search and find the item in the ListView. But I would like to display only a few rows (around 1000) in the…
[WPF] UI Virtualization
I decided to use UI virtualization, because there are a lot of items in the treeview. so I did like this, <TreeView x:Name="mainTree" VirtualizingStackPanel.IsVirtualizing="True" …
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
с# wpf calculator button C
Hey, I have been doing a calculator. Everything is operated. When I push buttons on the keyboard - it is working. But for button C which clear all I do not have a button from the keyboard. So when I want to clear all, I click on the screen this button C.…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
WPF Browser application in .NET 5/6
Hi, We have a WPF Browser application(XBAP) created in .NET framework 4.x. We would like to migrate to .NET core/5/6. We would like to understand if Microsoft supports WPF Browser application in latest .NET core/5/6 versions. and also if not, what are…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
c# keyboard input (multiply and division) in WPF DataGrid
Hey, I am doing a simple calculator as an exercise and I am quite new in c#. How to input the multiply key and division but those which are not from NumPad? I consider this variant but I am bot sure how to use it properly: bool shift =…
How to combine three tables as a data source for Binding in a DataGrid?
I am creating an WPF app with MVVM. I have three tables as sources of my data which I need to display in the DataGrid through the ItemsSource="{Binding}". How and where do I combine this three tables so I could use the combined data set for my…
How to plot a line graph in WPF MVVM atrchitecture
Hi , I wanted to plot one 2D graph,X axis time,Y axis some number. I tried using Polyline.But in mvvm architecture i am not able to bind the data.Can anyone help/suggest me a way to fix the problem.
Replace dot with comma while input in WPF DataGrid
I am doing a calculator. How to do a comma here? My CultureInfo is se-SE XAML: <Window x:Class="Calculator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …
XAML Design View Unhandled Exception
I came back to a project over the weekend that uses this open source library: https://github.com/judero01col/GMap.NET/ For some reason the GMapControl now causes the designviewer to crash with an unhandled exception: The .NET Core 3.0 runtime for…
WPF - All UI's Disappear from stack when you RDP
If you have a WPF app, that has ShowInTaskbar set to false and you execute on RDP, when you X out of your RDP session and remote back in and try and activate the app to view the UI, all of the UI elements are gone from the UI stack. I have seen mention…
invoke all viewmodel propertychanged in MVVM
Hi I have Wpf App implemented MVVM, and all viewmodels exists in One viewmodel called MainViewModel, so how to invoke PropertyChanged for all Properties in ALL viewmodels in the MainViewModel? I know OnPropertyChanged(""); invokes all…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
generic type in xaml
Hi <DataTemplate DataType="{x:Type vm:MyViewModel1}"> <StackPanel DataContext="{Binding}"> <!--template--> </StackPanel> …
enum in xaml in MVVVM
hi <MenuItem Header="StepOne" Command="{Binding CurrentStepCmd}" CommandParameter="{x:Static data:Steps.StepOne}"/> <MenuItem Header="StepTwo" Command="{Binding CurrentStepCmd}" …
WPF behavior when Windows OS is locked
What happens to WPF window when Windows OS is locked? How WPF behaves? What happens to rendering is it suspended or something else? How does the OS understand what needs to be resumed when we unlock windows user session?
In WPF which is better MVVM way of loading an userControl/customcontrol from a different library project into mainWindow XAML
there is seperate library for usercontrol which has to be loaded in another exe console project which is better approach for the same 1. using contentcontrol and set the content to the user control 2. refer the library in the mainwindow.xaxml and add the…
change ContentControl Content based on datacaontext
hi i'm trying to change ContentControl.Content at run time based on ContentControl.DataContext, so at run time i change ContentControl.DataContext Source property and i want the ContentControl.Content to be changed based on the…
Binding Failures in WPF
I get endless binding failures: (: 'System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.ItemsControl', AncestorLevel='1''.…
Data insertions without my request EF6
My project was created on VS17, it is on the 4.6.1 framework. I use Entity Framework 6 in database first. We switched to VS19 and this is the first time I debugged the project on it. My pc crashed and showed me a blue screen while I was debugging. …
ClickOnce publish .net5 with .netstandard library fails
I have a WPF .net5 application which has 2 reference class library projects which are .netstandard and .netcore3.1. The application compiles and runs; however, Clickonce fails to publish it with the following unhelpful info: Publish has encountered an…