275 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
23
views
In a Win UI 3 app, if the restore button is disabled and the app is minimized then reopened, the UI moves down. What could cause this?
I have two pages. The main page includes a button that navigates to the second page. When navigating, the second page should display in full window mode, and the restore button is disabled. However, ...
0
votes
1
answer
111
views
How to retain the pointer cursor on a custom button in a sub-classed / restyled TextBox?
I am sub-classing the TextBox control, and want to add another button in it which always appears, similarly to AutoSuggestBox. I followed how NumberBox and AutoSuggestBox are doing it, literally ...
3
votes
0
answers
191
views
TimeTrigger Background Task Fails to Launch in WinUI 3 Using CsWinRT COM Server
Problem summary
I’m trying to run an out-of-process WinUI 3 (.NET 9) background task using WindowsAppSDKBackgroundTask + COM/CsWinRT. Registration succeeds but the task’s Run is never invoked. Event ...
0
votes
0
answers
68
views
E_UNEXPECTED((8000FFFF) error while calling functions on a webview2 element
I have a windows app sdk application using reactiveUI. I'm creating a webview2 in the UI and passing the control to the element from the code behind to a manager class which sets the uri for the view.
...
1
vote
2
answers
66
views
How to remove focus from the <Run/> element in the automation tree in WIN UI3?
<TextBlock TextWrapping="Wrap"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Foreground="{ThemeResource TextColor}"&...
1
vote
1
answer
68
views
How to create a HyperlinkButton that includes an icon and supports text wrapping?
I have created a button that is working properly-
<HyperlinkButton Command="{Binding xyz}"
Padding="0"
x:Uid="xyzLink">
<...
0
votes
3
answers
237
views
How do I convert DevWinUI.Shortcut.Keys to VirtualKey values for use with RegisterHotKey?
I'm using DevWinUI's shortcut control but I'm confused on how to get the key and modifiers from it and then casting it to the proper types for RegisterHotKey.
The shortcut control returns public new ...
-1
votes
1
answer
61
views
Set content of button in WinUI 3 to a StackPanel
Hello people of Stack Overflow. Recently, I've been working on a project in WinUi3, and I haven't been able to find a way to set the content of a Button to a StackPanel.
In WPF you could just do:
...
1
vote
0
answers
103
views
Unable to deploy or run Microsoft Push Notifications sample
I'm trying to run the Microsoft Push Notifications sample taken from here client to explore this capability on a Windows app. My setup composed of Azure Notification server, remote app to trigger the ...
0
votes
0
answers
82
views
WinUI ItemsRepeater weird behavior
I'm using the header of the listview to filter item inside it.
What I'd want, would be, to have the TextBox Collapsed by default and on PointerReleased on the TextBlock to put it Visible.
When ...
1
vote
1
answer
120
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 ...
1
vote
1
answer
57
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 ...
3
votes
1
answer
83
views
Is it possible to remove the opening and closing animations of a content dialog in WinUI 3?
I am working on a winui3 app where I wanted to remove the opening and closing animations of a Content Dialog. I tried removing the visual transactions but the animations still exists. Am I doing the ...
1
vote
1
answer
88
views
How to highlight part of the text with background color while preserving text wrapping in WinUI 3?
I am working on a WinUI 3 application and need to display a line of text where only a portion of the text has a colored background (like a highlight). The requirement is:
The text should wrap exactly ...
4
votes
1
answer
163
views
WinUI 3 DataTemplateSelector always crashed when using AOT
// English is not my native language; please excuse typing errors.
WinUi3 dotNet8.0 Win11(22631.4317) VisualStudio Enterprise 2022 17.14.0
First, I use a DataTemplateSelector in a ListView
<...