private void TriggerOpenFlyout(Dog obj) { FlyoutParameters flyoutParameters = new FlyoutParameters(); flyoutParameters["dog"] = obj; _flyoutManager.OpenFlyout("EditDogFlyout", flyoutParameters); }
protected override void OnOpening(FlyoutParameters flyoutParameters) { // Because FlyoutParameters provides weakly-typed objects we need to cast the provided "dog" parameter as a Dog type Dog = flyoutParameters["dog"] as Dog; // We can set the Flyout name based on information passed via flyoutParameters Header = "Editing " + Dog.Name; // As well as setting the position if (Dog.Name == "Patch") { Position = FlyoutPosition.Left; } else { Position = FlyoutPosition.Right; } // And any other property you like. See the full list in the code wiki at flyoutmanager.codeplex.com }