Namespace HeBianGu.Base.WpfBase
Classes
- ActionCommand
A basic implementation of ICommand that wraps a method that takes no parameters or a method that takes one parameter.
- ActionResult
Mvc中页面跳转应用到的实体
- AdornerContainer
Simple helper class to allow any UIElements to be used as an Adorner.
- AttachableCollection<T>
Represents a collection of IAttachedObject with a shared AssociatedObject and provides change notifications to its contents when that AssociatedObject changes.
- 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.
- BoolAndConverter
并运算
- BoolOrConverter
或运算
- ByteSizeDisplayConverter
转换成GB MB KB 显示
- CallMethodAction
Calls a method on a specified object when invoked.
- CallMethodActionWithParemeter
Calls a method on a specified object when invoked.
- CanvasMouseDragElementBehavior
应用到Canvas的拖拽
- Cattach
公共附加属性
- ChangePropertyAction
An action that will change a specified property to a specified value when invoked.
- ClickSelectedStateBehavior
设置按钮就有选中和未选中效果
- 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
向左侧隐藏区域
- ColorToBrushConverter
绑定图标转换
- ComparisonCondition
Represents one ternary condition.
- ConditionBehavior
A behavior that attaches to a trigger and controls the conditions to fire the actions.
- 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.
- CubicBezierEase
贝塞尔曲线
- CustomPropertyValueEditorAttribute
Associates the given editor type with the property on which the CustomPropertyValueEditor is applied.
- DataGridDragRowBehavior
DataGrid数据行支持拖动
- 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.
- DefaultTriggerAttribute
Provides design tools information about what TriggerBase to instantiate for a given action or command.
- DeferredScrollBehavior
当进度条滚动时 返回当前值
- DisplayMapConverter
根据映射转换显示
- DoubleStoryboardEngine
DoubleAnimation动画引擎
- DoubleTextConverter
设置文本框PropertyChanged 可以输入小数点
- DragMoveWindowBehavior
设置鼠标放下时 窗口拖动
- DragPositionBehavior
应用 RenderTransform 的拖拽效果
- EasingFunctionFactroy
说明:https://docs.microsoft.com/zh-cn/dotnet/framework/wpf/graphics-multimedia/easing-functions
- ElementDragStateBehavior
设置当前控件是否处于拖拽状态
- EntityBase<TPrimaryKey>
泛型实体基类
- 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.
- 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转不可用
- 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.
- GetTypeDisplayConverter
显示类型的Display名称
- GoToStateAction
An action that will transition a FrameworkElement to a specified VisualState when invoked.
- GuidEntityBase
定义默认主键类型为Guid的实体基类
- IconToImageSourceConverter
绑定图标转换
- Interaction
Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.
- InvokeCommandAction
Executes a specified ICommand when invoked.
- IsEqualConverter
替换字符串
- ItemPanelConverter
获取ItemsPresenter 中的ItemsPanel
- ItemsControlItemIndexBehavior
ItemsControl支持显示行号
- 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.
- LevelToColorConverter
警告级别转换
- LinkActionGroup
Represents a named group of links.
- ListViewColumnAutoSizeBehavior
This behavior sizes the ListView columns using another attached behavior for logic.
- ListViewSortBehavior
Behavior to provide automatic sorting of a ListView.
- MaskedTextBoxBehavior
显示输入内容 目前测试输入法输入时有问题
- MathAdditionConverter
加减法转换计算
- MathExtensions
Provides extension methods for trigonometric, logarithmic, and other common mathematical functions.
- MathMultiplicationConverter
乘除法转换计算
- MemoryCache
Simple in-memory cache; used for development until enterprise caching (memcached, AppFrabric, etc) can be used
- MouseDragElementBehavior
Repositions the attached element in response to mouse drag gestures on the element.
- MousePressClickTrigger
按住一定时间间隔才会执行
- MousePressTrigger
按住会没间隔一段时间执行
- MouseTrigger
可以注册 单击 双击 ..N击的触发器
- MultiComboboxSelectConverter
区间范围筛选
- MultiSelectTreeViewBehavior
Behavior to support multi-select in a traditional WPF TreeView control.
- NotifyPropertyChanged
Mvvm绑定模型基类
- NullOrEmptyTofalseConverter
值为空转false
- NullToEmptyConverter
值为空转false
- NumericTextBoxBehavior
TextBox支持数值输入,鼠标滚动 拖动改变值等效果的行为
- ObservableSourceViewModel<T>
带有集合的数据源
- ObservableSource<T>
带有页码的 ObservableCollection 集合
- OpenTargetInTabControlAction
TabControl支持动态添加TabItem的行为,支持数据的添加,需要有无参构造函数
- PercentToAngleConverter
百分比转换为角度值
- PlaySoundAction
An action that will play a sound to completion.
- PowerEasingFunction
指定次幂
- PreviewInvokeEventArgs
Argument passed to PreviewInvoke event. Assigning Cancelling to True will cancel the invoking of the trigger.
- PropertyChangedTrigger
Represents a trigger that performs actions when the bound data have changed.
- RemoveElementAction
An action that will remove the targeted element from the tree when invoked.
- RemoveItemInListBoxAction
Allows a user to remove the item from a ListBox ItemTemplate.
- 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.
- SelectListBoxItemElementBehavior
单点击当前控件时ListBoxItem项值也选中
- SelectTextOnFocusBehavior
This behavior selects all text in a TextBox when it gets focus
- SelectZIndexElementBehavior
当点击容器中一项时,将该项目置于容器最顶端
- 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事件
- ServiceCollection
App服务管理
- ServiceRegistry
依赖注入服务 - 常用
- 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.
- SortHeaderEventArgs
Event arguments when using code behind to sort headers.
- 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>
动画泛型引擎基类
- StoryboardTrigger
An abstract class that provides the ability to target a Storyboard.
- StringEntityBase
定义默认主键类型为Guid的实体基类
- StringReplaceConverter
替换字符串
- StringSplitFirstConverter
分割字符串取第一个值
- SynchronizedScrollingBehavior
This behavior tracks two ScrollViewer based controls and keeps their Horizontal and Vertical positions synchronized.
- 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
开发原型用的模型
- TextBoxSelectionStartBehavior
但点击当前控件时ListBoxItem项值也选中
- TimerTrigger
A trigger that is triggered by a specified event occurring on its source and fires after a delay when that event is fired.
- 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.
- 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.
- 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.
- VisibilityContainWithStringConverter
匹配文本本不可用
- VisibilityConverter
布尔转不可用
- VisibilityEmptyConverter
空文本不可用
- VisibilityStringConverter
匹配文本本不可用
- VisibilityToBoolenConverter
布尔为true转不可用
- VisibilityWithOutStringConverter
匹配文本本不可用
- VisibleOfMarginLeftCommand
向右侧显示区域
- 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.
- WriteLineObjectConverter
显示类型的Display名称
Interfaces
- IAttachedObject
An interface for an object that can be attached to another object.
- ICondition
An interface that a given object must implement in order to be set on a ConditionBehavior.Condition property.
- ILogRepository<TEntity, TPrimaryKey>
带有日志的泛型仓储接口
- ILoginService
认证接口
- IPresenterWindowDialogService
用于底层弹窗,需要外部注册
- IRepository
仓储接口定义
- IRepository<TEntity>
默认Guid主键类型仓储
- IRepository<TEntity, TPrimaryKey>
定义泛型仓储接口
- IStringRepository<TEntity>
默认string主键类型仓储
- IWindowDialogService
用于底层弹窗,需要外部注册
Enums
- ComparisonConditionType
Enumeration of different comparison operators.
- CustomPropertyValueEditor
Enumerates possible values for reusable property value editors.
- 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.
- NotifyBalloonIcon
Defines a set of standardized icons that can be associated with a balloon tip.
- 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.