/Metro-UI-Toolkit

[UNMAINTAINED] WPF control library with a Metro UI look

Primary LanguageC#OtherNOASSERTION

No Maintenance Intended

Metro UI Toolkit

Metro UI Toolkit is a simple library of WPF controls that have a Modern/Metro UI look to them. I've also tried to expose several additional properties to make them quicker to customize (without having to build template sections) to hopefully decrease development time.

##MetroButton## alt Metro Button
Inherits from Button

Additional Properties
DisabledBackground [Brush] The background color for the button's disabled state.
DisabledForeground [Brush] The foreground color for the button's disabled state.

##MetroComboBox## alt Metro Combo Box
Inherits from ComboBox

Additional Properties
ListBackground [Brush] The dropdown list background color.
ListForeground [Brush] The dropdown list foreground color.
ButtonHoverBackground [Brush] The button background color while in the hover-over state.
ButtonHoverForeground [Brush] The button foreground color while in the hover-over state.
SelectedBackground [Brush] The list item background color while in the selected state.
SelectedForeground [Brush] The list item foreground color while in the selected state.
SeperatorColor [Brush] The list item separator color.

##MetroDataGrid## alt Metro Data Grid
Inherits from DataGrid

##MetroListBox## alt Metro Listbox
Inherits from ListBox

Additional Properties
HoverBackground [Brush] The list item background color while in the hover-over state.
HoverForeground [Brush] The list item foreground color while in the hover-over state.
SelectedBackground [Brush] The list item background color while in the selected state.
SelectedForeground [Brush] The list item foreground color while in the selected state.
SeperatorColor [Brush] The list item separator color.

##MetroScollBar & MetroScrollViewer## alt Metro Scoll Bar
Inherits from ScrollBar and ScrollViewer respectively

Additional Properties
BarColor [Brush] The scrollbar's color.
ThumbColor [Brush] The scrollbar's thumb color.

##MetroTabItem## alt Metro Tab Control
Inherits from TabItem

Events
TabCloseClick [Bubble] Raised when the TabItem's close button is clicked.
Additional Properties
IsClosable [bool] Whether or not the close button is visible.

##MetroTextBox## Inherits from TextBox
alt Metro Textbox

Additional Properties
PlaceholderText [string] The text to display when the textbox is empty.

##MetroDatePicker## alt Metro Datepicker
Inherits from DatePicker

Additional Properties
CalendarIconColor [Brush] The calendar icon color.
CalendarIconHoverColor [Brush] The calendar icon hover color.
TodayBackground [Brush] Today's date background color.
SelectedBackground [Brush] The selected date background color.
HighlightBackground [Brush] The highlighted date background color.
CalendarForeground [Brush] The calendar dropdown's foreground color.
CalendarBackground [Color] The calendar dropdown's background color.
CalendarHeaderColor [Color] The calendar dropdown's header color.
Event Handlers
PreviewKeyDown The up and down arrow keys increment/decrement the selected date by one day.

##SearchBox## alt Metro Searchbox
Inherits from ComboBox

Events
SearchClick [Bubble] Raised when the SearchBox's search button is clicked.
Additional Properties
PlaceholderText [string] The text to display when the searchbox is empty.
ListBackground [Brush] The dropdown list background color.
ListForeground [Brush] The dropdown list foreground color.
ButtonHoverBackground [Brush] The button background color while in the hover-over state.
ButtonHoverForeground [Brush] The button foreground color while in the hover-over state.
SelectedBackground [Brush] The list item background color while in the selected state.
SelectedForeground [Brush] The list item foreground color while in the selected state.
SeperatorColor [Brush] The list item separator color.

##SelectPager## alt Modern Data Grid
Inherits from UserControl

Events
PageChanged [Bubble] Raised when the Pager's CurrentPage changes.
Additional Properties
DisabledBackground [Brush] The background color for the button's disabled state.
DisabledForeground [Brush] The foreground color for the button's disabled state.
CurrentPage [int] The current page.
PageCount [int] The total number of pages.

##SimplePager## alt Modern Data Grid
Inherits from UserControl

Events
PageChanged [Bubble] Raised when the Pager's CurrentPage changes.
Additional Properties
CurrentPage [int] The current page.
PageCount [int] The total number of pages.

##SlideCheck## alt Slide Check
Inherits from UserControl

##WindowStateButtons## alt Window State Buttons
Inherits from UserControl

Events
MinimizeClick [Bubble] Raised when the minimize icon is clicked.
MaximizeClick [Bubble] Raised when the maximize icon is clicked.
NormalizeClick [Bubble] Raised when the normalize icon is clicked.
CloseClick [Bubble] Raised when the close icon is clicked.
Additional Properties
BackgroundHover [Brush] The icon background color while in the hover-over state.
ForegroundHover [Brush] The icon foreground color while in the hover-over state.
IsCloseVisible [bool] Whether or not the close button is visible.
IsMinimizeVisible [bool] Whether or not the minimize button is visible.
IsMaximizeVisible [bool] Whether or not the maximize button is visible.

License

ModernUIControls is released under a BSD 3-Clause License

Copyright © 2012-2013, Bryan Kizer All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the Organization nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.