786 questions with XAML-related tags

Sort by: Updated
0 answers

I want to turn on the PC from sleep mode on windows 10/11 programmatically in WPF (.net framework) C# application. How to achieve it ?

I want to perform windows sleep turn on and then wake up the PC after some time say 2 days later. I have two options :- Either programmatically sleep the pc and wake it up later automatically(but it requires manual entering of password to pc after…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 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,706 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,575 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.
786 questions
asked 2024-02-01T07:10:15.0166667+00:00
Vishal2 Bansal 85 Reputation points
edited a comment 2024-02-08T16:56:58.9766667+00:00
Heiko 1,216 Reputation points
2 answers One of the answers was accepted by the question author.

How to bind a attached property in MAUI(XAML)?

A simple label <Label x:Name="llll" FontSize="16" extensions:CommandParameterHelper.Parameter="content" Text="{Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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,575 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.
786 questions
asked 2024-01-19T10:55:13.21+00:00
尼龟 杰 150 Reputation points
accepted 2024-02-08T13:21:51.13+00:00
尼龟 杰 150 Reputation points
1 answer One of the answers was accepted by the question author.

WPF/XAML Style/Template Properties Memory Usages

Hello! I wonder if without border properties 'BorderThickness & BorderBrush' of a Control Style (ie Button) can help the overall performance when that control is used in large quantities through a list/treeview? Thanks.

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,706 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.
786 questions
asked 2024-01-29T20:52:37.63+00:00
Francis Provencher-Leduc 40 Reputation points
commented 2024-02-05T21:53:20.28+00:00
Francis Provencher-Leduc 40 Reputation points
2 answers

How can i filter a ComboBox's dropdown in a datagridcolumn based on the selection of the previous cell?

I have 3 ComboBoxes in a DevExpress Datagrid Columns namely; Country, Provinces Districts respectively. The Country Column has a dropdown that lists all of the Countries in the World, the Province Dropdown has all of the Provinces in all the Countries,…

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,706 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,575 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.
786 questions
asked 2024-01-31T05:10:17.2666667+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-02-05T01:57:07.21+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WPF Re-Usable Datagrid with Pre-Loaded Data inside its VieModel

I have a Project in WPF C# .NET 8 that gets data from sql server and display a StudentName, a DataGrid that Contains places where that student is interested in called PlacesOfInterest. In the PlacesOfInterest datagrid, there are three Column ComboBoxes…

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,706 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,575 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.
786 questions
asked 2024-01-27T07:54:40.41+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-31T11:05:59.22+00:00
Mesh Ka 345 Reputation points
1 answer

[UWP][C#] when a folder is dragged & dropped files in it aren't deleted

in my app when i drag & drop a folder i can view details of the files but when i try to delete them i get error that 'file is read-only' , why is that ? await file.DeleteAsync(deletionMode);

Universal Windows Platform (UWP)
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,575 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.
786 questions
asked 2024-01-18T08:55:14.5933333+00:00
kranthi kumar 206 Reputation points
edited a comment 2024-01-25T08:51:26.65+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Get Syncfusion ComboBox Id Value

Hey Friends, I am using .Net Maui and a Syncfusion ComboBoc and I am trying to adhere to the MVVM pattern and I was wondering if you have a simple model of type collection with Name and Id like the code below, how would I create a binding to the Id…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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,575 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.
786 questions
asked 2024-01-24T21:59:40.0566667+00:00
Ronald Rex 1,666 Reputation points
accepted 2024-01-25T04:34:00.79+00:00
Ronald Rex 1,666 Reputation points
0 answers

How to get a PowerShell available list of events, methods, and properties For GUI using Xaml

My Question is here I want to know to get a PowerShell available list of events, methods, and properties for GUI using Xaml https://stackoverflow.com/questions/77853338/how-to-get-a-powershell-available-list-of-events-methods-and-properties-for-gu

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.
786 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,272 questions
asked 2024-01-21T03:57:24.4766667+00:00
papanda925 0 Reputation points
0 answers

How to use a type in attachedBindableProperty in xaml?

public class LayoutHelper<T> { public static readonly BindableProperty ItemSourceProperty = BindableProperty.CreateAttached("ItemSource", typeof(ObservableCollection<T>), typeof(LayoutHelper<T>), null); .... } In C#…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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,575 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.
786 questions
asked 2024-01-19T03:51:34.0233333+00:00
尼龟 杰 150 Reputation points
edited the question 2024-01-19T03:52:30.7466667+00:00
尼龟 杰 150 Reputation points
1 answer One of the answers was accepted by the question author.

How to add keyboard shortcut of OEM keys in Keyboard Accelerators in WinUI 3, XAML

Hi. I am creating an app in WinUI 3, C# Xaml. In the app I have a button which has the "+" symbol. The Keyboard shortcut for the button is only showing the numeric pad "+" key. How do I add a shortcut of the shift key and the OEM plus…

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.
747 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,499 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,575 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.
786 questions
asked 2024-01-08T13:14:13.2866667+00:00
Hemanth B 886 Reputation points
edited the question 2024-01-16T03:31:30.31+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
0 answers

Navigation Problem In Xamarin Forms

I am using Xamarin Forms in Visual Studio Community 2022 version 17.7.5 I have many screen in my app , After splash there are onboarding screen and then dashboard screen , in dashboard screen there are two option one is signup and second is login.…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 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.
786 questions
asked 2024-01-09T05:56:28.9+00:00
Md Mosabbir Alam 20 Reputation points
commented 2024-01-16T02:40:39.9233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,446 Reputation points Microsoft Vendor
3 answers

Filtering a ComboBox in a DataGrid based on another combobox in the datagrid in WPF C#?

In my Example Here i have a 3 ComboBoxes in a Datagrid displayoing Countries, Provinces and Districts respectively.How can i Filter the Provinces by Countries and Districts by Provinces in such a way that when the user selects a country he only gets 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,706 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,575 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.
786 questions
asked 2024-01-07T16:23:22.5066667+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-14T10:08:24.35+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
2 answers

Window shrinking background effect

Hello, In windows 11 when you try to move a window using a pen/stylus it will shrink a little bit and show a background on the sides (of the actual size of the window), when you release it it will return to normal. We have a WPF project made a…

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.
786 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,794 questions
asked 2022-09-15T09:31:18.28+00:00
Jorge Pérez Riebeling 6 Reputation points
commented 2024-01-08T09:20:08.5533333+00:00
Mike TMHK 0 Reputation points
1 answer

How to load page like frame in WPF?

I wanna know if there any control can show a page,when i set frame‘s content as a page,it only show its name,but in wpf the frame is work directly.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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.
786 questions
asked 2023-12-22T02:01:23.3833333+00:00
尼龟 杰 150 Reputation points
answered 2024-01-08T08:59:07.0566667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,446 Reputation points Microsoft Vendor
1 answer

MAUI : Dark mode is hiding visual element in IOS

On IOS whenever I am changing system, Light mode to Dark mode, and visit to my maui application , some visual elements are getting dark due to which some labels and other visuals are also hiding. see below attachments for the reference. download.png…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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,575 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.
786 questions
asked 2024-01-03T09:50:23.45+00:00
Pratap Singh, Ayush 20 Reputation points
commented 2024-01-08T07:56:06.1+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

I want to display an Action Sheet from the ViewModel

I am trying to display an action sheet from the viewmodel when the user taps on an Item in the ListView using commanding. Currently I have this in my Xaml. But I get a compiler error message stating that Event ItemTapped can only be bound to properties…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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,575 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.
786 questions
asked 2024-01-04T15:48:51.6366667+00:00
Ronald Rex 1,666 Reputation points
accepted 2024-01-05T21:24:49.7933333+00:00
Ronald Rex 1,666 Reputation points
3 answers

How Can i add a "AddNew" button at the end of drop downs in a Custom ComboBox Control?

I have a custom control with a ComboBox. I want to add a button at the end of the drop-down list that says "AddNew," such as "AddNewStudent," which, when clicked, opens a form to register a new student. Since I expect to create many…

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,706 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,575 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.
786 questions
asked 2023-12-28T11:28:17.14+00:00
Mesh Ka 345 Reputation points
edited a comment 2024-01-04T09:34:19.7566667+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
1 answer One of the answers was accepted by the question author.

Picker used in Popup not inheriting color brushes

Hello, I'm styling my Pickers as described in one comment here: https://github.com/dotnet/maui/issues/13418 <maui:MauiWinUIApplication.Resources> <SolidColorBrush x:Key="ComboBoxItemForegroundPointerOver"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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.
786 questions
asked 2024-01-02T17:56:52.34+00:00
Jorge Nuricumbo 60 Reputation points
commented 2024-01-03T09:19:56.3533333+00:00
Jorge Nuricumbo 60 Reputation points
1 answer One of the answers was accepted by the question author.

How can I create a custom Picker with grouped items?

I'm looking to create a custom Picker that can group items between 'Recently Used' and 'All Items,' as shown in the attached image. Are there any ideas or examples on how to implement this custom Picker? Thanks in advance.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,143 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.
786 questions
asked 2023-12-27T14:15:18.9833333+00:00
Jorge Nuricumbo 60 Reputation points
commented 2024-01-03T05:38:55.4233333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,591 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to claims admin permission in wpf for app store

The app needs admin permission to be launched properly. In app.manifest, set requireAdministrator. Feedback run errors after submission. The product crashes at launch with error message "The request is not supported." How should I…

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.
786 questions
asked 2022-11-17T10:48:57.683+00:00
振宁 梁 21 Reputation points
answered 2024-01-02T22:58:44.9233333+00:00
Blake Pell 0 Reputation points