Questions tagged [xaml]

Extensible Application Markup Language (XAML) is a declarative XML-based language used for initializing structured values and objects in various frameworks. When a question is about the usage of XAML with a specific framework a tag for the framework should also be provided e.g. [wpf] (Windows Presentation Foundation), [silverlight], [windows-phone], [windows-store-apps] (Windows 8 store apps), [win-universal-app], [xamarin.forms] or [workflow-foundation]

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

Label to blink/turn off when the button is pressed

Sorry for the elementary question. I want to create a UI that makes the Label blink/turn off when a button is pressed in a WPF application. I was able to make the Label blink when the screen started, ...
BTOM's user avatar
  • 71
0 votes
0 answers
3 views

WPF SplashScreen Creation and Control

Create WPF Splashscreen to deal with all resolutions and sizes Existing WPF Splashscreen too limited. Cannot control duration or changes in monitor resolution and sizing. Existing custom ...
tonyD's user avatar
  • 1
0 votes
0 answers
14 views

How to pass value from C# variable to Slider Maximum (XAML) any number of times?

I beg you, please help who knows. I've been struggling with this for 2 weeks. It is necessary to transfer the value from the variable to the Slider Maximum when the button is clicked and make it so ...
Alex's user avatar
  • 1
-1 votes
1 answer
30 views

WinUI 3: Is there a way to force a canvas to be updated after clearing it in a event

I use this to clear the canvas. mainCanvas().Children().Clear(); The UI will surely change after the event, but I would like to take a screenshot just after the canvas being cleared. I've tried ...
ACGMN's user avatar
  • 11
0 votes
1 answer
21 views

Is it possible to fully customize ProgressBar colors in WinUI 3 using a 'plug and play' approach?

I am working on a theme in WinUI 3, and customizing colors for many different controls. For the Infobar control I managed to customize the colors to my liking by changing the name of the color the ...
Blondie's user avatar
0 votes
0 answers
14 views

How can I implement the back navigation when clicked on GamepadB button on XBOX controller

Gamepad B button is suspending the app instead of back navigation. I'm trying to develop a UWP app using the WebView but when I try to do the back navigation in the app by clicking the "B" ...
Tharun Koti's user avatar
-1 votes
0 answers
16 views

How can I create a custom geo-map for my city using LiveCharts in WPF?

How to create my own WPF livecharts geo-map? I'm making a WPF uni project, where part of what I have to do requires a map. I have found this which fits very well what I want to do, but instead of the ...
TheKrzysiek's user avatar
0 votes
1 answer
44 views

How to Displaying Data in ListView or CollectionView with List in .NET MAUI using MVVM Architecture

I'm currently working on a .NET MAUI project and I'm trying to display data in either a ListView or a CollectionView. My application follows the MVVM architecture pattern, and I would like to know how ...
Haseeb Ahmad's user avatar
0 votes
1 answer
23 views

Creating a custom button shape with inverted corner WPF

I am trying to create a custom button in WPF in this shape: But am struggling on the inverted CornerRadius in the bottom right. I have seen various examples of combining Rectangle and Ellipse shapes, ...
J4ns323's user avatar
  • 35
1 vote
1 answer
55 views

How can I bind a long value and display it as a formatted date in XAML?

I have a method DateTime TimestampToDatetime(long Timestamp) (return new DateTime(Timestamp)) defined in MonkeyViewModel, and a variable long DateModified which is a timestamp defined in Monkey Model. ...
Cheng's user avatar
  • 45
-1 votes
0 answers
35 views

File not found C# maui [closed]

enter image description here I want to change everything under MVVM, but it seems to be correctly prescribed, but it does not connect I don't understand why it gives out an error. Tried a lot of ...
Афян Владимир's user avatar
0 votes
0 answers
43 views

print xaml list in xamarin (foreach)

I have a problem, or rather, I don't know how to do it. Consider the JSON type data coming from the API extension as follows. DATA:[ { OrderNo:66753, Orders:[ { Code:F-EN-01, Name:Test1, Quantity: 100,...
Kemal's user avatar
  • 5
0 votes
0 answers
50 views

CollectionView Grouping Binding the "GroupName" with "ItemTemplate"

I follow this tutorial and it works fine. but when trying to (bind) add the "GroupName" on each Item, it's not working. public class Animal { public string Name { get; set; } public ...
Noah's user avatar
  • 15
0 votes
1 answer
24 views

Using UniformGrid to set Header height within TabControl WPF

I am trying to make a vertical TabControl section on a WPF app and would like the Header buttons to fill the height of the screen (down to a MinHeight) and be of uniform size. I am hoping that this ...
J4ns323's user avatar
  • 35
-1 votes
0 answers
30 views

WPF XAML error: 'System.Windows.Data.Binding' cannot be converted to 'System.Collections.ObjectModel.ObservableCollection' - why? [duplicate]

I am writing a WPF user control. I have defined a dependency property as follows public ObservableCollection<MapSite> Sites { get { return (ObservableCollection<MapSite>)GetValue(...
Doug Havenhill's user avatar
0 votes
0 answers
7 views

XAML Animation not working properly after moving from .NET 3.5 to .NET 4.5

I'm baffled. This is the relevant XAML code: <Button Content="Got it" Name="ButtonAnimate" HorizontalAlignment="Right" Height="32"...
Paulo Santos's user avatar
  • 11.3k
0 votes
1 answer
73 views

How can I inform an owning object of changes to a child's properties in a MAUI application?

Background I've got some binding issues that I can not for the life of me resolve. I've spent nearly 3 days working on this, but I'm officially lost so I'm hoping someone can point me in the right ...
Zachary Walsh's user avatar
0 votes
0 answers
32 views

How to retrieve data through an API and display it in a collection view in .NET MAUI using the MVVM architecture [closed]

Hello Stack Overflow community, I'm currently working on a .NET MAUI project and I'm looking for guidance on how to retrieve data from an API and display it in a Collection View using the MVVM ...
Haseeb Ahmad's user avatar
0 votes
1 answer
28 views

How to disable the default cursor in UWP and use Gamepad Navigation?

I'm trying to develop a UWP app using Visual Studio 2022 through WebView but when I run/launch the application on XBOX I'm getting a default cursor from the XBOX. I've tried some of the methods that ...
Tharun Koti's user avatar
2 votes
1 answer
52 views

How do I make a full screen grid in .net Maui?

I am trying to make a page which has a top row (toolbar), main content in the middle, then a status bar along the bottom of the screen. If the main content is too large then I want it to scroll. ...
BuckBuchanan's user avatar
0 votes
1 answer
39 views

Why does RenderOptions.BitmapScalingMode affect a line appearing in my WPF bitmapImage?

I have a wpf application that displays a bitmapImage in an image control that is inside a viewbox. I use binding to set the image to a bitmapImage object that I create within the code. After creating ...
AlThurm's user avatar
0 votes
1 answer
28 views

Adding image as Expander icon WPF

I am trying to add an image as the icon for the Expander but am getting stuck when trying to set the new image when the button is toggled to show what is in the expander. I have chopped up the ...
J4ns323's user avatar
  • 35
0 votes
1 answer
20 views

MS Graph Client AcquireTokenForClient call never comes back in .Net 4.8 + XAML app

I have a MS Graph Client creation code that i copied over from another app (.NET 4.6.2) that works flawless, into a .NET 4.8 app that uses XAML as UI. public Microsoft365(BaseSource source) : ...
beggarboy's user avatar
  • 173
0 votes
2 answers
23 views

UWP Image control size not changing when binding value is changed

I have an image control with the height and width bound to a property as follows: <Image x:Name="capturedPhoto" Height="{x:Bind Path=CrosshairHeight, Mode=OneWay}" Width="{...
John's user avatar
  • 348
0 votes
2 answers
32 views

How to change the Content and IsSelected properties of a NavigationViewItem in WinUI 3 by locating it using its x:name or tag?

I create some NavigationViewItem and set its x:Name and Tag, like: <NavigationView x:Name="nvSample" SelectionChanged="nvSample_SelectionChanged" ...
Coco's user avatar
  • 1
0 votes
0 answers
23 views

How to pass IMediaFile and display the media using MediaGallery in Xamarin.Forms

I am having trouble to display images that was selected in library to display on screen. I am using MediaGallery to select up to 10 images or videos and pass it to a different page with the media that ...
bluedra's user avatar
0 votes
1 answer
16 views

Why am I getting a 'Cannot find resource named 'GUIDConverter'' error when running my XAML program?

I have an Xaml page that uses a binding convert to convert a GUID to a string however when running the program I get the following error: Exception: Cannot find resource named 'GUIDConverter'. ...
HorrorStarGames's user avatar
0 votes
1 answer
25 views

Telerik for MAUI - how to fix RadDataGrid not filling the available grid space?

I'm having this UI Issue with the RadDataGrid feature of Telerik. The above Image demonstrates my issue. As you can see on the right hand side there is white space representing the available space in ...
Adam Gong's user avatar
-2 votes
2 answers
62 views

How to use XAML-less window subclass in a normal window with XAML?

I have a class EmptyWindow which inherits from WPF Window. It has no XAML and is only used to set WindowStyle = None to remove Windows OS header. I have bunch of windows that inherits from EmptyWindow....
Boppity Bop's user avatar
  • 9,557
-2 votes
0 answers
44 views

Read List of user and password in json format from textfile instead of manually entering inputs in UI How can i achieve this in WPF MVVM

Read List of user and password in json format from textfile instead of manually entering inputs in UI How can i achieve this in WPF MVVM enter image description here I have implemented UserList ...
satya16's user avatar
  • 11
-1 votes
0 answers
44 views

How to inherit one WPF custom control from another

I have a custom control (not user control) which inherits from ContentControl as described here: How to write a generic dialog window in WPF? The idea is to have generic functionality of a dialog ...
Boppity Bop's user avatar
  • 9,557
0 votes
1 answer
45 views

Enable UWP ListView virtualization in nested controls

I have the following ScrollViewer with a StackPanel inside it: <ScrollViewer Grid.Row="1" x:Name="testScroll"> <StackPanel x:Name="...
Gabboxl's user avatar
  • 89
0 votes
1 answer
36 views

Conditional `DependentUpon` depending on existence of file

I have a shared project targeting multiple platforms with some files being dedicated to certain platforms. These can be ordinary C# classes or markup files. I want to have these files grouped under ...
Beltway's user avatar
  • 478
1 vote
0 answers
49 views

Add ContextMenu on right click for tray icon

I have implemented system tray icon in Windows using examples provided here. However this example is missing implementation of context menu on mouse right click. Is there some way to add features ...
10101's user avatar
  • 2,174
0 votes
1 answer
47 views

Only-text button in XAML

I need to do a button, which shows only text(without background or border) in XAML. I had tried it with the code below, but it just hid my button: <Button Text="Forgot Password?" Grid....
Erik Reiz's user avatar
-1 votes
2 answers
39 views

WPF template binding for a width of element based on presence of content in another element

I have custom control (not user control) which inherits from ContentControl. Its default style: <Style TargetType="{x:Type views:DialogCustomControl}"> <Setter Property=&...
Boppity Bop's user avatar
  • 9,557
0 votes
1 answer
18 views

Binding visibility.hidden in Xaml

I have a Boolean to Visibility converter Imports System.Globalization Public Class ValueConverters Implements IValueConverter Public Function Convert(ByVal value As Object, ...
El doctor Sertato's user avatar
0 votes
1 answer
31 views

how to align elements at end in HorizontalStackLayout ( maui )?

I trying to put two buttons inside the of HorizontalStackLayout by using "HorizontalOptions='End'" but it didn't work here is the code and the result as a picture: `<VerticalStackLayout ...
the_yaz2000's user avatar
1 vote
1 answer
25 views

In a Datagrid: How to display change in cell B after changing value in cell A

I have a winui3 project using the CommunityToolkit.WinUI.UI.Controls.DataGrid. I have an ObservableCollection<ExampleClass> that I bind to a DataGrid. The relevant variables of the ExampleClass ...
EddyChicken's user avatar
-1 votes
1 answer
27 views

WPF controls in preview don't match dimension and position at runtime - How to fix?

Controls dimension and position in my WPF preview window don't match the actual window in runtime. I don't know why it does this and if it is related to code or my screen. Here is the code: <Window ...
Davide Iori's user avatar
0 votes
2 answers
38 views

Is there an equivalent WPF's Visibility.Hidden property in UWP?

From Microsoft's documentation in WPF the Visibility enum has three values, Visible, Hidden, Collapsed. UWP is missing the Hidden property, which hides a control, but the space for that control is ...
Gabboxl's user avatar
  • 89
-2 votes
0 answers
33 views

XAML designer not displaying window

Well, that one is certainly weird case. <UserControl x:Class="ApkaJezykowa.MVVM.View.SettingsView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation&...
kc99's user avatar
  • 19
0 votes
1 answer
55 views

Binding of the control created by xaml works fine, but binding of the control created by code does not work

// MainWindow.xaml.cs namespace TestApp2 { public sealed partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } } } <!--...
appletree5641's user avatar
0 votes
1 answer
63 views

MAUI.NET update binding on lost focus alike

introduction: Using MAUI.NET with MVVM architecture, but MVVM can be sacrifice (this need is so important for the application). Standard way - I have ViewModel with a property with get and set ...
jaydopartu's user avatar
0 votes
2 answers
65 views

Creating a control that inherits NavigationView from code throws an exception when it is loaded

<!--MainWindow.xaml--> <Window x:Class="TestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas....
appletree5641's user avatar
1 vote
1 answer
51 views

How can I bind the window width for layout changes in .NET MAUI?

Bind to the Window width for Layout changing based on window size. I'm using the concept of This github repository based for WPF but I have been trying to adapt it for MAUI. This is also where I ...
Blookeynose's user avatar
0 votes
0 answers
20 views

WPF Scrolling Element in Wrap Panel [closed]

I have a Wrap Panel inside a Stack Panel which has several Custom Elements when Wrap panel is became full the wrap panel scroll viewer is not working: <StackPanel Grid.Row="1" ...
Amin .D's user avatar
0 votes
1 answer
35 views

How to get value of DataModel field in code behind without using an Entry control on Xaml page in MAUI C#?

I'm new to C# and MAUI - so thank you for your help! What I have: I've created a very simple 2 page application that works great: Page 1 uses a CollectionView to display a list of names defined by ...
SqueezeOJ's user avatar
  • 307
0 votes
0 answers
26 views

GetThumbnailAsync(ThumbnailMode.PicturesView) throws a NullReference exception

After building C# WebApps, I need to build a Windows Apps with WINUI 3 in VS2022 and I am struggling with a small item. My apologies upfront for this, but I am replicating the Simple Photo Editor ...
Charles de M.'s user avatar
1 vote
0 answers
44 views

Shifting .NET MAUI Flyout to the Right with FlowDirection?

How can I shift the .NET MAUI Flyout to the Right (e.g. with FlowDirection) using Shell? I am currently developing an application using .NET MAUI and am facing an issue with the Flyout menu (Sidebar). ...
rafik's user avatar
  • 11

1
2 3 4 5
1233