C# 클래스 Microsoft.Windows.Controls.Ribbon.RibbonDropDownHelper

A static class which defines various helper methods for DropDown Resizing in Ribbon controls.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 메소드들

메소드 설명
ClearLocalValues ( FrameworkElement itemsPresenter, System.Windows.Controls.Primitives.Popup popup ) : void
GetMinDropDownSize ( RibbonMenuItemsPanel itemsHost, System.Windows.Controls.Primitives.Popup popup, System.Windows.Thickness borderThickness ) : Size
GetScreenBounds ( FrameworkElement targetElement, System.Windows.Controls.Primitives.Popup popup ) : Rect

Cache the screen bounds of the monitor in which the targetElement is rendered.

OnPopupResizeStarted ( FrameworkElement itemsPresenter ) : void
ResizePopup ( FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, bool isDropDownPositionedLeft, bool isDropDownPositionedAbove, Rect screenBounds, UIElement popupRoot, double horizontalDelta, double verticalDelta ) : bool

비공개 메소드들

메소드 설명
ResizePopupActual ( FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, double newWidth, double newHeight ) : bool

메소드 상세

ClearLocalValues() 공개 정적인 메소드

public static ClearLocalValues ( FrameworkElement itemsPresenter, System.Windows.Controls.Primitives.Popup popup ) : void
itemsPresenter System.Windows.FrameworkElement
popup System.Windows.Controls.Primitives.Popup
리턴 void

GetMinDropDownSize() 공개 정적인 메소드

public static GetMinDropDownSize ( RibbonMenuItemsPanel itemsHost, System.Windows.Controls.Primitives.Popup popup, System.Windows.Thickness borderThickness ) : Size
itemsHost Microsoft.Windows.Controls.Ribbon.Primitives.RibbonMenuItemsPanel
popup System.Windows.Controls.Primitives.Popup
borderThickness System.Windows.Thickness
리턴 System.Windows.Size

GetScreenBounds() 공개 정적인 메소드

Cache the screen bounds of the monitor in which the targetElement is rendered.
public static GetScreenBounds ( FrameworkElement targetElement, System.Windows.Controls.Primitives.Popup popup ) : Rect
targetElement System.Windows.FrameworkElement
popup System.Windows.Controls.Primitives.Popup
리턴 System.Windows.Rect

OnPopupResizeStarted() 공개 정적인 메소드

public static OnPopupResizeStarted ( FrameworkElement itemsPresenter ) : void
itemsPresenter System.Windows.FrameworkElement
리턴 void

ResizePopup() 공개 정적인 메소드

public static ResizePopup ( FrameworkElement itemsPresenter, Size minDropDownSize, bool canUserResizeHorizontally, bool canUserResizeVertically, bool isDropDownPositionedLeft, bool isDropDownPositionedAbove, Rect screenBounds, UIElement popupRoot, double horizontalDelta, double verticalDelta ) : bool
itemsPresenter System.Windows.FrameworkElement
minDropDownSize System.Windows.Size
canUserResizeHorizontally bool
canUserResizeVertically bool
isDropDownPositionedLeft bool
isDropDownPositionedAbove bool
screenBounds System.Windows.Rect
popupRoot UIElement
horizontalDelta double
verticalDelta double
리턴 bool