示例#1
0
        private void Fly_Opened(object sender, object e)
        {
            Flyout           fly     = (Flyout)sender;
            EditLayerControl control = (EditLayerControl)fly.Content;

            control.Width = ActualWidth - 2;
        }
示例#2
0
        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);
        }