How can i open a image file in WPF by the user using openFileDialog ?
I have created an Image tag in the XAML file. when i selected an image using an openFileDialog . I cannot be able to Bind the data in openFileDialog FileName to Image.Source.
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
WPF Binding in custom control with nested dependency properties.
Hi, I have created a custom control that should work similar to a data grid (with columns containing certain properties). The main class that contains the columns collection object is of type UserControl. The columns collection object contains a…
MVVM with richtextbox
Hello I am implementing a richtextbox on my WPF, using MVVM, but I found that is very problematic, could somebody help me with MVVMFY, I also find out that WPF is very troublesome to work with, especially when you make dependency properties and user…
Button displaying weirdly on runtime
So essentialy the buttons i place just are in a different position at runtime How its supposed to look like: How it looks like:
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
WPF, suspicious window size: 400 = 100 + 300 + 22 ??? really
Hi, I am using MS VS 2019 v16.9.5, C#/WPF and I can not understand to window size. See the picture below. Height of whole window is 400pixels - the label 400 is on the right side of the window. Inside the client area of my window is a grid with 2…
ScrollViewer is not visible...
Hi, I am trying ScrolViewer in WPF and .. it does not work. I see the ScrolViewer in design mode but it disappears when my app is running. Can someone help me why ? Design Mode: Running time: Here is XAML code: <Window…
WPF: An oblong 100x300 in a Grid cell (400x300) is too large. Why ?
Hi, I tried to create a Grid with two columns and two rows. A left bottom Cell (0,1) has size 400x300px - see the image below. I tried to insert an oblong of size 100x300 into the cell, but the oblong is too large. :) I do not understand why ? The…
WPF sizes of controls ..
Hi, can someone explain me the size definition of WPF controls ? I have a grid. Cell 0,1 has size 300x400. If I put a rectangle into the cell, the maximum height of the rectangle is 383 pixels only, but the width of grid cell is 400. Where is…
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…
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
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/> …
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
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…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
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. …
![](https://techprofile.blob.core.windows.net/images/S3e90GC0WUa71fRjTJ0jzQ.png?8D8061)
![](https://techprofile.blob.core.windows.net/images/S3e90GC0WUa71fRjTJ0jzQ.png?8D8061)
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…
![](https://techprofile.blob.core.windows.net/images/NhkrylFCqEiUzgd3au5ONw.png?8D7FAD)
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…
![](https://techprofile.blob.core.windows.net/images/LqLMcp2B8EC0H2_dyrH3hA.png?8D87D0)
![](https://techprofile.blob.core.windows.net/images/LqLMcp2B8EC0H2_dyrH3hA.png?8D87D0)