FreshMvvm ExtensionsFreshMvvm makes developing Xamarin.Forms-apps easier, but creating a new Page and PageModel can be tiresome, when all the references has to be set up correctly, and in the correct folders. How to use
And thats it! ExamplesExample output QuotePage.xaml: <?xml version="1.0" encoding="utf-8" ?> <freshMvvm:FreshBaseContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:freshMvvm="clr-namespace:FreshMvvm;assembly=FreshMvvm" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:pageModels="clr-namespace:MyProject.PageModels;assembly=MyProject" mc:Ignorable="d" d:DataContext="{d:DesignInstance pageModels:QuotePageModel}" x:Class="MyProject.Pages.QuotePage"> </freshMvvm:FreshBaseContentPage> Example output QuotePage.xaml.cs: using FreshMvvm; namespace MyProject.Pages { public partial class QuotePage : FreshBaseContentPage { public QuotePage() { InitializeComponent(); } } } Example output QuotePageModel.cs: using FreshMvvm; namespace MyProject.PageModels { public class QuotePageModel : FreshBasePageModel { } } Issues?If you encounter any issues, have any feature requests or pull requests, please do not hesitate to submit them at my GitHub! Thanks
|