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
2
votes
1 answer

Deserialization of JSON Object to ObservableCollection and binding it to a GridView Or ListView in a MVVM (Template 10) On App Lauch

I am a newbie to MVVM for UWP, I am in a bit of a quagmire, I want to bind a Deserialized JSON Object to a GridView or ListView but I am faced with this scenario. When I start the App the Deserialization runs and but the GridView is empty, In order…
Onotseike
  • 97
  • 11
2
votes
2 answers

Template10 ZXing Frames and Navigation

I've started using Template10 and are trying to put a ZXing Barcode scanner in the application. But I'm having some issues with the way ZXing and Template10 works togehter. When I initiate the ZXing scanner it seems to write over all current frames…
Startail
  • 67
  • 7
2
votes
0 answers

Entity Framework and Template 10 - Object reference not set to an instance of an object

I am trying to get the tutorial on https://docs.efproject.net/en/latest/platforms/uwp/getting-started.html working using a Template 10 blank app template but the migration fails when I try Add-Migration MyFirstMigration and get the error Object…
Andres Z.
  • 36
  • 6
2
votes
2 answers

(UWP) Using ESC Key to Close ModalDialog

I'm displaying ModalDialog using sample code Busy.xaml in Template10 : public static void SetBusy(bool busy, string text = null) { WindowWrapper.Current().Dispatcher.Dispatch(() => { var modal =…
Ask Too Much
  • 627
  • 4
  • 19
2
votes
1 answer

UWP App with Grid View Losing Images when scrolling

Rather new to UWP and XAML and I'm not sure how to debug this. I have a UWP app based on the Template10 Hamburger template and the Template10 incremental loading sample, plus some bits from a sample photo viewer (Windows 8: Making a Simple Photo…
SheriSteeves
  • 55
  • 1
  • 7
2
votes
2 answers

Hamburger Template: change default colors on Hamburger menu and pageheader, etc

I'm an newbie when it comes to using Template 10. I'm building an app using the Hamburger template and I'm struggling with changing the default colors. Below is what I find in the standard Custom.xaml file:
2
votes
1 answer

Template 10:Hamburger Basic UI

I am developing a UWP app and I would like to make it look like the ms news app so just like in the news app when I click the Hamburger button it should not shift the title of the page to its right side rather it should do nothing to the title …
2
votes
0 answers

Changing Template10 Header Height

I have a Template10 UWP application that I am developing, and for the most part everything is coming together nicely. However, I am a little stumped about the behavior of the PageHeader control when an AppBarButton has a Label set. As you can see in…
dub stylee
  • 3,252
  • 5
  • 38
  • 59
2
votes
1 answer

Using DesignTime data with Template10

I would like to show design time data in Blend. I am using Template10 (from Hamburger base project) and I can't see design time data. From this base project, I would like some help to display the design time data for the variable named…
Samuel LIOULT
  • 594
  • 5
  • 21
2
votes
2 answers

Modify HamburgerButtonVisibility property from different views

I'm using the fantastic Template10 for my Universal App and MVVM.. What I'm trying to do is to hide and show the hamburger button declared in the Shell.xaml file from a different view. The ideal solution would be something like.. If I don't say…
Mirko Bellabarba
  • 562
  • 2
  • 13
2
votes
1 answer

how to put a seperate view inside a splitview in template 10?

basically I want this splitview from MainPageView to load the departmentView which contains its own ViewModel that has an Observablecollection
jhon alino
  • 85
  • 1
  • 9
2
votes
2 answers

Binding to Template10 Settings from Main Page

I am loving Template10 so far, very nice. I am a little stuck though on how to bind to a Setting value on the Main Page. I have added a new bool setting which is storing properly. On my main page I have a Visibility binding to the…
BGTurner
  • 307
  • 3
  • 9
2
votes
1 answer

Template10 - return user to the main page after resuming

Let's assume that my UWP app gets suspended and it is not used for a long time. When a user opens the app again (previous ApplicationExecutionState is Suspended or Terminated), I don't want the user to be navigated to the page he/she was viewing…
Jan Kalfus
  • 5,422
  • 2
  • 30
  • 38
2
votes
1 answer

How to show a Modal Dialog and Cancel Navigation in OnNavigatingFromAsync

When using Template 10 you are given the opportunity to have a page's ViewModel cancel navigating away from the page by overriding the INavigable method OnNavigatingFromAsync and setting args.Cancel to true, like so: public override Task…
flyte
  • 1,242
  • 11
  • 18
2
votes
1 answer

Visual State name in ViewModel Best Practice

I'm new to Windows Universal app programming. Decided to use Tmeplate10 to create my first app. I would like to know what is best practice to get Current Visual state name in View Model. In code behind XAML I have been using: VisualState vs =…