Skip to content

Instantly share code, notes, and snippets.

@vwart
vwart / exampleDialog.ts
Created May 23, 2018 14:25
Optional ChoicePrompts with Bot Framework
import {Library, IPromptChoiceResult, Prompts, ListStyle, IDialogResult, IntentRecognizer, IRecognizeContext, IIntentRecognizerResult} from "botbuilder";
// how to use the extended prompt:
const lib = new Library("ending");
lib
.dialog("example", [
(session, args) => {
session.sendTyping();
const choiceOpt: CustomChoiceOptions = {
@vwart
vwart / Example.cs
Last active March 14, 2017 23:49
This can be used to re-layout a Grid with star (*) rows within a ScrollView. For Xamarin Forms
//usage:
// ContactGrid is the x:Name of the Grid within the ScrollView
protected override void OnAppearing()
{
base.OnAppearing();
ContactGrid.LayoutStars(((float)App.INSTANCE.Resources["PageHeight"]));
}
//In your MainActivity: