719 questions
1
vote
1
answer
76
views
Removing the strikethrough line in CalendarView in WinUI
I am implementing a custom control based on CalendarView and have an undesired strikethrough line going through today, like this:
My CalendarViewDayItemStyle is defined as following:
<CalendarView....
0
votes
1
answer
84
views
Object Disposed Exception When Adding/Removing From Observable Collection
I am getting an ObjectDisposed Exception when adding and removing items from an Observable Collection.
Adding
If I add one new item to the collection it works fine, but if I try to add a second in the ...
0
votes
2
answers
131
views
DataTable.Compute() raising an exception in C# WinUI
I am creating a simple calculator app in WinUI with C#. I am using the Compute method in DataTable to solve the arithmetic problem. AnswerBox is a label where numbers and operators are appended, and ...
0
votes
1
answer
85
views
Why does my View still bind successfully to my ViewModel even without explicit DataContext
I'm writing an MVVM application in WinUI3, and I've run into behaviour which I don't understand. Currently my main view hosts a NavigationView control. This control contains a Frame control, who's ...
-1
votes
1
answer
152
views
Is it possible to use OxyPlot with Uno Platform? [closed]
I am trying to transfer a UWP project to Uno Platform. I want to run the app on Linux later and I am using VS22. The project uses OxyPlot to plot some charts and I am having problems to integrate ...
1
vote
1
answer
90
views
Is it possible to ensure that resources can be resolved at compile-time in UWP?
I'm implementing string localisation in a WinUI3 app as documented here on MS Learn (wayback machine).
I noticed that giving an element an invalid x:Uid causes the lookup to quietly fail, and as such, ...
0
votes
0
answers
97
views
Having the child's scroll view take precedence over the parent's when mouse is over the child
(I don't think this is a dup of WinUI 3 ListView (or ScrollView) inside a ScrollView)
If there are controls with scroll views (e.g. ListView) in another control with a scroll view (e.g., ItemsView), ...
1
vote
1
answer
86
views
Underline for NavigationViewItems in horizontal mode too small
I am using a NavigationView in a WinUI desktop app in a Widows 10 machine. The selected underline i from the NavigationView should cover the whole text, but it doesn't. Is this a design bug, or is ...
0
votes
1
answer
258
views
ItemsView: How to disable each item's hover effect?
I have implemented a ItemsView according to the descriptions in the WinUI 3 Gallery app.
How do I disable the hover effect that occurs when mouse over each item (item becomes darker)?
Thanks
1
vote
0
answers
31
views
Build Failure: Missing 'icon.png' in LiveChartsCore.SkiaSharpView.WinUI during WinUI Project Packaging
I'm working on a small hobby project. I was trying to package a WinUI application witch uses LiveCharts. However I'm getting an error when packaging the application.
Anyone who has experienced ...
0
votes
0
answers
47
views
WinUI, updating the main thread from two different parts of the application sometimes causes the application to freeze
Is there a pattern or technique to handle multiple calls to update the UI thread at the same time?
Let me explain my issue.
I have a WinUI (.net 7.0) application. I understand that the UI has a main ...
2
votes
1
answer
219
views
Embedd an existing WinForms Application into WinUI 3 Application
I wonder if it‘s somehow possible to embedd a classic WinForms Application inside a WinUI 3 Application, Like it was possible with WinFormsHost in a WPF Application?
The goal is to open WinForms ...
0
votes
1
answer
57
views
Dynamically formatting input text to a TextBlock from a string using various delimiters
I want to parse an input string and bold/italicize/underline the portions of the text encapsulated within certain characters.
Ex: I have had a _really_ *bad day*.
In this case, "really" ...
1
vote
3
answers
2k
views
How to display a ContentDialog in WinUI 3 (MVVM)
Basically what my problem is: I'm trying to display a ContentDialog in my WinUI 3 App.
The command to open the Dialog is triggered by a ContextMenu Button on my "Main Page" (LibraryPage)
The ...
0
votes
2
answers
812
views
How can I set the background color of the whole Expander WinUI3 control?
I want to set the background color of the control Expander in my WinUI3 app.
By setting the background property to a certain color only the color of expanded panel will be set.
<Grid Background=&...
0
votes
1
answer
262
views
WinUI3 CommunityToolkit MVVM Messenger calling on disposed objects?
I am using the WeakReferenceMessenger in CommunityToolkit.MVVM in my WinUI3.
It is my understanding that by using the WeakReferenceMessager I do not need to worry about the recipient object's lifetime....
0
votes
1
answer
67
views
ScrollViewer does not adjust accordingly to image scaling
I'm working on a document viewer for a WinUI application.
In general it works, except that the scroll viewer height does not change.
So when zooming in the image, the scroll viewer does not change and ...
0
votes
2
answers
279
views
WINUI3 Packaged App: Copy folders/files during installation locally
I have the following problem. I have a packages winui program which should open a CANoe config when a button is pressed. Behind this CANoe config there are other SubFolder/Files which are also needed.
...
0
votes
1
answer
165
views
How can we get the Microsoft.UI.Xaml.Controls.Primitives.ScrollBar in a .NET MAUI WinUI platform
In our .NET MAUI application, we aim to determine if the Microsoft.UI.Xaml.Controls.Primitives.ScrollBar was pressed in WinUI platform. We've attempted to retrieve it by wiring PointerPressed and ...
2
votes
2
answers
735
views
WINUI 3 apply font to all controls
I want to change font in my WinUI 3 application. Just everywhere. I found a few answers here on SO, but they all seem to apply font to target like TextBlock, Button etc. The app I'm about to style has ...
0
votes
1
answer
322
views
How to access XamlRoot from a non-UI thread?
I am making a WASDK WinUI 3 app.
In my App.xaml.cs, I have this:
public static XamlRoot AppXamlRoot { get; set; }
Then, on my main window, I've got this:
private void MainGrid_Loaded(object sender, ...
0
votes
1
answer
745
views
How to log to EventViewer with WINUI?
How am i supposed to Log to the Windows EventViewer in a WinUI3 App? I was not able to find a working example.
Current Situation:
In every .NET Framework app i used System.Diagnostics.EventLog
to ...
0
votes
1
answer
69
views
WinUI 2 - Tabview hides Mics
I'm trying to create a tabview in my UWP app which has the 'mica' effect. What I'm looking for is something similar to the image I attached from the Files app.
Here is my current code:
<Page
x:...
2
votes
2
answers
510
views
Is there a function that can restart a WinUI app?
I'm developing a WinUI3 based app and I need to restart the app to apply some settings. But I can't find a function to do that. I noticed that there is a method--CoreApplication.RequestRestartAsync. ...
1
vote
1
answer
259
views
In WinUI3, how can I put a TeachingTip in a ContentDialog?
The code below does not show a teaching tip-does anyone know how to make one show?
<Window
x:Class="WinUI3App.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/...