C# Class GoogleCloudExtension.Theming.ButtonTemplateSelector

This class implements the DataTemplateSelector interface to choose the right button style (with the right size) depending on the contents of the button.
Inheritance: System.Windows.Controls.DataTemplateSelector
Show file Open project: GoogleCloudPlatform/google-cloud-visualstudio

Public Methods

Method Description
SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate

Choose between the Wide and Standard sizes for a button depending on the information on the button info.

Method Details

SelectTemplate() public method

Choose between the Wide and Standard sizes for a button depending on the information on the button info.
public SelectTemplate ( object item, DependencyObject container ) : System.Windows.DataTemplate
item object
container System.Windows.DependencyObject
return System.Windows.DataTemplate