InsertPositionAdorner.xaml の相互作用ロジック
상속: System.Windows.Controls.UserControl
예제 #1
0
        public static InsertionAdorner Create(UIElement adornedElement, bool isBottom)
        {
            var control = new InsertPositionAdorner();

            control.SetValue(HorizontalAlignmentProperty, HorizontalAlignment.Stretch);
            control.SetValue(VerticalAlignmentProperty, isBottom ? VerticalAlignment.Bottom : VerticalAlignment.Top);

            return(new InsertionAdorner(adornedElement, control)
            {
                Control = control,
            });
        }
예제 #2
0
        public static InsertionAdorner Create(UIElement adornedElement, bool isBottom)
        {
            var control = new InsertPositionAdorner();
            control.SetValue(HorizontalAlignmentProperty, HorizontalAlignment.Stretch);
            control.SetValue(VerticalAlignmentProperty, isBottom ? VerticalAlignment.Bottom : VerticalAlignment.Top);

            return new InsertionAdorner(adornedElement, control)
            {
                Control = control,
            };
        }