805 questions with XAML-related tags

Sort by: Updated
0 answers

Xaml Controls Gallery Project Fails

05 Mar 2022 Running VS 2022 Com Ed under Win 10 Trying to Build and Run the XAML Controls Gallery.sln I load the code, change nothing and Buld the app but I get an error: Certificate could not be opened: XamlControlsGallery_TemporaryKey.pfx.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.
805 questions
asked 2022-03-06T00:16:15.213+00:00
srfpala 111 Reputation points
commented 2022-03-07T05:37:54.247+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
0 answers

How to create sample of responsive Fonts between WinUI3 and WPF which meets WER spec

HI i want to create a responsive Fonts between WinUI3 and WPF which meets WER spec any reference for this?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 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.
805 questions
asked 2022-03-04T05:57:38.347+00:00
Sachi 221 Reputation points
1 answer

I get System.Windows.Style as text of the tooltip of the header in a datagrid

I want to define a style for the datagrid columns that get the text of the tooltip through an attached property. But I get the text System.Windows.Style instead of the text. The code is this. XML resource file that defines the style: <Style…

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,762 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.
805 questions
asked 2022-03-01T16:53:58.367+00:00
ComptonAlvaro 166 Reputation points
commented 2022-03-03T09:31:30.567+00:00
ComptonAlvaro 166 Reputation points
3 answers One of the answers was accepted by the question author.

Insert path in ResourceDictionary

Hi, How to insert this code in the ResourceDictionary : <Path Fill="Red" Stroke="Black" StrokeThickness="0.3" StrokeStartLineCap="Round" StrokeEndLineCap="Round" StrokeDashCap="Round"…

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.
805 questions
asked 2022-02-28T07:47:50.22+00:00
l.mnu 21 Reputation points
accepted 2022-03-01T14:50:42.893+00:00
l.mnu 21 Reputation points
0 answers

with .Net5+ we have a wpf Mediaelement to play, stop, etc. media files. But why where is MediaCapture to make videos from pc camera.

I use .net6 with wpf to capture videos from pc camera and play them upon user request

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,762 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.
805 questions
asked 2022-02-27T09:55:06.56+00:00
Moukonga 1 Reputation point
commented 2022-02-27T18:27:34.237+00:00
Castorix31 84,546 Reputation points
1 answer

WPF UserControl DependencyProperty do not have BindingExpression?

I found that some of the Dependency properties of my UserControl do not have BindingExpressions. I was confused all day. P.S: i use [PostSharp/AOP][1] to auto implement INotifyPropertyChanged and DepencenyProperty Register. I believe my problem…

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,762 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.
805 questions
asked 2022-02-26T10:25:19.543+00:00
CodingNinja 96 Reputation points
answered 2022-02-26T12:18:40.807+00:00
CodingNinja 96 Reputation points
1 answer One of the answers was accepted by the question author.

c# wpf web browser change background

i work a project in c# wpf and using webbrowser. but my web browser background color is white. i want to change background color to #F222. how to make this my web browser is bottom of the window

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,762 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.
805 questions
asked 2022-02-16T16:10:49.78+00:00
Zaug 306 Reputation points
commented 2022-02-25T12:25:25.873+00:00
Zaug 306 Reputation points
2 answers One of the answers was accepted by the question author.

Running/Migrating a WPF application into Linux

Hello, We have developed a WPF application that is widely used by users who have the Windows operating system on their machines. Now, we would like to also reach users who use Linux. What would be the best approach for such a migration? I did 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,762 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.
805 questions
asked 2020-12-16T10:40:56.587+00:00
WPF-Learner 106 Reputation points
answered 2022-02-25T11:19:05.493+00:00
Teyar RAID Nasrellah 1 Reputation point
0 answers

window.getRangeFromPoints() doesn't return correct range in some cases.

We are trying to fetch content from visible area, but this doesn't return correct range in some cases. What we have observed is that this might be due endnote/footnote reference in b/w but it works fine with endnote/footnote in some cases. How do we…

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,762 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.
805 questions
asked 2022-02-23T14:56:50.717+00:00
Priyank Kotiyal 6 Reputation points
commented 2022-02-24T08:34:34.637+00:00
Viorel 116.7K Reputation points
0 answers

I have a problem with my WPF Designer in VS Community 2022

I have a problem with my WPF Designer in VS Community 2022. The designer does not load but gives the following error message: "Some assembly references are missing. Creating to restore the NuGet cache can fix this problem". Since I am new…

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,762 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.
805 questions
asked 2022-02-22T16:14:46.433+00:00
Kim Burmester 21 Reputation points
commented 2022-02-23T02:19:31.647+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
0 answers

How to implement INotifyPropertyChanged like interface in my WPF project?

I have a WPF app where the data source of a datagrid are filtered data of a excel worksheet. The worksheet looks something like this : I'm loading the filtered data from that sheet to a datagrid using the below code on window load event : …

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,762 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,857 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.
805 questions
asked 2022-02-12T01:37:41.693+00:00
don bradman 621 Reputation points
commented 2022-02-18T07:11:14.853+00:00
don bradman 621 Reputation points
0 answers

How do stop Lost_focus on click of ComboBox in WPF?

I use C# WPF What I need : When focus lost on ComboBox , check if ComboBox has no a valid item Show a Error . My Problem : In this case when I click on the ComboBox the LostFocus event will fire but it seems didn't happened , in google search I found…

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,762 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,857 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.
805 questions
asked 2022-02-17T13:13:28.26+00:00
Mojtaba_Hakim 301 Reputation points
commented 2022-02-18T03:31:17.91+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Why are the datagrids not streching in my WPF app?

Hi, this question is linked with my previous 2 questions (Q1 and Q2) as I am trying to combine the design elements from both of them to a single new WPF app but struggling to do so as the datagrids are not stretching as intended. This is what my XAML…

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,762 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.
805 questions
asked 2022-02-14T14:06:55.027+00:00
Boom Ba 166 Reputation points
commented 2022-02-15T16:03:53.467+00:00
Boom Ba 166 Reputation points
1 answer

Setting MenuItem icon from binary image, in WPF (by C#)

First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I have custom Context Menu and MenuItem. I want to set the MenuItem icon source from the binary image. These are my codes: XAML: …

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,762 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,857 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.
805 questions
asked 2022-02-11T11:48:47.62+00:00
رضا جافری 1,296 Reputation points
answered 2022-02-11T22:35:54.987+00:00
رضا جافری 1,296 Reputation points
0 answers

VSTO Word crashes with multi instance native window handle

I want to notify word on ribbon click/actions so I have created class from nativewindow and handling parentnotify win messages but word gets crashed when I have multiple instances open and as soon as I close one of them then others gets crashed. Below is…

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,762 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,861 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.
805 questions
asked 2022-02-10T05:59:46.623+00:00
Balbhim Hinge 1 Reputation point
commented 2022-02-11T17:57:17.763+00:00
RLWA32 45,326 Reputation points
4 answers

WPF : Curly lines are getting drawn differently on different height( y coordinate)

Issue: I am facing issue in wpf while trying to draw curly lines i.e curls are appearing fine at some points but not on all points for y coordinate. Observation : Looks like it draws curves correctly only if y coordinate is multiple of width of rect…

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,762 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.
805 questions
asked 2022-01-31T10:19:44.99+00:00
Priyank Kotiyal 6 Reputation points
answered 2022-02-11T02:09:26.143+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to make TabItems fit the app window & some other design changes..

How can I make the TabItems of a TabControl Fit the entire window except for the header even when maximized or when in normal mode? Also, how do I remove the thin line between the header and page in TabItems(shown by arrow in attached image) so 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,762 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.
805 questions
asked 2022-02-05T06:10:11.807+00:00
Boom Ba 166 Reputation points
accepted 2022-02-10T15:55:23.83+00:00
Boom Ba 166 Reputation points
1 answer One of the answers was accepted by the question author.

WPF touch events

I have a WPF app. In this app context menus are defined in XAML inside border elements. Unfortunately I don't have a Windows device with touch functionality. 1) If these elements are operated by touch and the user presses a little longer on one of…

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,762 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.
805 questions
asked 2022-02-07T13:57:12.4+00:00
Heiko 1,236 Reputation points
accepted 2022-02-09T20:16:40.363+00:00
Heiko 1,236 Reputation points
0 answers

WPF-Blend How can I edit Item Template or Control Template in designer in Blend VS 2022

Hello everyone, I have a treeview: <TreeView ItemTemplate="{DynamicResource AccountsTreeViewItemTemplate}" /> and here is the template: <HierarchicalDataTemplate x:Key="AccountsTreeViewItemTemplate"…

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,762 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.
805 questions
asked 2022-02-08T08:10:34.773+00:00
Ahmed Kelany 1 Reputation point
commented 2022-02-09T01:55:54.157+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

DirectX renderer .net6 port in WPF

Hi, I am porting a directx renderer to .net6 from .net framework 4.8. Previously we could use D3DImage and draw to that in a wpf window. Now since its missing, i manage to draw using the window handle but now problem comes are GUI buttons, it draws on…

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,762 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.
805 questions
asked 2022-02-07T14:02:09.22+00:00
Sahil Agnihotri 21 Reputation points
commented 2022-02-08T19:46:19.367+00:00
Sahil Agnihotri 21 Reputation points