Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8" ?>
<resources>
<!--
Base application theme for API 21+. This theme completely replaces
MyTheme from BOTH res/values/styles.xml on API 21+ devices.
-->
<style name="MyTheme" parent="MyTheme.Base">
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
public class SquareTransformation : ITransformation
{
public string Key => "SquareTransformation";
public IBitmap Transform(IBitmap source)
{
double sourceWidth = source.Width;
double sourceHeight = source.Height;
double desiredWidth = sourceWidth;
public static class Instantiator
{
static Dictionary<Type, Func<object>> compiledExpressions = new Dictionary<Type, Func<object>>();
static Dictionary<Tuple<Type, Type>, Func<object>> genericCompiledExpressions = new Dictionary<Tuple<Type, Type>, Func<object>>();
public static T CreateInstance<T>()
{
return (T)CreateInstance(typeof(T));
}
public interface INavigationItem<out T> where T : class, IViewModel
{
Type ViewModelType { get; set; }
object ViewModel { get; set; }
}
public interface INavigationService
{
void RegisterViewModels(System.Reflection.Assembly asm);
void Register(Type viewModelType, Type viewType);
Task PopAsync();
Task PopModalAsync();
Task PushAsync<T>(T viewModel) where T : class, IViewModel;
Task PushAsync<T>(Action<T> initialize = null) where T : class, IViewModel;
Task PushModalAsync<T>(Action<T> initialize = null) where T : class, IViewModel;