C# 클래스 FirstFloor.ModernUI.Windows.Controls.BetterImage

상속: System.Windows.Controls.Control
파일 보기 프로젝트 열기: gro-ove/actools

공개 프로퍼티들

프로퍼티 타입 설명
ClearOnChangeProperty System.Windows.DependencyProperty
DecodeHeightProperty System.Windows.DependencyProperty
DecodeWidthProperty System.Windows.DependencyProperty
DelayedCreationProperty System.Windows.DependencyProperty
FilenameProperty System.Windows.DependencyProperty
ForceFillProperty System.Windows.DependencyProperty
HideBrokenProperty System.Windows.DependencyProperty
OptionBackgroundLoading bool
OptionCacheLimitSize int
OptionCacheTotalSize int
ShowBrokenProperty System.Windows.DependencyProperty
SourceProperty System.Windows.DependencyProperty
StretchDirectionProperty System.Windows.DependencyProperty
StretchProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
AddToCache void
BetterImage System
ComputeScaleFactor System.Windows.Size
CreateDefaultStyles System.Windows.Style
GetCached BitmapEntry
LoadBitmapSourceFromBytes BitmapEntry
MeasureArrangeHelper System.Windows.Size
OnFilenameChanged void
OnFilenameChanged void
OnSourceChanged void
OnSourceChanged void
ReadAllBytesAsync Task
ReloadImage void
ReloadImageAsync void
ReloadImageAsyncOld void
RemoveFromCache void
UpdateLoaded void

공개 메소드들

메소드 설명
LoadBitmapSource ( string filename, int decodeWidth = -1, int decodeHeight = -1 ) : BitmapEntry
LoadBitmapSourceAsync ( string filename, int decodeWidth = -1, int decodeHeight = -1 ) : Task
ReloadImage ( string filename ) : void

Forces all BetterImages which showing specific filename to reload their content.

보호된 메소드들

메소드 설명
ArrangeOverride ( Size arrangeSize ) : Size
MeasureOverride ( Size constraint ) : Size
OnRender ( System.Windows.Media.DrawingContext dc ) : void

비공개 메소드들

메소드 설명
AddToCache ( string filename, BitmapEntry entry ) : void
BetterImage ( ) : System
ComputeScaleFactor ( Size availableSize, Size contentSize, Stretch stretch, StretchDirection stretchDirection ) : Size
CreateDefaultStyles ( ) : System.Windows.Style
GetCached ( string filename ) : BitmapEntry
LoadBitmapSourceFromBytes ( byte data, int decodeWidth = -1, int decodeHeight = -1, int attempt ) : BitmapEntry

Safe (handles all exceptions inside).

MeasureArrangeHelper ( Size inputSize ) : Size
OnFilenameChanged ( ) : void
OnFilenameChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSourceChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSourceChanged ( object newValue ) : void
ReadAllBytesAsync ( string filename, CancellationToken cancellation = default(CancellationToken) ) : Task
ReloadImage ( ) : void
ReloadImageAsync ( ) : void
ReloadImageAsyncOld ( ) : void
RemoveFromCache ( string filename ) : void
UpdateLoaded ( ) : void

메소드 상세

ArrangeOverride() 보호된 메소드

protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size
리턴 System.Windows.Size

LoadBitmapSource() 공개 정적인 메소드

public static LoadBitmapSource ( string filename, int decodeWidth = -1, int decodeHeight = -1 ) : BitmapEntry
filename string
decodeWidth int
decodeHeight int
리턴 BitmapEntry

LoadBitmapSourceAsync() 공개 정적인 메소드

public static LoadBitmapSourceAsync ( string filename, int decodeWidth = -1, int decodeHeight = -1 ) : Task
filename string
decodeWidth int
decodeHeight int
리턴 Task

MeasureOverride() 보호된 메소드

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
리턴 System.Windows.Size

OnRender() 보호된 메소드

protected OnRender ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
리턴 void

ReloadImage() 공개 정적인 메소드

Forces all BetterImages which showing specific filename to reload their content.
public static ReloadImage ( string filename ) : void
filename string
리턴 void

프로퍼티 상세

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

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

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

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

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

Set to 0 if value shouldn’t be copied from Width.
public static DependencyProperty,System.Windows DecodeWidthProperty
리턴 System.Windows.DependencyProperty

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

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

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

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

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

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

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

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

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

public static bool OptionBackgroundLoading
리턴 bool

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

public static int OptionCacheLimitSize
리턴 int

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

public static int OptionCacheTotalSize
리턴 int

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

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

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

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

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

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

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

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