C# 클래스 PoshCode.Controls.ThumbnailImage

======================================== .NET Framework 3.0 Custom Control ======================================== Follow steps 1a or 1b and then 2 to use this custom control in a XAML file. Step 1a) Using this custom control in a XAML file that exists in the current project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:Thumbnailer" Step 1b) Using this custom control in a XAML file that exists in a different project. Add this XmlNamespace attribute to the root element of the markup file where it is to be used: xmlns:MyNamespace="clr-namespace:Thumbnailer;assembly=Thumbnailer" You will also need to add a project reference from the project where the XAML file lives to this project and Rebuild to avoid compilation errors: Right click on the target project in the Solution Explorer and "Add Reference"->"Projects"->[Browse to and select this project] Step 2) Go ahead and use your control in the XAML file. Note that Intellisense in the XML editor does not currently work on custom controls and its child elements.
상속: System.Windows.Controls.Image, IDisposable
파일 보기 프로젝트 열기: Jaykul/PoshConsole

공개 프로퍼티들

프로퍼티 타입 설명
ClientAreaOnlyProperty System.Windows.DependencyProperty
WindowSourceProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
Dispose ( ) : void
ThumbnailImage ( IntPtr source ) : System

Initializes a new instance of the ThumbnailImage class.

보호된 메소드들

메소드 설명
ArrangeOverride ( Size arrangeSize ) : Size

Positions elements and determines a size for the ThumbnailImage

Dispose ( bool disposing ) : void
MeasureOverride ( Size constraint ) : Size

Measures the size in layout required for child elements and determines a size for the Image.

비공개 메소드들

메소드 설명
InitialiseThumbnail ( IntPtr source ) : void

Initialises the thumbnail image

OnClientAreaOnlyChanged ( DependencyObject depObj, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnWindowSourceChanged ( DependencyObject depObj, System.Windows.DependencyPropertyChangedEventArgs args ) : void
ReleaseThumbnail ( ) : void

Releases the thumbnail

ThumbnailImage ( ) : System

Initializes the ThumbnailImage class.

Thumbnail_LayoutUpdated ( object sender, EventArgs e ) : void

Handles the LayoutUpdated event of the Thumbnail image Actually, we really just ask Windows to paint us at our new size...

Thumbnail_Unloaded ( object sender, RoutedEventArgs e ) : void

Handles the Unloaded event of the Thumbnail control.

UpdateThumbnail ( ) : void

Updates the thumbnail

메소드 상세

ArrangeOverride() 보호된 메소드

Positions elements and determines a size for the ThumbnailImage
protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size The final area within the parent that this element should use to arrange itself and its children.
리턴 System.Windows.Size

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

MeasureOverride() 보호된 메소드

Measures the size in layout required for child elements and determines a size for the Image.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size The available size that this element can give to child elements. /// Infinity can be specified as a value to indicate that the element will size to whatever content is available.
리턴 System.Windows.Size

ThumbnailImage() 공개 메소드

Initializes a new instance of the ThumbnailImage class.
public ThumbnailImage ( IntPtr source ) : System
source System.IntPtr
리턴 System

프로퍼티 상세

ClientAreaOnlyProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ClientAreaOnlyProperty
리턴 System.Windows.DependencyProperty

WindowSourceProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows WindowSourceProperty
리턴 System.Windows.DependencyProperty