786 questions with XAML-related tags

Sort by: Updated
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.
786 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.
786 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,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-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,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-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,495 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,259 questions
.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 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.
786 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,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-04-26T10:23:50.44+00:00
commented 2024-04-29T03:22:15.68+00:00
Hui Liu-MSFT 47,176 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.
786 questions
asked 2024-04-26T13:59:47.5766667+00:00
TCH 26 Reputation points
1 answer One of the answers was accepted by the question author.

Xamarin Forms I can not get SelectedItem to run the edit Code

I've tried everything I could find to get a selected row to run an edit code. tried TapGestureRecognizer, Buttons , Selecteditem but nothing happens and the only thing that happens is the background color on the row changes when using…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,824 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-04-07T14:36:19.0533333+00:00
tim 140 Reputation points
edited an answer 2024-04-24T01:43:10.9033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,591 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Empty space between elements .NET MAUI

The entire page is a grid. I'm trying to position a child grid on top of the parent grid. This works on Android. On Apple up to iPhone 14 too. On iPhones 14 and 15, the space between the parent and child grids is displayed. <?xml…

.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-04-19T07:41:18.8766667+00:00
Влад Тигинян 40 Reputation points
commented 2024-04-24T00:59:01.8733333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,446 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to remove Bottom Border Textbox | UWP

Hello. I have a native TextBox and I'd like to remove this blue border-bottom in Light and Dark: Focus State: Rest: I'd like to remove all these bottom borders. However, if my SO is in High Contrast mode, I'd like to keep these native borders: …

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-04-19T14:49:44.9933333+00:00
Anderson Rodrigues Cavalcante 291 Reputation points
commented 2024-04-22T23:14:41.38+00:00
Anderson Rodrigues Cavalcante 291 Reputation points
0 answers

How to Make Span Text/content Wrapped if it exceeds?

Here if my account number exceeds the numbers from last get cut/disappear. So I used LineBreakMode to WordWrap in label but this is also not working here. <Label FontFamily="InterstateRegular"> …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
.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-04-15T09:49:12.2+00:00
Pratap Singh, Ayush 20 Reputation points
commented 2024-04-16T05:44:37.45+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,446 Reputation points Microsoft Vendor
3 answers

MVVM datagrid comboboxes are not displaying the initial values and the moderator dropdown list needs to be unique

Based on my last request from this community and I got the POC working.…

.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-04-06T18:45:14.3233333+00:00
Yvon 50 Reputation points
commented 2024-04-13T07:02:21.7566667+00:00
Peter Fleischer (former MVP) 19,306 Reputation points
22 answers One of the answers was accepted by the question author.

How to save all the updates in a datagrid (set of comboboxes) MVVM back to the database in WPF C#?

I have similar issue as @Mesh Ka working on the filtering between comboboxes. https://learn.microsoft.com/en-us/answers/questions/1481853/filtering-a-combobox-in-a-datagrid-based-on-anothe Thanks for the solution! The challenge I have is to save all the…

.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-22T18:34:30.8433333+00:00
Yvon 50 Reputation points
edited an answer 2024-04-12T16:51:38.34+00:00
Yvon 50 Reputation points
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.
786 questions
asked 2024-04-12T16:35:05.5933333+00:00
TCH 26 Reputation points
2 answers One of the answers was accepted by the question author.

[WPF] HttpClientHandler SendAsync Call Never Getting HTTP Response Back

Our project is developed with WPF C# with Target framework version of .Net Framework 4.6.2. We were trying to do a POST call using HttpClientHandler, But we didn't get any response or the status back. The application stays hanged, Didn't…

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 2022-03-11T05:55:35.95+00:00
Magi 21 Reputation points
commented 2024-04-12T07:45:46.3433333+00:00
Gabor Hollosy 0 Reputation points
0 answers

About automatic suggestion and completion of XAML codes on Visual Studio Code

Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…

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-03-24T20:52:48.8666667+00:00
fatih uyanık 80 Reputation points
commented 2024-04-08T05:59:10.4966667+00:00
Jiale Xue - MSFT 42,151 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Best Practices for Two-Way Data Binding in Large .NET Applications

Hello Microsoft Q&A community, I’m working on a large-scale .NET application, and I’ve been using two-way data binding in my XAML views. However, I’ve heard that this approach can become problematic in large projects. I’d like to understand the best…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 questions
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
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-03-19T17:01:43.8666667+00:00
arunkumar.mr 20 Reputation points
accepted 2024-04-02T09:25:42.06+00:00
arunkumar.mr 20 Reputation points
1 answer

Binding to command defined in viewmodel not working using CommunityToolkit.Maui

I have a MAUI app that I am using CommunityToolkit.Maui to implement the MVVM pattern. I have the XAML markup with the code-behind and a view model in which I define a set of methods attributed with [RelayCommand]. In the XAML, I am creating a label with…

.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-03-27T20:34:33.74+00:00
DRutter 1 Reputation point
answered 2024-03-28T08:47:47.0466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,591 Reputation points Microsoft Vendor
1 answer

Is it possible to write new attached property like Validation.Errors, say MyValidation.XYZ

Hello, I would like to use some set of my own different attached properties not defined in Validation.cs. Actually I've tried all known possible ways including AddValueChanged for existing public Validation.<DependencyProperty>, but no have no luck…

.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-03-25T15:29:46.77+00:00
Alexander Landa 0 Reputation points
commented 2024-03-26T14:17:27.8+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor