Adding items to ListBox cause No Rsponse issue.
Hi, I have WPF application to Display the files/folders of folder. Here we use ListBox to display the file/folder. But when adding files more than 1000 to the ListBox cause No Response issue for 15secs. Here below logs creating for issue…
Rename te each note book separately
Hello I have a list of notebooks and notes. I also have a textbox to rename them, the problem that I have is that when I click rename, the textbox appears on all of them Ideally what I want is to have a rename button a rename all button. The…
MapControl.WPF Unable to load openstreetmap
TileSource Unable to load openstreetmap XAML <map:Map x:Name="map" ZoomLevel="5" Center="39.9132801985722,116.392009995601,0"> <map:Map.Mode> <map:MercatorMode/> …
How do I set the record resoultion in MediaCapture?
C# WPF .net5 windows 19041 MediaCapture Previewing Cameras on a XAML Image element. Using MediaFrameReader I attempt to set await TheCaptureMgr.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.VideoRecord,…
.net5 C# MediaCapture Problems
I've been trying to get a MediaCapture class to work for previewing and grabbing frames from a camera. I have 2 problems. If I set MemoryPreference = MediaCaptureMemoryPreference.Cpu, I can see frames but it stops after 19 frames, with no errors.…
WPF Event Handler is Null
Framework 4.7.2 Original Code: Code Project – (VB) Quick and Simple WPF Month – View Calendar by Kirk Aiya URL:[Quick-and-Simple-WPF-Month-view-Calendar-Updated][1] I’m relatively new to C# & WPF, and in order to learn WPF / C#, I’m attempting to…
help in making a button enabled unig mvvm
Hello I am practicing MVVM, and I can get my button to activate when all my fields are filled After all-day researching, I kind of make it work, but there are two problems 1) I can get the Button to validate my two textbox 2) I need to move the logic, to…
MVVM pattern in MS VS 2019 WPF C# ... please be very gently :)
Hello, I need several explanations please. :) I have a simple example code in MS VS 2019 C# with WPF - pattern MVVM: There is the source code: https://drive.google.com/file/d/1ea-K_BJYvED8S-87YxQZR4aiK0AJw2zP/view?usp=sharing 1/ The code had…
How to Reference objects from another XAML file to objects in other resource dictionaries?
Hi all, I would like to structure my XAML code into different files related to different Views. So I coded the following: <Window.Resources> <ResourceDictionary> <!-- Create instance(s) of the ViewModel(s) and related objects. …
Messagebox input text - name of players wpf c#
Hey, I have a task to do a game tictactoe. I found code and possible ways to create it. So it is working. Se code below. Next what I should do - to get MessageBox at the beginning of the game and ask two players to type their name. Then two persons…
How to execute color animation which is inside the template style like a storyboard?
First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I have a button that I changed its appearance and I wanting to change color of lines that is inside it with Color Animation.but this error was displaying:…
MarkupExtension in System.Windows.Markup
I was using this abstract class in .Net Framework 4.8 then I decided to join the crowd and migrated the library to .NET 5 which does not have a clue as to what System.Windows.Markup is. I would like to know where that .dll can be reached now. I also…
Enter TextBox edit mode (ReadOnly = false) on ContextMenu Edit clicked
I have a TreeView with ContextMenu that is used for Adding, Editing and Removing TreeItems. Currently there is a possibility to edit TreeView items by double clicking it's TextBox. I would like to be able to edit items by Right click -> (ContextMenu)…
Menu Bar in WPF
I want to create a Menu bar in WFP Form, so that I dont write the same code on every page, How can I do that?
WPF Textbox not getting updated from ViewModel after the first time
Hi, I have a textbox that is bound to a property in the ViewModel. When I run it for the first time and update the property, I see it updated in the UI. But after that, it doesn't get updated at all. I've seen similar posts and I'm doing all the things…
How do I compare List<string>’ items (content،name or etc), with selected items in ComboBox?
First of all I am sorry for my language grammar because my first language is Persian (Iran). I have a ComboBox which has CheckBox for multi selection and multi deletion then i tried to following codes but i did not reach a conclusion. <Style…
C# Why application memory size increases when load the 10MB size image and converted the BitmapImage to stream using the JpegBitmapEncoder in WPF
Can anyone tell me how to solve this problem? I have using the JpegBitmapEncoder to get the stream from the BitmapImage as like in the following code snippet. JpegBitmapEncoder encoder = new JpegBitmapEncoder(); …
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…
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" …