private void Fly_Opened(object sender, object e) { Flyout fly = (Flyout)sender; EditLayerControl control = (EditLayerControl)fly.Content; control.Width = ActualWidth - 2; }
public void ShowLayerPropertyFlyout() { EditLayerControl editControl = new EditLayerControl(); editControl.Initialize(Layer); Flyout fly = new Flyout(); fly.Content = editControl; fly.Opened += Fly_Opened; fly.Placement = FlyoutPlacementMode.Left; fly.ShowAt(this); }