C# Class AmazonScrape.DataGridPlus

Extends DataGrid to allow columns to be easily added through code-behind Avoids overly-cluttered XAML
Inheritance: System.Windows.Controls.DataGrid
显示文件 Open project: ThomasRush/AmazonScrape

Public Methods

Method Description
AddButtonColumn ( string buttonText, int widthPercent, RoutedEventHandler clickHandler, System.Windows.Style style = null ) : void
AddImageColumn ( string bindingName, string headerText, int widthPercent, BindingMode bindingMode, string sortOn = "", System.Windows.Style style = null ) : void
AddTextColumn ( string bindingName, string headerText, int widthPercent, System.Windows.Style style = null ) : void
DataGridPlus ( ) : System

Private Methods

Method Description
AddColumn ( System.Windows.FrameworkElementFactory ef, int widthPercent, string headerText, string sortOn = "", System.Windows.Style style = null ) : void

Method Details

AddButtonColumn() public method

public AddButtonColumn ( string buttonText, int widthPercent, RoutedEventHandler clickHandler, System.Windows.Style style = null ) : void
buttonText string
widthPercent int
clickHandler RoutedEventHandler
style System.Windows.Style
return void

AddImageColumn() public method

public AddImageColumn ( string bindingName, string headerText, int widthPercent, BindingMode bindingMode, string sortOn = "", System.Windows.Style style = null ) : void
bindingName string
headerText string
widthPercent int
bindingMode BindingMode
sortOn string
style System.Windows.Style
return void

AddTextColumn() public method

public AddTextColumn ( string bindingName, string headerText, int widthPercent, System.Windows.Style style = null ) : void
bindingName string
headerText string
widthPercent int
style System.Windows.Style
return void

DataGridPlus() public method

public DataGridPlus ( ) : System
return System