Utility classes for WPF
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GridSplitterExSample
ImageViewer
SS
TreeViewSample
WpfUtility
WpfUtility_Call
.gitignore
Doxyfile
LICENSE
README.md
WpfUtility.sln

README.md

WpfUtility

  • Utility classes for WPF

Items

  • MessageButton is an alternative 'MessageBox' that can be pinned on window as an icon.
  • PaneledTab is TabContorl with 'FormerPanel' and 'LatterPanel' beside TabPanel.
  • PlaceHolder realize place holder for TextBox and ComboBox in .Net 4.0.
  • ResourceHelper returns resource from the CallingAssembly.
  • RibbonExtensionMethods add helper methods to Ribbon.
  • SoftBreak realize 'Word Break' and 'Soft Hyphen' in Label of RibbonButton.
  • TrExtension (Translation Extension) show string resource reflecting language setting.

MessageButton

  • It can be pinned on window as an icon.
  • It show a text as popup with system sound.
  • A text is closed automatically after several seconds, or opened infinitely.
  • The popup can be opened/closed by click.
  • MessageButton is not modal but modeless.
  • MessageButton DON'T support buttons(OK, Cancel, Yes, No, ...).
  • MessageButtons can be placed in Quick Access ToolBar, Help Pane Content, Ribbon Group.

PaneledTab

  • is TabContorl with 'FormerPanel' and 'LatterPanel' beside TabPanel.

PlaceHolder

  • realize place holder for TextBox and ComboBox in .Net 4.0.

ResourceHelper

  • returns resource from the CallingAssembly.

GetImage

  • returns BitmapImage with specified file name from the CallingAssembly.

GetText

  • returns string with specified file name and encoding from the CallingAssembly.
    • The text file msut be an embedded resource.

RibbonExtensionMethods

  • add helper methods to Ribbon.

AddHelpItem

  • add an item to HelpPaneContent of the Ribbon.

AddMinimizeButton

  • add the minimize button to HelpPaneContent of the Ribbon.

SoftBreak

  • realize 'Word Break' and 'Soft Hyphen' in Label of RibbonButton.
  • 'Word Break' tag [[WBR]] will be space when the button is large, and it will be empty when the button is small.
  • 'Soft Hyphen' tag [[SHY]] will be hyphen when the button is large, and it will be empty when the button is small.

Constant

  • WordBreakTag: string
  • SoftHyphenTag: string

TrExtension

  • show string resource reflexing language setting.
  • 'Assembly' property, static resouce, dynamic resource, and root element can be used to specify assembly name.