GithubHelp home page GithubHelp logo

steffkelsey / xamarin_mvvmcross_materialdesign Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 228 KB

Example project for MvvmCross Full Fragging with goodness from Android Material Design

License: MIT License

C# 100.00%

xamarin_mvvmcross_materialdesign's People

Contributors

steffkelsey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pnavk

xamarin_mvvmcross_materialdesign's Issues

Use of viewmodels in fragments

There are some nice examples in here, but i noticed that MvxFragment class doesn't make use of viewmodels the correct way.

This should work:
public class SomeFragment : MvxFragment<SomeViewModel> {}

MIT license

Hey Steff,

Just to let you know, when you redistribute code that was licensed, especially code taken from MvvmCross which is licensed with the MIT license, you must keep those copyright and license headers and include the license.

If you need help with that please do tell.

InitFromBundle() only get hit once because ViewModels get cached

When using navigation paramaters to load ViewModels/Views the system won't work because it caches the first created ViewModel, so at the second run to the same View it uses the old ViewModel without looking at possibly new navigation parameters at InitFromBundle(IMvxBundle parameters).

Where does the magic happen with fragment ViewModels?

It works fine with API 19 and higher, but I'm converting it to API 15 and got it to work except for the automatic ViewModel loading that this solutions seems to have somewhere.... Where does the ViewModel instance come from (ie; the LoginViewModel), because it suddenly is created after Fragments base.OnCreate(savedInstanceState) ?

I can do it in "public override void Show(MvxViewModelRequest request)" like normal, but I realy want to know how its done at your end.

PS: I'm using a fork of the 3.5 MVVMCross.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.