This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ReactiveToDoSample | |
{ | |
public class RxExceptionHandler : IObserver<Exception> | |
{ | |
public void OnNext(Exception ex) | |
{ | |
if (Debugger.IsAttached) | |
{ | |
Debugger.Break(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ReactiveToDoSample.ViewModels | |
{ | |
public abstract class ViewModelBase : ReactiveObject, IDisposable, INavigable | |
{ | |
protected ViewModelBase(IParameterViewStackService viewStackService) => NavigationService = viewStackService; | |
public abstract string Id { get; } | |
public virtual IObservable<Unit> WhenNavigatedFrom(INavigationParameter parameter) => Observable.Return(Unit.Default); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="DynamicDataGroupingSample.NotificationConfigurationsPage" | |
Title="Notification Settings"> | |
<CollectionView ItemsSource="{Binding NotificationGroups}" | |
IsGrouped="True"> | |
<CollectionView.GroupHeaderTemplate> | |
<DataTemplate> | |
<Label Padding="10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DynamicDataGroupingSample | |
{ | |
public class NotificationConfigurationViewModel : ReactiveObjectEx | |
{ | |
public NotificationConfigurationViewModel() | |
{ | |
... | |
var smsChannelChangedCommand = ReactiveCommand.CreateFromTask<NotificationConfiguration>(OnSmsChannelChanged); | |
var emailChannelChangedCommand = ReactiveCommand.CreateFromTask<NotificationConfiguration>(OnEmailChannelChanged); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using DynamicData; | |
using DynamicData.Binding; | |
using ReactiveUI; | |
namespace DynamicDataGroupingSample |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DynamicDataGroupingSample | |
{ | |
public class NotificationConfigurationViewModel : ReactiveObjectEx | |
{ | |
public NotificationConfigurationViewModel() | |
{ | |
_notificationConfigurationsSourceCache.AddOrUpdate(new List<NotificationConfiguration>() | |
{ | |
new NotificationConfiguration("Information", 0,"Development", 0,false, false, true, false), | |
new NotificationConfiguration("Status Changed", 1,"Administration", 1, false, true, false, false), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reactive.Disposables; | |
using ReactiveUI; | |
namespace DynamicDataGroupingSample | |
{ | |
public abstract class ReactiveObjectEx : ReactiveObject, IDisposable | |
{ | |
/// <summary> | |
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ReactiveUI; | |
namespace DynamicDataGroupingSample | |
{ | |
public class NotificationConfiguration : ReactiveObjectEx | |
{ | |
public NotificationConfiguration(string name, int order, string groupName, int groupOrder,bool smsChannel, bool emailChannel, bool pushNotificationChannel, bool phoneChannel) | |
{ | |
Name = name; | |
Order = order; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App | |
{ | |
public partial class ExtendedMap : Map | |
{ | |
public static readonly BindableProperty TappedCommandProperty = | |
BindableProperty.Create(nameof(TappedCommand), typeof(DelegateCommand<object>), typeof(ExtendedMap), default(DelegateCommand<object>)); | |
public DelegateCommand<object> TappedCommand | |
{ | |
get { return (DelegateCommand<object>)GetValue(TappedCommandProperty); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mBraintreeFragment = BraintreeFragment.NewInstance((AppCompatActivity)CrossCurrentActivity.Current.Activity, clientToken); |