Table of Contents

Namespace HeBianGu.Base.WpfBase

Classes

AccentKeyAttribute
ActionBase
ActionCommand

A basic implementation of ICommand that wraps a method that takes no parameters or a method that takes one parameter.

ActionResult

Mvc中页面跳转应用到的实体

ActivateStateAction
AddItemButtonBehavior
AddItemButtonBehaviorBase
AdornerBehaviorBase
AdornerContainer

Simple helper class to allow any UIElements to be used as an Adorner.

ApplicationBuilder
AttachableCollection<T>

Represents a collection of IAttachedObject with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.

Authority
AuthorityCommand
AuthoritySetting
AuthorityTransactionCommand
AutoComplete
AutoDisabledImageBehavior

Behavior which applies a grayscale effect to an image when it's parent Button or MenuItem is disabled. 图片控件 当不可用时设置成灰白

BackgroundToForegroundConverter

根据背景色获取前景色。当然也可反着用

Behavior

Encapsulates state information and zero or more ICommands into an attachable object.

BehaviorCollection

Represents a collection of behaviors with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.

Behavior<T>

Encapsulates state information and zero or more ICommands into an attachable object.

Behaviors
BindableSelectedItemTreeViewBehavior
BindingProxy
BoolAndConverter

并运算

BoolNullToBoolConverter
BoolOrConverter

或运算

BrushExtionsion
BrushKeys
BrushRoundConverter
ButtonBehaviorBase
ByteSizeDisplayConverter

转换成GB MB KB 显示

ByteToImageSourceConverter

替换字符串

CallMethodAction

Calls a method on a specified object when invoked.

CallMethodActionWithParemeter

Calls a method on a specified object when invoked.

CanvasMouseDragElementBehavior

应用到Canvas的拖拽

Cattach

公共附加属性

ChangeAttachPropertyAction
ChangePropertyAction

An action that will change a specified property to a specified value when invoked.

CircleProgressBarConverter
ClearItemButtonBehavior
ClearItemsControlButtonBehavior
ClickSelectedStateBehavior

设置按钮就有选中和未选中效果

ClipBoardService
CloseDialogBehavior

This behavior allows the designer to close a dialog using a true/false DialogResult through a button. This is already supported if the IsCancel property is true, but the IsDefault does not auto-dismiss the dialog without some code behind. This alleviates that requirement for the very simple dialogs that are completely VM driven.

CloseItemsAction

ItemsControl 带有删除子项的行为

CloseWindowAction

关闭窗口的动作

ClosingWindowBehavior

A behavior for Window that can handle the closing event.

CollapsedOfMarginBottomCommand

向左侧隐藏区域

CollapsedOfMarginLeftCommand

向左侧隐藏区域

CollapsedOfOpacityCommand
CollpseLastItemInContainerConverter
ColorFactory
ColorSorter
ColorToBrushConverter

绑定图标转换

ColumnPropertyInfo
ComboBoxAutoSelectionConverter

布尔转不可用

Commands
ComparaConverter
ComparisonCondition

Represents one ternary condition.

ConditionBehavior

A behavior that attaches to a trigger and controls the conditions to fire the actions.

ConditionCollection
ConditionalExpression

Represents a conditional expression that is set on a ConditionBehavior.Condition property. Contains a list of conditions that gets evaluated in order to return true or false for ICondition.Evaluate().

ContextMenuDisplayBehavior

自定义ContextMenu显示时机 有个问题就是PlaceTarget没有传递进来 后面看下

ControlStoryboardAction

An action that will change the state of a targeted storyboard when invoked.

ControlStyle
Converter
ConverterBase<T, R>
ConverterBase<T, P, R>
CornerRadiusKeys
CornerRadiusToDouble
CryptProxy
CubicBezierEase

贝塞尔曲线

CustomPropertyValueEditorAttribute

Associates the given editor type with the property on which the CustomPropertyValueEditor is applied.

DataGridColumnAttribute
DataGridDragRowBehavior

DataGrid数据行支持拖动

DataGridPresenterBase
DataGridRowDropEventArgs
DataGridRowIndexBehavior
DataStateBehavior

Toggles between two states based on a conditional statement.

DataStoreChangedTrigger

Trigger designed to be bound to a data store property. Fires when the property changes.

DataTrigger

Represents a trigger that performs actions when the bound data meets a specified condition.

DateTimeToAgeConverter
DateTimeToStringConverter
DefaultTriggerAttribute

Provides design tools information about what TriggerBase to instantiate for a given action or command.

DeferredScrollBehavior

当进度条滚动时 返回当前值

DependencyConverterBase
DependencyObjectHelper
DesignPresenterBase
DisplayMap
DisplayMapConverter

根据映射转换显示

DisplayRoutedUICommand
DisplayerAttribute
DisplayerCommand
DisplayerViewModelBase
Displayer<T>
DoubleClickWindowStateBehavior
DoubleRoundConverter
DoubleStoryboardEngine

DoubleAnimation动画引擎

DoubleTextConverter

设置文本框PropertyChanged 可以输入小数点

DragMoveWindowBehavior

设置鼠标放下时 窗口拖动

DragOverHitTestAdornerBehavior
DragPositionBehavior

应用 RenderTransform 的拖拽效果

DrawerOffsetConverter
DrawingContextExtension
DrawingKeys
EasingFunctionFactroy

说明:https://docs.microsoft.com/zh-cn/dotnet/framework/wpf/graphics-multimedia/easing-functions

EffectShadowKeys
ElementDragStateBehavior

设置当前控件是否处于拖拽状态

ElementExtention
EntityBase<TPrimaryKey>

泛型实体基类

EnumDisplayConverter
EventObserver

EventObserver is designed to help manage event handlers by detatching when disposed. Creating this object will also attach in the constructor.

EventTrigger

A trigger that listens for a specified event on its source and fires when that event is fired.

EventTriggerBase

Represents a trigger that can listen to an object other than its AssociatedObject.

EventTriggerBase<T>

Represents a trigger that can listen to an element other than its AssociatedObject.

ExcelServiceProxy
ExtendedVisualStateManager

ExtendedVisualStateManager is a custom VisualStateManager that can smooth out the animation of layout properties. With this custom VisualStateManager, states can include changes to properties like Grid.Column, can change element heights to or from Auto, and so on. These changes will be smoothed out over time using the GeneratedDuration and GeneratedEasingFunction of the appropriate transition. See the "VisualStateManager overrides" region below for a general description of the algorithm.

FalseToVisibilityConverter

布尔为true转不可用

FindResourceConverter
FlashBehavior

动画帧 闪烁效果

FluidMoveBehavior

Behavior that watches an element (or a set of elements) for layout changes, and moves the element smoothly to the new position when needed. This behavior does not animate the size or visibility of an element; it only animates the offset of that element within its parent container.

FluidMoveBehaviorBase
FluidMoveSetTagBehavior
FontSizeKeys
ForegroundDataGridColumnAttribute
GeometryExtension
GetDepthColorsExtension
GetDirectoryNameConverter
GetExtensionConverter
GetFileLengthConverter
GetFileLengthDisplayConverter
GetFileNameWithoutExtensionConverter
GetStudentsExtension
GetTypeDisplayConverter

显示类型的Display名称

GoToStateAction

An action that will transition a FrameworkElement to a specified VisualState when invoked.

GreaterThanConverter
GridExtension
GuidEntityBase

定义默认主键类型为Guid的实体基类

HitTestAdornerBehavior
HotKeyAttribute
HsbaColor
IConvertibleConverter
IEnumerableConverterBase<T, R>
IEnumerableConverterBase<T, P, R>
IEnumerableTypeConverterBase<T>
IEnumerableTypeConverterBase<T, P>
IconAll
IconMedia
IconSizeKeys
IconToImageSourceConverter

绑定图标转换

Icons
IdentityIniter
ImageService
InsertItemButtonBehavior
IntToSexConverter
Interaction

Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.

InvokeCommand
InvokeCommandAction

Executes a specified ICommand when invoked.

InvokeViewMethodBehavior<TObject, TDelegate>
IsAssignableFromConverter
IsEqualConverter

替换字符串

IsFirstItemInContainerConverter
IsLastItemInContainerConverter
IsMultiValueEqualConverter
ItemPanelConverter

获取ItemsPresenter 中的ItemsPanel

ItemsControlButtonBehaviorBase
ItemsControlItemIndexBehavior

ItemsControl支持显示行号

ItemsControlService
ItemsSourceButtonBehaviorBase
KeyTrigger

A Trigger that is triggered by a keyboard event. If the target Key and Modifiers are detected, it fires.

LaunchUriOrFileAction

An action that will launch a process to open a file or Uri. For files, this action will launch the default program for the given file extension. A Uri will open in a web browser.

LazyInstance<T>
LazyNotifyInstance<T>
LazySettingInstance<T>
LessThanConverter
LevelToColorConverter

警告级别转换

LinkActionGroup

Represents a named group of links.

LinkActionGroups
ListBoxAutoScrollIntoSelectedItemBehavior
ListBoxSelectAllCheckBoxBehavior
ListDropBlendBehavior
ListViewColumnAutoSizeBehavior

This behavior sizes the ListView columns using another attached behavior for logic.

ListViewSortBehavior

Behavior to provide automatic sorting of a ListView.

LoadedAdornerBehavior
Logger
Loginner
MarkupCommandBase
MarkupValueConverterBase
MaskedTextBoxBehavior

显示输入内容 目前测试输入法输入时有问题

MathAdditionConverter

加减法转换计算

MathExtensions

Provides extension methods for trigonometric, logarithmic, and other common mathematical functions.

MathMultipleConverter
MathMultiplicationConverter

乘除法转换计算

MemoryCache

Simple in-memory cache; used for development until enterprise caching (memcached, AppFrabric, etc) can be used

MemoryCacheService
MessageCloseLayerCommand
MessageHost
MessageProxy
Messager
Meta
MillisecondsTimeSpanConverter
ModelViewModel<T>
MouseDownCancelBehavior
MouseDragElementBehavior

Repositions the attached element in response to mouse drag gestures on the element.

MouseGestureScrollViewerBehavior
MouseOverAdornerBehavior
MouseOverContextMenuBehavior
MouseOverHitTestAdornerBehavior
MouseOverSizeConverter
MousePressClickTrigger

按住一定时间间隔才会执行

MousePressTrigger

按住会没间隔一段时间执行

MouseTrigger

可以注册 单击 双击 ..N击的触发器

MultiComboboxSelectConverter

区间范围筛选

MultiConverterBase<T, R>
MultiSelectTreeViewBehavior

Behavior to support multi-select in a traditional WPF TreeView control.

NavigateBackAction
NavigateForwardAction
NavigateToScreenAction
NavigationMenuAction
NofoundAction
NotifyPropertyChanged

Mvvm绑定模型基类

NotifyPropertyChangedBase
NullOrEmptyTofalseConverter

值为空转false

NullToCollapsedConverter
NullToEmptyConverter

值为空转false

Number2PercentageConverter
NumericTextBoxBehavior

TextBox支持数值输入,鼠标滚动 拖动改变值等效果的行为

ObjectRoutedEventArgs<T>
ObservableExtension
ObservableSourceViewModel<T>

带有集合的数据源

ObservableSource<T>

带有页码的 ObservableCollection 集合

OpacityKeys
OpacityProgressBarConverter
OpenTargetInTabControlAction

TabControl支持动态添加TabItem的行为,支持数据的添加,需要有无参构造函数

OperationAttribute
PercentToAngleConverter

百分比转换为角度值

PlaySketchFlowAnimationAction
PlaySoundAction

An action that will play a sound to completion.

PointEx
PowerEasingFunction

指定次幂

PreferredConstructorAttribute
PresenterWindowDialogger
PressedSizeConverter
PreviewInvokeEventArgs

Argument passed to PreviewInvoke event. Assigning Cancelling to True will cancel the invoking of the trigger.

Printer
ProcessCommand
ProjectProxy
PropertyChangedTrigger

Represents a trigger that performs actions when the bound data have changed.

PrototypingActionBase
QinBehavior
RectExtension
RectExtenstion
Regexs
Register
RelayCommand
RelayCommand<T>
RemoveAllCheckedItemButtonBehavior
RemoveElementAction

An action that will remove the targeted element from the tree when invoked.

RemoveItemButtonBehavior
RemoveItemInListBoxAction

Allows a user to remove the item from a ListBox ItemTemplate.

RemoveItemVisualTreeButtonBehavior
RemoveItemsControlButtonBehavior
RgbaColor
RightMouseGestureScrollViewerBehavior
ScrollToTargetAction

An action that makes the specific ScrollViewer scrolls to the target element vertically.

ScrollViewMouseDragBehavior

ScrollViewer带有鼠标拖动和触摸拖动效果

ScrollbarPreviewBehavior

Displays a ToolTip next to the ScrollBar thumb while it is being dragged.
The original idea and code was taken from an MSDN sample - see http://code.msdn.microsoft.com/getwpfcode/Release/ProjectReleases.aspx?ReleaseId=1445 for the original source code and project.

ScrollingPreviewBehavior

Displays a ToolTip next to the ScrollBar thumb while it is being dragged.
This code was taken from an MSDN sample - see http://code.msdn.microsoft.com/getwpfcode/Release/ProjectReleases.aspx?ReleaseId=1445 for the original source code and project.

ScrollingTrigger

A trigger that fires when scrolling to a specific element in a ScrollViewer.

SearchItemsControlTextBoxBehvior
SecondsToTimeSpanDisplayConverter
SelectListBoxItemElementBehavior

单点击当前控件时ListBoxItem项值也选中

SelectTextOnFocusBehavior

This behavior selects all text in a TextBox when it gets focus

SelectViewModel<T>
SelectZIndexElementBehavior

当点击容器中一项时,将该项目置于容器最顶端

SelectedHitTestAdornerBehavior
SelectedItemsCollectionSynchronizerBehavior

This behavior provides a multi-selection binder to tie a ViewModel collection to a WPF multi-select list. This includes ListBox, ListView, DataGrid, Calendar, and anything else which supports the Selector or MultiSelector base class.

SelectorAutoClearBehavior

当选中一个项时,自动恢复不选中状态,只触发OnSelectionChanged事件

SelectorBindingSelectItemsBehavior
ServiceCollection

App服务管理

ServiceCollectionExtention
ServiceInstance<T>
ServiceRegistry

依赖注入服务 - 常用

ServiceRegistryVisibleConverter
ServiceSettingInstance<Setting, Interface>
SetDataStoreValueAction

An action that will change the value of a property from a data store object. This class is identical to ChangePropertyAction. The only difference is that the data store picker is loaded for this action.

SetTreeViewItemSelectedOnMouseDownBehavior
SettingAttribute
SettingBase
SettingPath
ShapeStyle
SortHeaderEventArgs

Event arguments when using code behind to sort headers.

StoryBoardKeys
StoryBoardService
StoryboardAction

An abstract class that provides the ability to target a Storyboard.

StoryboardCompletedTrigger

A trigger that listens for the completion of a Storyboard.

StoryboardEngineBase

动画引擎基类

StoryboardEngineBase<T>

动画泛型引擎基类

StoryboardFactory
StoryboardSetting
StoryboardTrigger

An abstract class that provides the ability to target a Storyboard.

StringEntityBase

定义默认主键类型为Guid的实体基类

StringReplaceConverter

替换字符串

StringSplitFirstConverter

分割字符串取第一个值

StringToImageSourceConverter
Student
StudentValidationRule
StyleExtention
StyleLoadService
StyleLoader
StyleSetting
SumSourceContentControlBehavior
SynchronizedScrollingBehavior

This behavior tracks two ScrollViewer based controls and keeps their Horizontal and Vertical positions synchronized.

SystemDisplay
SystemFileService
SystemKeys
SystemSetting
TargetedTriggerAction

Represents an action that can be targeted to affect an object other than its AssociatedObject.

TargetedTriggerAction<T>

Represents an action that can be targeted to affect an object other than its AssociatedObject.

TestViewModel

开发原型用的模型

TextBoxChangedSelectAllBehavior
TextBoxHistoryMetaSetting
TextBoxSelectionStartBehavior

但点击当前控件时ListBoxItem项值也选中

TextElementStyle
ThicknessKeys
ThicknessToDoubleConverter
TicksToTimeSpanDisplayConverter
TimeSpanSplitPointConverter
TimerTrigger

A trigger that is triggered by a specified event occurring on its source and fires after a delay when that event is fired.

ToTypeConverter
ToggleButtonContextMenuBehavior
TransactionCommand
TransitionEffect

Defines a transition effect shader that transitions from one visual to another visual using an interpolated value between 0 and 1.

TranslateZoomRotateBehavior

Allows the user to use common touch gestures to translate, zoom, and rotate the attached object.

TreeNodeBase<T>
TreeViewItemContainSelectItemBehavior
TriggerAction

Represents an attachable object that encapsulates a unit of functionality.

TriggerActionCollection

Represents a collection of actions with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.

TriggerAction<T>

Represents an attachable object that encapsulates a unit of functionality.

TriggerBase

Represents an object that can invoke Actions conditionally.

TriggerBase<T>

Represents an object that can invoke actions conditionally.

TriggerCollection

Represents a collection of triggers with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.

TrueToFalseConverter

这是一个颠倒黑白的世界

TrueToFalseMultiConverter

这是一个颠倒黑白的世界 其中有一个为true则反馈false

TypeConstraintAttribute

Specifies type constraints on the AssociatedObject of TargetedTriggerAction and EventTriggerBase.

UpgradeIniter
Upgrader
VersionData
ViewportSynchronizerBehavior

This behavior allows a ViewModel to monitor and control the scrolling position of any ScrollViewer or control with a ScrollViewer in the template. It can also be used to synchronize two scrolling items against a single property in a ViewModel.

VipAttribute
VisibilityContainWithOutStringConverter

匹配文本本不可用

VisibilityContainWithStringConverter

匹配文本本不可用

VisibilityConverter

布尔转不可用

VisibilityEmptyConverter

空文本不可用

VisibilityStringConverter

匹配文本本不可用

VisibilityToBoolenConverter

布尔为true转不可用

VisibilityWithOutStringConverter

匹配文本本不可用

VisibleOfMarginLeftCommand

向右侧显示区域

VisibleOfOpacityCommand
VisualStateUtilities

This class provides various platform agnostic standard operations for working with VisualStateManager.

WatermarkTextBoxBehavior

This behavior associates a watermark onto a TextBox indicating what the user should provide as input.

WindowDialogger
WriteLineObjectConverter

显示类型的Display名称

XConverter
XmlSerialize
XmlWebSerializer
mbc_db_modelbase

Interfaces

IAction
IActionResult
IAppLoadService
IAppSaveService
IApplicationBuilder
IAttachedObject

An interface for an object that can be attached to another object.

IAuthor
IAuthority
IAutoColumnPagedDataGridMessage
ICache
ICondition

An interface that a given object must implement in order to be set on a ConditionBehavior.Condition property.

IConditionable
IContainerMessage
ICryptService
IDataBaseInitService
IDataBaseSaveService
IDataGridColumn
IDemo
IDialogWindow
IDisplayer
IEntityBase<TPrimaryKey>
IExcelService
IGetDragAdorner
IGetDropAdorner
IHitTestElementDrag
IHitTestElementDrop
IIdentityInitService
ILicenseInitService
ILoad
ILogRepository<TEntity, TPrimaryKey>

带有日志的泛型仓储接口

ILogService
ILoginService

认证接口

IMessageService
IMetaSetting
IMetaSettingSerilize
IMetaSettingService
IModelViewModel
IModelViewModel<T>
INotifyMessage
INotifyMessageItem
IObservableSource
IObservableSource<T>
IPercentProgress
IPercentProgressMessage
IPresenterMessage
IPresenterWindowDialogService

用于底层弹窗,需要外部注册

IPrintBoxMessage
IPrintPagePresenter
IProjectItem
IProjectOption
IProjectService
IPropertyGridMessage
IPropertyGridOption
IRegisterService
IRelayCommand
IRepository

仓储接口定义

IRepository<TEntity>

默认Guid主键类型仓储

IRepository<TEntity, TPrimaryKey>

定义泛型仓储接口

IRole
ISave
ISearchable
ISelectViewModel
ISerializerService
IServiceCollection
ISetting
ISettingOption
ISettingPathService
ISnackMessage
IStartInitService
IStartWindow
IStartWindowLoad
IStringProgress
IStringRepository<TEntity>

默认string主键类型仓储

IStyleLoadService
ISystemNotifyMessage
ISystemSettingService
ISystemSettingServiceOpation
ITaskBarMessage
IThemeSaveService
ITransactionCommand
ITreeNode
IUpgradeInitService
IUpgradeService
IUser
IWebSerializerService
IWindowBase
IWindowDialogService

用于底层弹窗,需要外部注册

IXmlable

Enums

ComparisonConditionType

Enumeration of different comparison operators.

ControlStoryboardOption
CustomPropertyValueEditor

Enumerates possible values for reusable property value editors.

DialogMode
EffectType
FluidMoveScope

This enumerated type indicates whether a FluidMoveBehavior applies to the element to which it is attached, or to the children of that element. "Self" is useful when there is a single element that should behave in a special manner; "Children" is useful when the same behavior should apply to all children of a WrapPanel or to the ItemsHost panel of an ItemsControl.

ForwardChaining

Forward chaining.

KeyTriggerFiredOn
LayoutStyle
MathOperation
MouseOverStyleType
MouseTriggerMode
NotifyBalloonIcon

Defines a set of standardized icons that can be associated with a balloon tip.

ProjectSaveMode
StyleType
TagType

This enumerated type indicates whether an element is identified by itself, or by its DataContext. DataContext identification allows movement from one data-driven location to another.