778 questions with XAML-related tags

Sort by: Updated
1 answer

Change Grid Margin Using Visual State | UWP, WinUI3

I have a grid inside a Style. If this grid has a width > 640 I'd like to change its background for red. If the grid width <= 640 I'd like to change the background for yellow. How can I do it only using xaml, without code behind? Obs: It is the grid…

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.
778 questions
asked 2024-06-12T19:09:25.5566667+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
commented 2024-06-19T09:31:58.41+00:00
Junjie Zhu - MSFT 16,151 Reputation points Microsoft Vendor
1 answer

Unable to make full screen splash in .NET MAUI

How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,073 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,516 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.
778 questions
asked 2024-06-11T04:27:11.4933333+00:00
Md Mosabbir Alam 0 Reputation points
commented 2024-06-19T07:31:04.3466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,966 Reputation points Microsoft Vendor
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

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,516 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.
778 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 90 Reputation points
commented 2024-06-14T01:45:54.5066667+00:00
Junjie Zhu - MSFT 16,151 Reputation points Microsoft Vendor
0 answers

Use same VisualStateGroup in all different ListViewItem style

Hello everyone. I'd like to make my VisualStateGroup unique for all ListViewItem, so that any ListViewItem style, even different, can use the same VisualStateGroup, without repeating in the ListViewItem style. Declare the VisualStateGroup once and all…

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,516 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.
778 questions
asked 2024-06-07T09:38:18.44+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
edited a comment 2024-06-12T19:02:20.54+00:00
Anderson Rodrigues Cavalcante 271 Reputation points
1 answer

How to diable keyboard

I want to disable keyboard using toggle switch and these are my code I don't know what the command is to disable keyboard using toggle Switch. please help me I am beginner in Win UI (C++/CX & C++/WinRT). <! --xaml --> <ToggleSwitch…

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,600 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.
778 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,659 questions
asked 2024-06-08T14:59:37.5266667+00:00
Raman Singh 0 Reputation points
commented 2024-06-12T01:49:59.4466667+00:00
Minxin Yu 10,616 Reputation points Microsoft Vendor
1 answer

Intellisense not working in XAML VS 22 17.10.1

I am using VS 22 17.10.1 and I am having trouble with Intellisense. I don’t get autocomplete for the Avalonia AXAML files. If I go to Tools=>Options=>Text Editor=> XAML in VS I see that the Statement Completion area is completely disabled and I…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,782 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.
778 questions
asked 2024-06-05T11:42:51.9433333+00:00
Lyubomir Radev 0 Reputation points
commented 2024-06-07T02:41:58.5966667+00:00
Anna Xiu-MSFT 27,221 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

What is the best way for customizing TitleBar in WinUI 3?

What is the best way for customizing TitleBar in WinUI 3? I used to customize in this way: 1.using window.Extend... and window.SetTitlebar(element); 2.using window.AppWindow.Extend... now there is a new way for customizing titlebar…

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.
739 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.
778 questions
asked 2023-11-10T14:50:42.9966667+00:00
Mahdi Hosseini 135 Reputation points
answered 2024-06-06T14:28:38.25+00:00
Jay Paans 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can I change the border color of a NavigationView in WinUI 3?

Which property is it in the generic.xaml? I can't even find the TargetType. Lines within the red rectangles.

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.
739 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.
778 questions
asked 2024-05-22T15:53:25.08+00:00
youki 1,016 Reputation points
accepted 2024-06-06T05:47:34.11+00:00
youki 1,016 Reputation points
1 answer

How can I change BackgroundColor of CustomLabel in Selected Action State Event CreateCustomLableNavigationState method Similar to ListviewItemSelection Event

<ListView x:Name="listView" ItemsSource="{Binding ItemList}" RowHeight="43" Margin="0,-5,0,0" CachingStrategy="RecycleElement"> <ListView.ItemTemplate> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,314 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.
778 questions
asked 2024-05-30T14:41:47.06+00:00
G, S 0 Reputation points
answered 2024-05-31T05:58:18.93+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,061 Reputation points Microsoft Vendor
0 answers

Performance Discrepancy Between Templated Control and Direct Implementation

I encountered a performance issue while working on a project where I utilized two identical buttons with all properties set the same. The only difference was in the content: one button utilized a PathIcon inside a Viewbox, while the other utilized a…

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.
739 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,516 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.
778 questions
asked 2024-05-24T05:00:57.4466667+00:00
Muthu S 20 Reputation points
commented 2024-05-24T06:24:29.9+00:00
Xiaopo Yang - MSFT 12,066 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

Is it possible to bind WPF DataGrid's RowState property to a property in the codebehind collection?

.Net 4.6.1 Given an ObservableCollection OC that is a collection of MyDisplayGrid MDG, and that OC has been set as the DataGrid's ItemSource Is it possible to bind (not display on the grid) the RowState property of the DataGrid to a property 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,699 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.
778 questions
asked 2021-12-24T00:03:07.887+00:00
Dave Cotton 41 Reputation points
accepted 2024-05-23T17:21:35.8966667+00:00
Dave Cotton 41 Reputation points
0 answers

PrintTaskOptions throws Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Hi Team, We are trying to invoke a print preview from the stream of PDF documents. While invoking the print preview we are receiving Catastrophic failure from the PrintTaskOptions while creating print preview pages. We have tried the following methods…

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.
778 questions
asked 2024-02-15T13:13:31.89+00:00
ManojKumar 0 Reputation points
commented 2024-05-23T08:05:49.5366667+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
0 answers

Visual Studio XAML mobile app, ZIndex is not working

I am working in XAML. I have a page the sets a rectangle with a black background a pixel; border about as wide as a mobile phone. I am trying to place a label in the upper left of the rectangle with a black background and white text. What is occurring…

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.
778 questions
asked 2024-05-21T02:40:35.4266667+00:00
Peter Rung 0 Reputation points
0 answers

UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices

I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…

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.
778 questions
asked 2024-05-11T10:28:59+00:00
Hardik Rathod 20 Reputation points
commented 2024-05-13T02:53:51.8133333+00:00
Roy Li - MSFT 32,721 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Webview is not allowing the remaining UI elements to render properly

I have labels, images and button along with webview. When I am landing to this webview page, the remaining UI controls are not rendered(not shown in the UI). When I start scrolling then the UI elements are rendered properly like in attached screenshots.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,073 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.
778 questions
asked 2024-05-07T09:31:52.57+00:00
Keerthana Krishna 60 Reputation points
accepted 2024-05-08T08:18:57.42+00:00
Keerthana Krishna 60 Reputation points
0 answers

How to know if Bluetooth connection is lost when application is running in Xamarin Forms. Any listener will hit?

How we can know if bluetooth connection is lost or turned off when we are running the application without any Button click event. App is connected to some ble devices . How to handle the scenario ? Any listener will hit or not? private void…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,314 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.
778 questions
asked 2024-05-03T14:00:27.1533333+00:00
Sk 61 Reputation points
commented 2024-05-07T09:51:55.0966667+00:00
Sk 61 Reputation points
2 answers

MAUI IMAGE LOAD ISSUE USING ASSEMBLY

Hi, I'm encountering a significant problem in my MAUI development. I've developed a MAUI library project, and when I reference it in another MAUI project, everything functions correctly. However, when I attempt to use the assembly or DLL within the same…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,402 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,118 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,073 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,516 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.
778 questions
asked 2023-11-06T05:36:29.2966667+00:00
SANJAY KUMAR JHA 0 Reputation points
answered 2024-05-06T13:57:08.4566667+00:00
anurag pal 0 Reputation points
1 answer One of the answers was accepted by the question author.

GridSplitter Not Working for Rows

This is just an example to demonstrate my issue so this is the entire XAML: <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …

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.
778 questions
asked 2024-04-30T09:47:04.93+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2024-04-30T15:06:53.0333333+00:00
RogerSchlueter-7899 1,236 Reputation points
1 answer

How to fix XamlReader.RewrapException(ex, xamlLineInfo, baseUri);

Here is the error System.Windows.Markup.XamlParseException: "'The invocation of the constructor on type 'DentistryOOP.View.MainWindow' that matches the specified binding constraints threw an exception.' Line number '6' and line position…

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,516 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.
778 questions
asked 2024-04-26T10:23:50.44+00:00
commented 2024-04-29T03:22:15.68+00:00
Hui Liu-MSFT 47,021 Reputation points Microsoft Vendor
0 answers

xaml comboxbox textbox lostfocus firing when clicking on combobox dropdown button to expand list

Use case is a value already stored in the control. To remove the value to change it (the list is filtered on the value), the user will backspace or ctrl+Shift Home to highlight and delete the current value. Now the user wants to select a new item from…

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.
778 questions
asked 2024-04-26T13:59:47.5766667+00:00
TCH 26 Reputation points