Microsoft Q&A

XAML

557 questions

A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.

Browse all XAML tags

557 questions with XAML-related tags

Sort by: Updated
0 answers

Does XAML (UWP) Visual Designer in Blend for Visual Studio 2022 work on Windows 10?

I am trying to design a C# Maui UI in XAML. I read that you can use Blend for Visual Studio to visually program XAML code. So, I loaded a new C# Class project in Blend to attempt an XAML visual edit, though the "Design" tab says "Visual…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 questions
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.
557 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,387 questions
asked 2023-01-26T20:24:50.2266667+00:00
Eli Blankenship 0 Reputation points
commented 2023-01-27T16:05:16.8666667+00:00
Eli Blankenship 0 Reputation points
0 answers

Change InkDrawingAttributes Opacity for Pen brush

I using a color picker to draw with a pen, but using this code I can't change de opacity of the pen color: InkDrawingAttributes inkDrawingAttributes = InkCanvas.InkPresenter.CopyDefaultDrawingAttributes(); inkDrawingAttributes.Color =…

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.
6,910 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.
557 questions
asked 2023-01-26T14:51:19.3+00:00
Anderson Cavalcante 21 Reputation points
commented 2023-01-27T11:21:50.61+00:00
Anderson Cavalcante 21 Reputation points
2 answers

How to find the index of a newly added item in a ListView collection

I have a ListView element using a GridView. The ListView.ItemsSource property is bound to a CollectionViewSource. When I add a new item to the collection, the item appears successfully in the grid but I cannot determine the index at which it appears…

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,169 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.
557 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.
6,910 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
asked 2023-01-12T15:00:24.92+00:00
Charles Burkitt 10 Reputation points
commented 2023-01-26T21:21:44.7433333+00:00
Charles Burkitt 10 Reputation points
0 answers

Dynamically Add Entry in a StackLayout and Retrieve Values in a List

As per the attachment, when clicked the '+' button, a new entry will display and need to store entered value in a List<string> . If 'x' clicked, the entry need to removed from the layout and removed from List<string> too.

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.
557 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,559 questions
asked 2023-01-25T06:26:49.88+00:00
Mohanasundharam Murugan 20 Reputation points
commented 2023-01-26T10:55:41.6033333+00:00
Mohanasundharam Murugan 20 Reputation points
1 answer

Is this a right way to change DataGrid's value programmicality in C# WPF?

I want to be able to easily change the values of datagrid cells at any time Is this helper function a good solution? : public static DataGridCell GetCellConfig(DataGrid DGR1, string NAME_SUTUN, int ROWINEX) { var TheCol =…

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,169 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.
6,910 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.
557 questions
asked 2023-01-03T22:03:03.73+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:50:13.25+00:00
Hui Liu-MSFT 14,556 Reputation points Microsoft Employee
1 answer

How to set Focus on new row after TAB Pressed in the last row in C# WPF DataGrid?

I'm using C# WPF , I have a DataGrid that is bound to an ObservableCollection , I want to keep focus on DataGrid's row when user is entering value with keyboard on DataGrid, I mean when last row is focus after value entered , istead of lost focus on…

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.
6,910 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.
557 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,169 questions
asked 2023-01-10T10:32:07.007+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:48:53.7566667+00:00
Hui Liu-MSFT 14,556 Reputation points Microsoft Employee
2 answers

What is the best way to communicate with the database through Datagrid in C# WPF between DataSet and Entity?

I use C# WPF, I am programming an accounting program with a SQL Server database, in this accounting program, data is inserted, updated, and deleted by the user directly in a data grid, which contains a textbox and Combobox elements. In an issue…

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,169 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.
6,910 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.
557 questions
asked 2023-01-07T20:19:39.27+00:00
Mojtaba_Hakim 251 Reputation points
commented 2023-01-26T09:47:13.6733333+00:00
Hui Liu-MSFT 14,556 Reputation points Microsoft Employee
0 answers

Bound ComboBox within a page and frame not working as expected - WinUI 3

Hi, i have a bound ComboBox which i've already posted here. I'm adding a separator by a TemplateSelector but to disable the separator, I have to iterate the ComboBoxItems in the Tapped event and set the IsEnabled property to false. This has to be…

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.
430 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.
557 questions
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.
2,609 questions
asked 2023-01-24T18:47:43.97+00:00
youki 846 Reputation points
commented 2023-01-25T19:45:54.1+00:00
youki 846 Reputation points
2 answers One of the answers was accepted by the question author.

CollectionView UI not updated when Switch Toggled but ObservableCollection updated

Here, when toggle, observablecollection has been updated, but ui not updated. Expected Output is: When switch toggle is on, the items pack price need to be display. When switch toggle is off, the item's price need to be display. <CollectionView…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 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.
6,910 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.
557 questions
asked 2023-01-24T19:30:26.5+00:00
Mohanasundharam Murugan 20 Reputation points
answered 2023-01-25T06:18:15.31+00:00
Mohanasundharam Murugan 20 Reputation points
2 answers

WPF ListBox - Display Message When Item Source Is Empty

Hello All - I am trying to replace the listbox with a message for the user when there is no data available. When there is data available, whatever is available, will display out. I have been working on this for a while but do not know what to do. When…

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.
6,910 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.
557 questions
asked 2023-01-25T01:47:40.06+00:00
bryon 101 Reputation points
answered 2023-01-25T06:10:16.9533333+00:00
Hui Liu-MSFT 14,556 Reputation points Microsoft Employee
1 answer

Access native functionalities in .Net MAUI Blazor app with embedded Angular application

Hi, We are working on creating a mobile application using .Net MAUI Blazor as technology. We were trying different approach Load dist folder of Angular application build into Blazor application Load direct angular application through weburl We were…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 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.
557 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
782 questions
asked 2023-01-24T09:12:41.6566667+00:00
Varpe, Nitin 0 Reputation points
answered 2023-01-24T18:06:09.0266667+00:00
Bruce (SqlWork.com) 27,936 Reputation points
0 answers

Find several template generated ComboBox items by property value - WinUI 3

I have a ComboBox bound to a ViewModel. Is there a shortcut to get the item's index by the property which is not displayed, i assume there isn't? My target: I have to find an item by property value to select the index. If the property's value is not…

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.
430 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.
557 questions
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.
2,609 questions
asked 2023-01-22T21:29:08.1766667+00:00
youki 846 Reputation points
edited the question 2023-01-22T21:32:59.5566667+00:00
youki 846 Reputation points
1 answer One of the answers was accepted by the question author.

How to change the UWP app standard minimize/maximize/close toolbar background?

The UWP app is using the dark theme and it is set like in the c# code. Current.RequestedTheme =ApplicationTheme.Dark; if we change to lighter windows themes from the personalization/themes in windows 10/11 , somehow it changes the UWP app…

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.
557 questions
asked 2023-01-19T08:41:15.15+00:00
DotNET Fan 46 Reputation points
accepted 2023-01-19T12:13:38.38+00:00
DotNET Fan 46 Reputation points
1 answer

How Can I save a ComboBox selected value in settings file when it has dynamic content in WPF?

I have a WPF application where I use many ComboBox controls. Most of the time I save application user settings in the Settings file, though many people use JSON to do that work but I think the default Settings file in WPF application is 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,169 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.
6,910 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.
557 questions
asked 2023-01-17T12:01:51.96+00:00
MERUN KUMAR MAITY 451 Reputation points
commented 2023-01-18T14:47:24.23+00:00
MERUN KUMAR MAITY 451 Reputation points
1 answer One of the answers was accepted by the question author.

How to Change WebView url source at runtime MAUI .NET?

I want to change MAUI .NET Webview Source at runtime. I have this code, which is summoned by a button in XAML C# CODE: `void OnReloadWebView(object sender, EventArgs e) { try { WebView = new WebView(); WebView.Source = new…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 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.
6,910 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.
557 questions
asked 2023-01-16T18:07:47.33+00:00
commented 2023-01-18T13:54:22.8333333+00:00
1 answer

3221226107 (0xc000027b) API REST

Hello, I am a novice programmer. Does anyone know how to solve the problem with 3221226107 (0xc000027b). Well, after replacing the code in TodoListPage.xaml.cs from public partial class TodoListPage : ContentPage { public TodoListPage() { …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 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.
557 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,892 questions
asked 2023-01-13T13:49:02.3233333+00:00
Krzysztof 0 Reputation points
commented 2023-01-18T01:33:18.0933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,081 Reputation points Microsoft Employee
1 answer

adding custom font in .net maui does nothing on android

Also my font is not showing on my label, that is 100% not a chewy font, however its in there like it is supposed to: public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder …

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.
557 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 questions
asked 2023-01-16T02:27:26.56+00:00
Kai Winters 0 Reputation points
commented 2023-01-18T01:31:25.8366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 41,081 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

ComboBox - MaxDropDownHeight seems to be limited to 15 items - WinUI 3

I would like to have the ComboBox's dropdown as long as it gets depending on the available space on the screen that the user has less scrolling; faster access. I've tested it: If i have the ComboBoxItems tags in the xaml code directly and i set the…

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.
430 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.
557 questions
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.
2,609 questions
asked 2023-01-16T22:39:45.4133333+00:00
youki 846 Reputation points
commented 2023-01-17T17:19:21.1366667+00:00
youki 846 Reputation points
1 answer One of the answers was accepted by the question author.

Wpf ListView and ContextMenu with multiple CommandParameters

I have created striped down test project to simply demonstrate the problem. I have a series of button with Commands and Multiple CommandParameters to manipulate some images displayed within a ListView. Everything works fine. I would then like 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,169 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.
6,910 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.
557 questions
asked 2023-01-14T12:25:50.8466667+00:00
BigH61 261 Reputation points
accepted 2023-01-16T14:05:42.78+00:00
BigH61 261 Reputation points
2 answers

Combobox - SelectionChanged - Input comes from User

There is no implemented flag or the right event to detect, if the input comes from a user (by keyboard and mouse)? Depending on the CombobBox Item and a ListView selection, different pages are loaded in a frame and the selection of the ComboBox is saved.…

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.
557 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.
430 questions
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.
2,609 questions
asked 2023-01-15T15:58:15.0666667+00:00
youki 846 Reputation points
edited an answer 2023-01-15T17:35:07.33+00:00
youki 846 Reputation points