626 questions

A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.

Browse all XAML tags Sign in to follow

TileSource Unable to load openstreetmap <map:Map x:Name="map" ZoomLevel="5" Center="39.9132801985722,116.392009995601,0"> <map:Map.Mode> <map:MercatorMode/> [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" 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…

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?

WPF rendering issue on any machine

Please follow this steps to catch problem on your machine. Please, help me resolve it. Create empty WPF project. Use property CacheMode="BitmapCache" in MainWindow's Grid; Show MainWindow on start application, then hide it. Show new any…

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…

How to use a trigger to set the width of user control according to the numer of items in ItemsControl?

I have a user control that I create to show months of a calendar. I would like to set the size of the user control of the month according to the number of items that I have, the number if items it is the numbers of calenders to show. This is the xaml if…

Exception threw during launch of Apllication : "An exception was thrown during the initialization of'System.Windows.Data.ObjectDataProvider'."

Hi all, I am getting an exception when launch application as below mentioned. Exception: "An exception was thrown during the initialization of'System.Windows.Data.ObjectDataProvider'." I have use the ObjectDataProvider at XAML side inside the…

Question Regarding WPF and BAML

As I know, WPF use BAML(Binary Application Markup Language) as a precompiled XAML. My question is.. BAML resource is finally injected to Application's dll/exe file? it cannot be separated from each other?

WPF MediaElement throw System.Runtime.InteropServices.COMException (0xC00D1197): Exception from HRESULT: 0xC00D1197

When the test server went from rest to wake up, an error occurred when the client played the video file on the test server. the following exception: Cannot find the media file. ---> System.Runtime.InteropServices.COMException (0xC00D1197):…

Web Cam Light is not closing

In my WPF c# application,there is a form using web camera for taking picture( forge.video).After closing the form it will not close the light. Below mentioned code is for stopping the webcam.Please help public void Window_Closing(object sender,…