Questions tagged [windows-template-studio]
49 questions
0
votes
1 answer
Bind TokenizingTextBox.TokenItem to a ViewModel Observable Property (TemplateStudio for WinUI)
I have a ViewModel with an observable property in it
[ObservableProperty]
private IList _selectedTokens;
this property has been initialized as follows:
_selectedTokens = new List();
_selectedTokens.Add(@"Z:\Exchange");
This…

Max Zaikin
- 65
- 9
0
votes
1 answer
How to retrieve main window handle in WinUI3 app with multiple Views generated by Template studio
How to retrieve the main window handle in WinUI3 app with multiple Views generated by Template studio?
The problem is that when you using multiple views and you would like to invoke some extra dialogs like Save As you are required to provide a main…

Max Zaikin
- 65
- 9
0
votes
2 answers
UI freezing despite ObservableCollection being updated
could you please help me to understand how to resolve issue of the UI being slow responsive while updating ObservableCollection. The problem is that I'm processing 50K lines file and all works very well untill I start adding these items to the…

Max Zaikin
- 65
- 9
0
votes
1 answer
Odd dependency injection behavior with Views & ViewModels using Template Studio for WinUI
Using Template Studio for WinUI, I created an app with 2 pages, Main and Foo. If the view model is passed into the page's constructor the application generates an exception, but if the view model is grabbed using App.GetService(); where…

JasonC
- 139
- 8
0
votes
1 answer
TemplateStudio WinUI 3 Horizontal Navbar
I scaffolded a project with Template Studio for WinUI (C#). During options selection I could not choose horizontal navigation pane. There is vertical navigation pane and horizontal menu bar. I don't need something so complicated like menu bar. I…

Mihai Socaciu
- 155
- 2
- 12
0
votes
1 answer
How can i save my app state on closing the application with WinUI 3
public partial class MainViewModel : ObservableObject, INavigationAware
{
public async void OnNavigatedTo(object parameter)
{
await RestoreStateAsync();
}
public async void OnNavigatedFrom()
{
await…

jack
- 7
- 2
0
votes
1 answer
C# WinUI TemplateStudio: how to prevent navigation during elaboration
In my app (C# + WinUI + Template Studio), I have an elaboration page and a left side Navigation Menu Items.
During the elaboration, I don't want that user can navigate to other pages.
What is the correct method to prevent this ?
I cannot find any…

PIGRECO
- 3
- 1
0
votes
1 answer
Windows Template Studio WPF Navigation
I have a simple WPF app (code-behind) and would like to navigate from one view to another in code-behind.
In UWP, I could do this
NavigationService.Navigate(typeof(destinationView), "myParam");
since the NavigationService was a public static…

cdt
- 5
- 3
0
votes
1 answer
How do I customize the Window Titlebar in a Windows App SDK (WIN UI/Project Reunion) Project?
I'm trying to build an app using the new Widows App SDK. I used the Windows Community Toolkit to create the application.
After consulting the documentation, I tried this:
On the first page that my app displays, I created a Textblock:

Matt
- 145
- 1
- 13
0
votes
0 answers
Why do I now get a "Method Not Found" in Windows.UI.Xaml error when running my project?
After doing a side-by-side installation of Visual Studio 2022 RC, I now get the following error in a project that ran fine before the install.The namespaces in the XAML page and codebehind seem to match. I have made sure that the targeted Windows…

Matt
- 145
- 1
- 13
0
votes
0 answers
Import and export Excel in visual studio 2019. WPF (NET Core) and MVVM
I am totally newbie and trying to make an application that can handle an Excel spreadsheet. I am making it in Visual Studio 2019. It is a WPF application (.NET Core) using MVVM model (I used a template from Windows Template Studio). The idea is to…

LZDEV
- 1
- 1
0
votes
1 answer
UWP ButtonColumn MvvmLight / Telerik / WindowsTemplate Studio
I´m trying to add a ButtonColumn to a TelerikDataGrid which was generated by the Windows Template Studio, without CodeBehind.
In a perfect world it would work like this, I think.
…

Keke
- 47
- 7
0
votes
1 answer
Using UWP created in Windows Template Studio into the Uno Platform
I am asking about the procedure of using the existing UWP app ant then include into the Uno Platform ?
Is it possible to create UWP in Windows Template Studio, or in Syncfusion, and than use the code into the Uno Platform?
Thanks!
0
votes
1 answer
Navigate to page in ShellPage.xaml.cs caused exception
I'm using WindowsTemplateStudio, In ShellPage.xaml.cs, I want to detect if the user changed network, app navigate to a specified page.
So I used
Microsoft.Toolkit.Uwp.Connectivity.NetworkHelper.Instance.NetworkChanged +=…

Vincent
- 3,124
- 3
- 21
- 40
0
votes
1 answer
How can I initialize ShellView from other Page (Windows Template Studio)
Windows Template Studio: reference link
I created a project with Navigation Pane Type and Prism Pattern , I have Settings, and some pages
Here is the App.xaml.cs:
[Windows.UI.Xaml.Data.Bindable]
public sealed partial class App :…

NicoTing
- 83
- 8