3,099 questions
1
vote
1
answer
97
views
Which is the default fallback font used when FontFamily is invalid?
I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, ...
-1
votes
2
answers
79
views
How to initialize control from OnLaunched in C++/WinRT UWP app?
In Visual Studio I compiled the blank C++/WinRT UWP app which displays a button that says "Click me" and "Clicked" after it is clicked. As an experiment to learn how to initialize ...
0
votes
0
answers
12
views
How to bind to a nullable enum when target Windows 10 version 1809 or later in a UWP?
In a UWP project that targets Windows 10 version 1803, I can do the following:
<ComboBox
ItemsSource="{x:Bind ViewModel.MyEnums}"
SelectedItem={x:Bind ViewModel.MySelectedEnum,...
0
votes
1
answer
49
views
UWP performance issue in remote desktop when using ListView. But this issue does not happen when using ScrollViewer
On remote desktop, the following code causes the list items to appear grey for a few seconds while scrolling.
<ListView Margin="10" ItemsSource="{Binding Items}" ></...
0
votes
0
answers
31
views
Create a PopUp with dynamic pointer and content in UWP
I want to create a popup in UWP,
It can be clicked anywhere from a canvas
It should be with a triangle pointer
The main popup can be moved dynamically but pointer should always point in the clicked ...
3
votes
1
answer
757
views
Visual Studio 2022 XAML Designer for UWP App Not Working
While attempting to follow the instructions on Microsoft's Learn Page linked here:
https://learn.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-uwp?view=vs-2022
I'm unable to get the ...
0
votes
1
answer
103
views
Setting NavigationCacheMode on page causes System.StackOverflowException with CallWindowProc
When I set NavigationCacheMode to "Enabled" or "Required" on a page, I get a System.StackOverflowException from CallWindowProc when navigating to a page, then back.
In my app, I ...
0
votes
2
answers
110
views
How to obtain x:Load notification
The page on x:Load says that when the deferred element is loaded, “If you have registered to receive property change notifications on the property containing the deferred element(s), the notification ...
1
vote
0
answers
46
views
How to Resolve SQLite Network Path Access Issues in UWP Applications
How to access a network file in UWP? Despite enabling the required capabilities, we are still unable to access the SQLite file located on a network path. The SQLite file is being used for reading and ...
2
votes
1
answer
363
views
How to specify a nested class for x:DataType in a DataTemplate?
When I try to use x:DataType in a DataTemplate to specify the nested class, I get an error.
I have a nested class structure in C#, as shown below:
namespace sample
{
public class MainData
{
...
1
vote
1
answer
533
views
How to implement virtualization in a WinUI 3 ListView using IncrementalLoadingCollection?
I am working with WinUI 3 in C# and trying to enable virtualization in a ListView so that only the necessary items are displayed. I want to use the IncrementalLoadingCollection from the Windows ...
0
votes
0
answers
53
views
[UWP]: Combo box collapses when trying to select option first time only
I am using a ComboBox that has 2 options in its dropdown. When user opens the UWP app, the default option is first option in combo box. When user tries to click on combo box to selected option 2, the ...
1
vote
1
answer
633
views
How to Move/drag a WinUI 3 Window with no title bar
I want to have a winUI 3 Window with no title bar and draggable from his entire client area.
Like I used to do in Winforms and WPF, I tried using a win32 call (the "sendMeaasge") (see code ...
1
vote
1
answer
70
views
How to remove automatic focus change in UWP
I am implementing a user control which has a grid which again contains a grid (lets say sampleGridItem) with button, textblock etc. sampleGridItem is populated with a list in code behind. My goal is ...
0
votes
0
answers
110
views
Microsoft App Store is rejecting build with error code 1201
I am working on an UWP app. I am facing issue while making a release submission to Microsoft App store. App Store rejects the submission by mentioning error code 1201.
The same app is already in the ...