Questions tagged [template10]

Template 10 is a set of Visual Studio project templates intended for Windows 10 UWP XAML apps written in C#.

Template 10 is a set of Visual Studio project templates. They are intended to boost developer productivity by getting ~80% of the boilerplate stuff delivered in the template - things like navigation, suspension, and even a Hamburger control.

Template 10 is intended for Windows apps written in C#. You can install Template 10 by searching for "Template 10" in the Visual Studio 2015 Extension Manager. Once installed, Template 10 templates will show up in the New Project dialog.

More info can be found at the official GitHub repository.

297 questions
3
votes
1 answer

UWP Image Assets not visible at runtime

I have some image resources in my UWP app which I display via data binding in XAML. During the debugging process everything works fine and the images are visible. The problem is once I submit the app package to the store and install it from there -…
nor0x
  • 1,213
  • 1
  • 15
  • 41
3
votes
1 answer

UWP Template 10 create a dynamic hamburgermenu

I'm pretty noob with UWP stuff. I'm trying to create dynamic hamburger menu. I was able to create PrimaryButtons element, and binding it in XAML worked as espected: var loginButton = new HamburgerButtonInfo(); loginButton.ClearHistory =…
thepasto
  • 37
  • 2
  • 8
3
votes
1 answer

Template10: AppBarButton: Content with TextBox is not allowing user to input space

I am getting a weird issue with the template10 (https://github.com/Windows-XAML/Template10) when I am trying to put a TextBox in the AppBarButton element the space key is not working (when you press the space key nothing happens you need to wait 3/4…
Damien
  • 2,911
  • 1
  • 25
  • 47
3
votes
1 answer

UWP C#/XAML: System.ArgumentException (Out of expected range)

I'm working on a Universal Windows Platform (UWP) app, and have run into a perplexing (And slightly annoying issue). When I navigate from the MainPage to EventDetailPage, a System.ArgumentException. It's indicating that the data bound object…
TheMoonbeam
  • 519
  • 1
  • 5
  • 15
2
votes
1 answer

Getting a Windows.UI.Xaml.UnhandledExceptionEventArgs on x:Bind to a textbox

I'm working on a simple UWP app. I want to make it possible for the user to enter some monetary value, in this case an hourly rate. The data type is decimal. Here's the property from the viewmodel: private decimal hourly; public decimal Hourly { get…
Rod
  • 4,107
  • 12
  • 57
  • 81
2
votes
1 answer

What should the value of Windows.Current.Content be after opening a secondary window?

This is the suggested code in the App class from the Template10 article on implementing a shell: public override Task OnInitializeAsync(IActivatedEventArgs args) { var nav = NavigationServiceFactory(BackButton.Attach, ExistingContent.Include); …
user1725145
  • 3,993
  • 2
  • 37
  • 58
2
votes
2 answers

Using multiple views with Template10 without always showing the Main Page?

I am new to T10 and trying to learn it. This is a follow-up to Template 10 Multiple Windows In 'regular' (meaning non-Template10) UWP app I've learned to do something like this (as a short example) in order to support multiple views: public App() {…
Frank Monroe
  • 1,557
  • 2
  • 13
  • 20
2
votes
1 answer

Navigate between frames using Template 10 MVVM

In a UWP app using Template 10 we have an Admin page. The Admin page has 2 pages within a frame, AdminSettings1 and AdminSettings2. We wish to navigate between AdminSettings1 and AdminSettings2 in the frame, however we find we get to the target…
Vague
  • 2,198
  • 3
  • 18
  • 46
2
votes
1 answer

Template10 ModalDialog xaml error - Cannot create an abstract class

I have a UWP application based on the Template10 hamburger template. I added the following modal dialog.
Connell.O'Donnell
  • 3,603
  • 11
  • 27
  • 61
2
votes
2 answers

UWP navigation (Template10), Pivot control, multiple frames

I'm trying to implement the following style of navigation in my UWP app (using Template10) but am struggling how to use the multiple frames as independent history stacks. Within each frame of the pivot, I'd want to have an independent frame that…
Darshan
  • 149
  • 2
  • 11
2
votes
1 answer

Create shell with different control than hamburger menu

I tried to create shell with Page.BottomAppBar. The result is the bar is visible but content of the MainPage is not, only black screen is shown. public override Task OnInitializeAsync(IActivatedEventArgs args) { Window.Current.Content =…
matthew6870
  • 33
  • 1
  • 5
2
votes
0 answers

Binding not updated when using IOC

I've never used IOC in any of my apps, and today I decided to learn how to use it but I'm having some issues with bindings. What happens is that bound values are updated as soon as the page shows, but changing some of them later doesn't reflect to…
StepTNT
  • 3,867
  • 7
  • 41
  • 82
2
votes
3 answers

Template10 NavigationService is null

This is my App.xaml.cs [Bindable] sealed partial class App : Template10.Common.BootStrapper { public App() { InitializeComponent(); SplashFactory = (e) => new Views.Splash(e); var _settings =…
frenk91
  • 919
  • 1
  • 15
  • 30
2
votes
2 answers

Template 10: Hide HamBurgerMenu if no internet

I am devloping an uwp app in which if there is no internet then the user is shown an error no internet connection at start.So I checked for internet connection if not then i did this in my App.xaml.: public override async Task…
uwp
  • 107
  • 7
2
votes
0 answers

Navigating to XAML View causes "The parameter is incorrect" error

In my App.xaml.cs file, I am able to navigate to the view in question without error. public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args) { NavigationService.Navigate(typeof(Views.LogItemSearchPage)); …
Terrence
  • 2,732
  • 2
  • 18
  • 12
1 2
3
19 20