2,762 questions with Windows Presentation Foundation tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How can i extract an existing windows PE iso file add some files and make it a bootable iso again?

Hi, How can i extract an existing windows PE iso file , add some files and make it a bootable iso again? Your quick answer will be appreciated. Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
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
asked 2024-08-19T06:14:11.29+00:00
Dani_S 3,746 Reputation points
accepted 2024-08-21T16:24:18.0433333+00:00
Dani_S 3,746 Reputation points
1 answer

how show content of only top elements in webview2 control in C# WPF application

On expanding combo box control in webview2 control, items of combo control get overlapped with control underneath i.e. combo Box items are not completely visible it (as shown in attached pic) I have tried to use opacity property but no luck. This should…

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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,858 questions
asked 2024-08-19T17:56:12.37+00:00
Ajay Gera 20 Reputation points
answered 2024-08-19T21:06:26.7833333+00:00
Bruce (SqlWork.com) 64,566 Reputation points
1 answer

C# Program can't find XAML page in DLL

I have a program with a window declared as StartWnd (in the main assembly) derived from a class, WzdBase in a DLL which in turn is derived from System.Windows.Window. StartWnd doesn't provide its own XAML page. Rather that's in the DLL and provided by…

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,858 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
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-07-31T16:13:28.4066667+00:00
Will Pittenger 306 Reputation points
commented 2024-08-19T07:23:58.8033333+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
2 answers

How to design a login page with fully responsive page as like as Web page (Using Blend or VS 2023)

I need to build a pages for WPF app using XAML in such way that each page should be responsive as like as in the browser web pages(Microsoft Blend or Visual Studio 2022). For an example login page, sign up page or any other pages for a WPF app. …

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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,858 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 2024-08-01T07:21:44.7166667+00:00
Santhosh Badam 40 Reputation points
answered 2024-08-17T22:16:01.06+00:00
Joshua Lazaro Marandi 70 Reputation points
2 answers One of the answers was accepted by the question author.

How to Print a PDF File in C# WPF

Hello everyone , I have a PDF file with several pages and I need to print it using C# and WPF technology. Can someone provide some guidance on how to achieve this and customize the settings, such as page size, orientation, and margin? Thank you.

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,858 questions
asked 2024-08-12T03:03:17.3833333+00:00
Kamyab Faghih 40 Reputation points
commented 2024-08-16T20:35:36.3333333+00:00
Kamyab Faghih 40 Reputation points
1 answer

set property command in style for HierarchicalDataTemplate under Menu Control not work

Dear all, I am developing a menu feature, so I used the following code to set a Command for my menuitem. but it also not work. I don't know why it didn't work. <Window x:Class="Easy.Start.MainWindow" …

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,858 questions
asked 2024-08-03T15:13:08.1533333+00:00
qingqing wu 0 Reputation points
commented 2024-08-16T03:26:10.5766667+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
0 answers

The printer settings doesn't affected in the Kyocera TASKalfa 2554ci KX printer's output using `PrintDocument`

Hi team, While printing the image using the System.Drawing.Printing.PrintDocument with printer settings, the color changes was not reflected in this printer(Kyocera TASKalfa 2554ci KX) and it works fine in other printers. Eg., If we set the color of 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,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,858 questions
asked 2024-08-12T12:26:43.39+00:00
Raja VIGNESH B 0 Reputation points
commented 2024-08-13T03:02:28.5133333+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
1 answer

How to get SelectedText from other applications?

I'm looking for a way to get SelectedText from ForegroundWindow on WPF .NET. What I want to get is the selected text within another application. I'm trying to search, but I can't find the technique I'm looking for, only how to get SelectedText 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,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,858 questions
asked 2022-05-08T15:39:28.373+00:00
優貴 森 6 Reputation points
commented 2024-08-12T14:32:45.29+00:00
RLWA32 45,326 Reputation points
2 answers One of the answers was accepted by the question author.

How to align a WPF window to a child of a second window?

So I've been trying to get a System.Windows.Window to be aligned with a control in a second Window. In the image, the magnifying glass is the control I want to align to. There's padding around the icon. The dark gray box with the +- buttons is 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,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,858 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
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-08-08T03:07:52.1866667+00:00
Will Pittenger 306 Reputation points
accepted 2024-08-09T14:41:34.8166667+00:00
Will Pittenger 306 Reputation points
1 answer

What is the equivalent package for 'Microsoft.Expression.Effects' in .NET 8?

Hi, I am currently in the process of upgrading an existing WPF application from .NET Framework 4.8 to .NET 8. One of the critical components of our application relies heavily on the "Microsoft.Expression.Effects" library for various graphical…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,980 questions
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,858 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,209 questions
Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
425 questions
asked 2024-08-03T08:03:56.0033333+00:00
Sanjay Kumar Jha 156 Reputation points
edited an answer 2024-08-09T12:27:19.6533333+00:00
Gowtham CP 4,820 Reputation points
2 answers One of the answers was accepted by the question author.

Difference between dispatcher in Main window and dispatcher associated with a new user control xaml attached a child to a component in main windows?

Hi I have some doubts regarding the dispatchers . I knows that our Application runs on thread and each thread has a dispatcher associated to it which maintains the queue. Now i have 1 dispatcher associated to our application. Let's suppose i have…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
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,858 questions
asked 2024-08-04T14:47:59.7666667+00:00
Vishal2 Bansal 125 Reputation points
accepted 2024-08-08T10:23:16.82+00:00
Vishal2 Bansal 125 Reputation points
2 answers One of the answers was accepted by the question author.

How to dynamically enable a button in WPF Forms with C#?

Hi, I am new to WPF but not to C#. I am working on a application where I have several buttons and I need to change the state of the buttons based on certain conditions. For instance, I have this "Add User" button which will be enabled only if…

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,858 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 2024-08-07T14:56:55.13+00:00
Lakshmanan B 81 Reputation points
commented 2024-08-08T10:13:02.3233333+00:00
Lakshmanan B 81 Reputation points
1 answer One of the answers was accepted by the question author.

How to set the default fontfamily manually for WPF application?

I am doing MVVM FontFamily binding for my WPF application, which user can choose FontFamily and set for the application. When my application runs the first time, the selection FontFamily is null. I have no idea how to set the WPF application to default…

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
asked 2024-08-03T02:31:04.0866667+00:00
William Liu 466 Reputation points
accepted 2024-08-07T08:27:03.54+00:00
William Liu 466 Reputation points
1 answer One of the answers was accepted by the question author.

How to load *.html and corresponding *.js files and css from folder in WebView2 control in C# WPF application

Hi, I have set of *.html files (a.html , b.html , c.html), *.js files (say 1a.js , 2b.js, 3b.js) and one css file in local folder in my windows machine, I need to start loading these files in webview2 control (in wpf .net framework application) starting…

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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,858 questions
asked 2024-08-01T17:27:23.87+00:00
Ajay Gera 20 Reputation points
commented 2024-08-06T07:03:19.9133333+00:00
Ajay Gera 20 Reputation points
1 answer One of the answers was accepted by the question author.

how to force wpf fullscreen and disable user back to desktop?

I am working on a .net 8 WPF program which works like a POS(Point of sales)on customer's Windows 10 device. My question is how to force WPF window into fullscreen and disable user going back to desktop or other application (by shotcut, WinKey, taskmgr…

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
asked 2024-08-01T05:44:15.97+00:00
William Liu 466 Reputation points
accepted 2024-08-02T23:41:18.0833333+00:00
William Liu 466 Reputation points
2 answers

C# Printing problem with system.Drawing.Printing from #web API

Hello everyone, I have a situation to print PDF document as a batch from Web API. And I have used System.Drawing.Printing Library to print them. I have noticed the ‘Caution’ mentioned on Microsoft site…

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
asked 2021-04-15T10:46:22.073+00:00
Manivannan D 1 Reputation point
commented 2024-08-02T08:50:58.86+00:00
MT 0 Reputation points
2 answers

How to trigger SelectionChanged event when ComboBox selected Index is same not necessarily changed in WPF C#?

Hi there, I have a simple WPF application where a different window will open if I select the last item of a Combo box. my code is working successfully but there some issue on my code. I want some more functionality. Suppose, I select the last item, 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
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,858 questions
asked 2022-10-19T17:20:30.463+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-08-02T05:16:15.75+00:00
Rizwan322 0 Reputation points
2 answers

BindingList Filtering problem

Hallo All, While searching for a method to filter bindinglist of objects, i came accross the following sample code provided by microsoft. When testing it i experienced two issues. https://www.microsoft.com/en-us/download/details.aspx?id=17914 After…

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
asked 2024-07-30T18:01:08.47+00:00
Hobbyist_programmer 621 Reputation points
answered 2024-08-01T10:21:05.22+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
1 answer

Mysterious XAML “The name "X" does not exist in the namespace” error won't go away

I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
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,858 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 2024-07-28T01:51:58.1333333+00:00
Will Pittenger 306 Reputation points
commented 2024-07-31T09:57:35.5533333+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Is it able to check XAML Designer mode in csproj?

I have a .net 8 WPF project which is developed with lastest Visual Studio Community Version (v17.10.5). I have learned that I can use Condition attribute in csproj file to toggle build property. My question is, is there a Condition key word to check if…

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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
asked 2024-07-29T05:22:41.65+00:00
William Liu 466 Reputation points
accepted 2024-07-30T12:14:38.7066667+00:00
William Liu 466 Reputation points