63,031 questions
0
votes
0
answers
22
views
System.MissingMethodException: CommunityToolkit.Maui.Views.AvatarView in .NET MAUI 10
I'm getting an exception when trying to open a Page View that uses any CommunityToolkit.Maui view/control.
I am building the app with .Net MAUI 10 <MauiVersion>10.0.10</MauiVersion>.
I ...
-1
votes
0
answers
40
views
WPF Flyout Positioning Issue with FlowDirection="RightToLeft" [closed]
Problem Description
I'm developing a custom WPF Flyout component that uses Popup with CustomPopupPlacementCallback. The Flyout positions correctly when the Window has FlowDirection="LeftToRight&...
-1
votes
0
answers
71
views
Is it possible to dynamically create buttons in WPF based on the number of devices set in an INI file? [duplicate]
Assuming the number of devices is set in the config.ini file as follows:
[Device]
Count = 10
When my WPF program starts, I want to automatically create buttons based on the Count value. For example, ...
0
votes
1
answer
90
views
I'm having trouble masking my entry control to a phone number mask. Why?
I have a MAUI app. The initial XAML markup looks like this:
<mops:PopupPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:mops="clr-namespace:Mopups....
0
votes
0
answers
54
views
How to remove the sharp edges of Custom TitleBar in Avalonia UI?
I am working on Avalonia UI and I am having difficulty removing the sharp transparent edges from my UI. I wanted to make a custom Title bar which will perform similar to the default titlebar but I am ...
0
votes
0
answers
107
views
WPF: DropShadowEffect + Viewport2DVisual3D (Planerator/TiltEffect) causes deformation/offset during “tilt”
I’m trying to implement a “tilt” effect (a slight 3D tilt of an element on press/hover) in pure WPF, similar to UWP/WinUI. I’m using the classic approach with Viewport2DVisual3D (Greg Schechter’s ...
1
vote
0
answers
77
views
In Avalonia, using a ListBox's VirtualizingStackPanel causes slow Page loading
In my app, I use a viewmodel variable in conjunction with the viewlocator to switch between pages on the window.
<Grid Grid.Row="0" Grid.Column="1" Grid.RowSpan="2">...
1
vote
1
answer
74
views
First item in SettingsExpander gets loaded and immediately unloaded
I have the following simplified xaml code within a page:
<controls:SettingsExpander
x:Name="ColorSettingsExpander"
VerticalAlignment="Top"
Header="Color ...
0
votes
2
answers
107
views
WPF ComboBox equivalent of VB6 ComboBox.Click event
I am migrating an old VB6 application to WPF (.NET 8).
In VB6, the ComboBox control has a Click event that fires only when the user actually selects an item from the drop down list. It does not fire ...
2
votes
1
answer
123
views
WPF ListView: AutoScroll to last item when new messages arrive (chat-like behavior)
I'm porting an application from MAUI to WPF, it's a chat application so I made this CollectionView in MAUI that contains all the messages from all the users inside a single chat and like a real chat ...
0
votes
0
answers
160
views
Open XAML file (FlowDocument) in a WPF RichTextBox when the program starts [duplicate]
I am trying to open an xaml-file (FlowDocument) in a WPF RichTextBox when the program starts by putting code in MainWindow(). I have tried several examples from the web, for example this one and ...
1
vote
1
answer
99
views
Why in a WinUI3 app, does DataContext binding work when debugging but causes exception when deployed and run [closed]
I have a WinUI3 app that I am trying to use in an MVVM pattern.
I have a ViewModel that implements INotifyPropertyChanged. In that ViewModel I have a simple string property (TextBoxContent) that calls ...
0
votes
1
answer
65
views
How to change styles of a selected MenuItem in MAUI
I have a MAUI app that uses MenuItem instead of ShellContent in the AppShell.xaml.cs
There, I need to do a style change (Font: Bold) in the selected menu item.
Tried adding a custom style with a XAML ...
1
vote
1
answer
55
views
How to prevent the touch keyboard in Windows from opening for the Touch machines?
I am building a custom keyboard for my WinUI3 application for Touch machines. I couldn't prevent the default Touch Keyboard from opening when a textbox receives focus. I tried the following approach ...
1
vote
0
answers
74
views
.NET MAUI project – XAML IntelliSense and code-behind stopped working after upgrading to Visual Studio Insider
I recently updated to Visual Studio Insider (v18.0.11018.127) and uninstalled Visual Studio 2022.
After opening my existing .NET MAUI project, I noticed:
XAML elements are greyed out in the editor.
...
0
votes
0
answers
66
views
How do I properly remove the white bottom right corner of a ListView in WPF
So I have this scrollbar style to make the scrollbar look a bit better than the default one.
And when my ListView uses it, it looks great, until both scrollbars become visible, because then it starts ...
0
votes
0
answers
84
views
How do I create a custom MouseButtonEventArgs in WPF?
I need to pass additional data in a WPF mouse event, so I'm trying to create my own event args inheriting MouseButtonEventArgs. What's the correct way to subclass it? I can't get it working how I want ...
1
vote
2
answers
85
views
Grouping items in a WinUI 3 ComboBox control
I have tried grouping the items in the combobox like below
Fruits
Apple
Banana
Vegetables
Carrot
Brinjal
I have used collectionview source to created the grouped source like below
public ...
0
votes
0
answers
59
views
BindableProperty.CreateAttached() method raises Error on build
I'm pretty new to .NET
In .NET MAUI 9.0 I am creating an app based on a custom Layout extending the Grid class, which uses several BindingProperties that i have no issues with:
namespace krizanke_ux....
1
vote
1
answer
47
views
How can I hide the dates that are not part of the current month in the CalendarView control in WinUI 3?
I am using the CalendarView control in my WinUI 3 project. I want to hide the out-of-scope dates. I didn’t find any property for this. I can set the OutOfScopeForeground to match the calendar ...
1
vote
2
answers
142
views
WinUI 3 C# Create custom Button
I'm trying to create a custom button for a small icon but the button only show when i'm refreshing it in the xaml code or resizing window. Do you know how to make it show at the initiation of the ...
1
vote
2
answers
85
views
How to distinguish my own styles for light and dark theme
Currently, in my AvaloniaUI app, I have a AppStyles.axaml containing some hard-coded style definitions for a few of the StreamGeometry icons taken from https://avaloniaui.github.io/icons.html:
<...
0
votes
1
answer
133
views
Overlay Window with transparent click-through background
I want to create a companion app for a video game. Windows only. It's supposed to be always on top and act as an additional UI element. I want to do it w/ Avalonia.
so that means: no obvious window: ...
1
vote
2
answers
129
views
How to Enable Hot Reload in Visual Studio for WinUi 3 Development?
I have been developing a WinUI 3 application on Visual Studio but for every change in XAML reloading the application seems too much. I see the Hot Reload button and it working when i do changes from ...
2
votes
2
answers
99
views
SwapChainPanel does not receive KeyDown events
I am developing a WinUI 3 app in C#.
I am using a SwapChainPanel and I want to handle keyboard input (for example, the Delete key) using the KeyDown event.
However, the event never fires.
Here is a ...