781 questions with XAML-related tags

Sort by: Updated
0 answers

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

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.
781 questions
asked 2021-01-27T03:53:35.343+00:00
枫林小镇 1 Reputation point
commented 2021-02-18T07:54:01.667+00:00
DaisyTian-1203 11,621 Reputation points
1 answer

I wonder why Xamarin.Froms does not support *.baml in terms of xaml loading like WPF.

Hello. As I know, Xamarin.Froms does not use a separated complied xaml file like *.baml. Instead, It just compile xaml to IL code and inject such IL codes into app's exe/dll. I wonder why Xamarin.Froms does not support such kinda of feature to load 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,705 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.
781 questions
asked 2021-02-16T23:36:43.817+00:00
남 진우 21 Reputation points
commented 2021-02-17T02:10:44.163+00:00
DaisyTian-1203 11,621 Reputation points
1 answer One of the answers was accepted by the question author.

what is exactly XAMLC ?

As far as I know, Xamarin.Froms support pre-compilation of xaml using xamlc. I've read xamc compile xaml to IL and merge it to App's DLL/EXE. In contrast, WPF, UWP support pre-compilation of xaml using BAML as a resource with App's DLL. Question…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,319 questions
Universal Windows Platform (UWP)
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.
781 questions
asked 2021-02-16T05:56:22.877+00:00
남 진우 21 Reputation points
accepted 2021-02-16T06:49:49.577+00:00
남 진우 21 Reputation points
0 answers

How to Migrate a WPF XAML Application to .NET 5.0

I would like some help converting a WPF XAML application (Microsoft's sample app: ExpenseItIntro) to .NET 5.0. I have already run the Portability Analyzer, which says it is 100% compatible. I have already been able to convert Console and Windows Forms…

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.
781 questions
asked 2021-02-07T19:34:34.137+00:00
Nicholas Piazza 536 Reputation points
commented 2021-02-08T20:05:42.273+00:00
Nicholas Piazza 536 Reputation points
2 answers

How to Scale WPF application according to screen resolution?

I make a WPF application in .Net Framework 4.7. I developed this application on my Laptop which has full HD resolution (1920*1080). My problem is when I run my application on a low resolution monitor (1366*768), my application don't scale up according 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,705 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,561 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.
781 questions
asked 2021-01-31T03:54:25.177+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2021-02-05T16:54:21.793+00:00
MERUN KUMAR MAITY 531 Reputation points
5 answers One of the answers was accepted by the question author.

c# WPF Listbox databinding and getting the row's data item from a click event.

I have a WPF Listbox where the ItemTemplate is made up of a TextBlock and 2 custom hyperlink controls. When a user clicks on one of the hyperlink controls they fire a click event. In this even I need to get data item bound to that listbox row, but I…

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,705 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,561 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.
781 questions
asked 2021-01-28T05:48:18.41+00:00
moondaddy 911 Reputation points
commented 2021-02-04T21:20:56.153+00:00
moondaddy 911 Reputation points
3 answers One of the answers was accepted by the question author.

Why is my DataGridComboBoxColumn not populated

Given the XAML block below, the ComboBox named "Populated" shows the items define in the ItemSource when expanded, whereas whilst the DataGridComboBoxColum named "NotPopulated" uses the same ItemSource shows nothing when expanded.…

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,705 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.
781 questions
asked 2021-02-02T11:06:42.833+00:00
David McCallum 51 Reputation points
answered 2021-02-04T16:20:23.567+00:00
David McCallum 51 Reputation points
1 answer

How can i change this code for WPF Datagrid

Hi guys I made this code for win forms datatgridview. I want to use it in WPF Datagrid but in WPF Datagrid i can't use datagridview.Rows.Add. Can someone help please Private Sub fill_plan() EmployeeGridView.Rows.Clear() Try Dim i As…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,642 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.
781 questions
asked 2021-02-04T11:52:40.627+00:00
John Bairlis 21 Reputation points
commented 2021-02-04T16:01:30.707+00:00
John Bairlis 21 Reputation points
1 answer One of the answers was accepted by the question author.

When i change GroupBox style , GroupBox header property becomes hidden?

Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to change GroupBox style but when i do this i can't show GroupBox header and Groupbox header becomes hidden. I want a GroupBox…

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.
781 questions
asked 2021-01-29T20:56:30.533+00:00
رضا جافری 1,291 Reputation points
accepted 2021-01-31T22:45:45.25+00:00
رضا جافری 1,291 Reputation points
1 answer

More time delay occurs when getting attached properties using MarkupWriter

I have trying to get the attached properties of a custom class which contain 1000 plus properties using MarkUpWriter. But when using MarkUpWriter for retrieving attached properties it causes more time delay. Please find the sample and screenshot…

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,705 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.
781 questions
asked 2021-01-27T13:04:08.3+00:00
Magesh Sankar 36 Reputation points
commented 2021-01-29T05:48:27.787+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

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

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,705 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,561 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.
781 questions
asked 2021-01-24T08:30:23.647+00:00
Hrishi Kuttathi 1 Reputation point
commented 2021-01-25T08:02:27.067+00:00
DaisyTian-1203 11,621 Reputation points
1 answer

Can XAML “deduce” inheritance from C#?

I wonder if XAML is somehow able to "deduce" the C# inheritance. Let me explain: I have these two C# classes: public class AStyleSelector: StyleSelector { public Style aStyle { get; set; } public override Style SelectStyle(object item,…

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,705 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,561 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.
781 questions
asked 2021-01-15T20:57:59.483+00:00
answered 2021-01-18T06:58:37.927+00:00
DaisyTian-1203 11,621 Reputation points
1 answer

C# + AddDirectorySecurity(pathofprog, addeduser, FileSystemRights.FullControl, AccessControlType.Deny) - Still able to execute exe's within

Hi I have managed to get the code running and it is working fine, I see that the user is added into the acl and the permission is set to deny, however, I noticed that at times, for certain programs, I am still able to execute the exe's within 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,705 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,561 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.
781 questions
asked 2021-01-17T01:10:04.713+00:00
Kalpana 286 Reputation points
answered 2021-01-17T12:22:59.84+00:00
RLWA32 42,366 Reputation points
3 answers One of the answers was accepted by the question author.

WPF C #, How to emit sounds when passing the mouse over a button and also when clicking on the button.

Hello and happy new year. I am a newbie to C # WPF programming. How can I make a button emit a sound when passing the mouse over the button and also when clicking on the button emit another sound. I will be very grateful for your help and I thank you in…

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,705 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,561 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.
781 questions
asked 2021-01-15T15:39:02.407+00:00
jack pelon 96 Reputation points
accepted 2021-01-16T19:40:11.547+00:00
jack pelon 96 Reputation points
0 answers

Invoking values from MFC dialog based application into WPF app.

Hi All, I am newbie in wpf, need to fetch values from MFC Dialog based application as abc.dll, and populate in Datagrid of WPF application(Myapp.exe), but I could not render the values through C++/CLI layer, could you let me know references/examples…

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,705 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 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.
781 questions
asked 2021-01-13T14:28:46.767+00:00
VishalK_87 1 Reputation point
commented 2021-01-15T00:57:56.637+00:00
VishalK_87 1 Reputation point
2 answers One of the answers was accepted by the question author.

How to use Dispatcher for thread with WPF Window and a BlockingCollection<GraphicalData>(ConcurrentQueue<GraphicalData>)

Hi. Techs used are: C#, .Net Core 3.1, WPF, BlockingCollection<> and ConcurrentQueue<> I am trying to understand how to use the Dispatcher with a WPF Window. The Window will be updated with a ConcurrentQueue<GraphicalData>…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 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.
781 questions
asked 2021-01-09T16:46:45.027+00:00
Magnus Vinterhav 61 Reputation points
accepted 2021-01-14T09:10:04.963+00:00
Magnus Vinterhav 61 Reputation points
1 answer One of the answers was accepted by the question author.

Adding image from source property of image control(WPF) at Access Database

Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). This is tested solution

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.
781 questions
asked 2021-01-13T13:57:23.793+00:00
رضا جافری 1,291 Reputation points
accepted 2021-01-13T13:58:37.843+00:00
رضا جافری 1,291 Reputation points
1 answer One of the answers was accepted by the question author.

Why is there a performance difference when my application becomes activated?

I am working on a WPF application that displays a grid of many images with scrolling/expanding animations that display a video when the user hovers the image. When this application is run on an Intel CPU + NVidia GPU machine, the animations and video…

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,705 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.
781 questions
asked 2021-01-05T21:32:21.48+00:00
cobbsjobs 96 Reputation points
accepted 2021-01-13T03:30:54.25+00:00
cobbsjobs 96 Reputation points
2 answers One of the answers was accepted by the question author.

WPF - Change cell colour when operation is successfull

Hello! I have this datagrid: The last column has buttons ("+") that when pressed open the following window: In this window when the "Registar" button is pressed the app executes an operationa and returns to 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,705 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.
781 questions
asked 2021-01-12T11:02:45.52+00:00
Tiago Silva 21 Reputation points
accepted 2021-01-12T16:46:03.767+00:00
Tiago Silva 21 Reputation points
2 answers

How to start WPF in separate thread and still updating it continuously

Hi. C#, .Net 3.1, WPF I want to have a WPF window that takes data from a BlockingCollection<ColorAddress>(ConcurrentQueue<ColorAddress>) continuously. I have managed to start the window in it's own thread, but while doing this with 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,705 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 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.
781 questions
asked 2021-01-08T02:28:34.823+00:00
Magnus Vinterhav 61 Reputation points
answered 2021-01-11T11:24:23.8+00:00
Peter Fleischer (former MVP) 19,306 Reputation points