Set Android Location from Xamarin Dependancy Service Get link Facebook X Pinterest Email Other Apps December 20, 2017 var documentsPath = (Android.OS.Environment.GetExternalStoragePublicDirectory("Drive Files")); Get link Facebook X Pinterest Email Other Apps Comments
Drawer Navigation with Custom Side Menu — React Native June 13, 2019 ————————— Primary nav import React, { Component } from 'react'; import { AppRegistry, Dimensions } from 'react-native'; import { DrawerNavigator } from 'react-navigation'; import SideMenu from './SideMenu/SideMenu' import stackNav from './app/stacknav'; const drawernav = DrawerNavigator({ Item1: { screen: stackNav, } }, { contentComponent: SideMenu, drawerWidth: Dimensions.get('window').width - 120, }); AppRegistry.registerComponent('Demo', () => drawernav); ——————— SideMenu import PropTypes from 'prop-types'; import React, {Component} from 'react'; import styles from './SideMenu.style'; import {NavigationActions} from 'react-navigation'; import {ScrollView, Text, View} from 'react-native'; import { StackNavigator } from 'react-navigation'; class SideMenu extends Component { nav... Read more
Listview SelectedItem in MVVM August 12, 2019 Create Helper class named ListViewBehaviours ------------------------------- ListViewBehaviours.cs public class ListViewBehaviours : Behavior<ListView> { public static readonly BindableProperty CommandProperty = BindableProperty.Create( propertyName: "Command", returnType: typeof(ICommand), declaringType: typeof (ListViewBehaviours)); public ICommand Command { get { return (ICommand)GetValue(CommandProperty); } set { SetValue(CommandProperty, value); } } protected override void OnAttachedTo(ListView bindable) { base.OnAttachedTo(bindable); bindable.ItemSelected += Bindable_ItemSelected; bindable.BindingContextChanged += Bindable_BindingContextChanged; } private void Bindable_BindingContextChanged(object sender, EventArgs e) { var lv = sender as ListView; BindingContext = lv?.BindingContext; } private void Bindable_ItemSelected(object sender, SelectedItemChangedEv... Read more
Set iOS Path Location from Xamarin Dependancy Service December 21, 2017 var documents = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var directoryname = Path.Combine(documents, "myfolder"); Directory.CreateDirectory(directoryname); var FilePath = Path.Combine(directoryname, fileName); Read more
Comments
Post a Comment