786 questions with XAML-related tags

Sort by: Updated
2 answers

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.

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-19T19:06:24.167+00:00
Vinit Joshi 1 Reputation point
answered 2021-05-20T02:16:20.007+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

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…

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-14T11:42:35.123+00:00
Dawid Cyron 1 Reputation point
commented 2021-05-19T07:22:07.443+00:00
Dawid Cyron 1 Reputation point
2 answers One of the answers was accepted by the question author.

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…

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-14T16:45:09.037+00:00
Eduardo Gomez 3,416 Reputation points
accepted 2021-05-19T07:08:30.947+00:00
Eduardo Gomez 3,416 Reputation points
1 answer

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:

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-18T15:50:46.747+00:00
Marcelsky 1 Reputation point
commented 2021-05-19T01:26:19.117+00:00
DaisyTian-1203 11,621 Reputation points
2 answers One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-17T14:24:50.64+00:00
JerryM 1,121 Reputation points
accepted 2021-05-18T07:03:07.79+00:00
JerryM 1,121 Reputation points
2 answers One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-16T12:14:23.867+00:00
JerryM 1,121 Reputation points
accepted 2021-05-18T06:58:01.747+00:00
JerryM 1,121 Reputation points
2 answers One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-17T05:18:33.85+00:00
JerryM 1,121 Reputation points
accepted 2021-05-18T06:57:20.07+00:00
JerryM 1,121 Reputation points
2 answers One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-16T17:20:07.97+00:00
JerryM 1,121 Reputation points
accepted 2021-05-18T06:54:50.103+00:00
JerryM 1,121 Reputation points
1 answer

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…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-17T06:01:56.637+00:00
Saddam Hussain Quraishi 1 Reputation point
answered 2021-05-17T22:01:23.96+00:00
Karen Payne MVP 35,291 Reputation points
0 answers

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…

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-16T22:03:08.82+00:00
Eduardo Gomez 3,416 Reputation points
commented 2021-05-17T08:08:51.677+00:00
Eduardo Gomez 3,416 Reputation points
0 answers

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/> …

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-15T10:44:47.387+00:00
驚鏵 1 Reputation point MVP
commented 2021-05-17T05:00:34.337+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

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,…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-15T01:05:54.467+00:00
jona varque 1 Reputation point
1 answer

.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.…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-13T18:37:13.717+00:00
jona varque 1 Reputation point
answered 2021-05-14T13:40:42.2+00:00
jona varque 1 Reputation point
1 answer One of the answers was accepted by the question author.

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…

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-13T16:00:46.983+00:00
David Marino 136 Reputation points
accepted 2021-05-13T19:32:56.07+00:00
David Marino 136 Reputation points
3 answers

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…

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,706 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-09T20:22:57.417+00:00
Eduardo Gomez 3,416 Reputation points
commented 2021-05-13T02:51:35.39+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-08T13:00:04.743+00:00
JerryM 1,121 Reputation points
commented 2021-05-11T04:34:16.457+00:00
JerryM 1,121 Reputation points
1 answer

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. …

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-04-21T16:47:19.603+00:00
Jörg Debus 66 Reputation points
commented 2021-05-06T16:13:05.537+00:00
Jörg Debus 66 Reputation points
1 answer

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…

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,706 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,573 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-04-27T16:08:07.363+00:00
A A 61 Reputation points
commented 2021-05-05T02:28:42.277+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

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:…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-04-30T15:15:54.86+00:00
رضا جافری 1,291 Reputation points
commented 2021-05-05T01:16:16.243+00:00
رضا جافری 1,291 Reputation points
1 answer One of the answers was accepted by the question author.

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…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
786 questions
asked 2021-05-04T01:33:27.013+00:00
Antonio Gomez 21 Reputation points
commented 2021-05-04T21:11:12.9+00:00
Antonio Gomez 21 Reputation points