778 questions with XAML-related tags

Sort by: Updated
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,475 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.
778 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,286 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,694 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.
778 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.
778 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,616 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.
778 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.
778 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,694 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.
778 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,694 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.
778 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,616 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.
778 questions
asked 2021-05-08T13:00:04.743+00:00
JerryM 1,116 Reputation points
commented 2021-05-11T04:34:16.457+00:00
JerryM 1,116 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.
778 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,694 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,475 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.
778 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,616 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.
778 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.
778 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
1 answer One of the answers was accepted by the question author.

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

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,694 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,475 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.
778 questions
asked 2021-04-30T14:39:37.717+00:00
mrw 201 Reputation points
accepted 2021-05-04T13:34:56.55+00:00
mrw 201 Reputation points
2 answers One of the answers was accepted by the question author.

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?

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,694 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.
778 questions
asked 2021-04-30T01:08:47.473+00:00
Amit Patel 126 Reputation points
answered 2021-04-30T11:31:00.263+00:00
Amit Patel 126 Reputation points
1 answer

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…

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,475 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.
778 questions
asked 2021-04-29T20:45:32.367+00:00
Abhijith Harapanahalli 21 Reputation points
answered 2021-04-30T01:51:39.14+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

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#
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,475 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.
778 questions
asked 2021-04-23T00:48:39.933+00:00
رضا جافری 1,291 Reputation points
accepted 2021-04-30T00:53:32.447+00:00
رضا جافری 1,291 Reputation points
1 answer

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(); …

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,694 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,475 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.
778 questions
asked 2021-04-28T11:20:57.077+00:00
ramya s 1 Reputation point
answered 2021-04-29T03:07:07.123+00:00
DaisyTian-1203 11,616 Reputation points
2 answers

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…

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.
778 questions
asked 2021-04-03T20:08:44.397+00:00
zleug 61 Reputation points
commented 2021-04-27T03:49:46.523+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

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…

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,694 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.
778 questions
asked 2021-04-22T16:50:08.28+00:00
Abhijith Harapanahalli 21 Reputation points
accepted 2021-04-23T17:32:15.167+00:00
Abhijith Harapanahalli 21 Reputation points
0 answers

[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" …

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,694 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.
778 questions
asked 2021-04-21T04:57:30.78+00:00
나래 정 1 Reputation point
commented 2021-04-23T10:03:25.413+00:00
DaisyTian-1203 11,616 Reputation points