public PurposesPage() { purposeViewModel = new PurposesViewModel { PageColor = GeneralSettings.CustomColor, ContrastColor = GeneralSettings.ContrastColor, PagePadding = GeneralSettings.CustomPagePadding, GeneralVisualItemsSpacing = GeneralSettings.CustomVisualItemsSpacing, PurposesImageSource = "m2.jpg", MotivationItemText = PurposesFromDb.ReturnMotivationItemText(), PurposesCollection = PurposesFromDb.ReturnPurposesCollection() }; BindingContext = purposeViewModel; InitializeComponent(); }
private void RefreshPurposeListAction() { purposeViewModel.PurposesCollection = PurposesFromDb.ReturnPurposesCollection(); }