The following function will return a list of all subclasses inherited from a given class. Please note, that it works only within a single assembly, same as which holds the given superclass. 1 2 3 4 5 6 7 8 Function FindSubClasses(Of TBaseType)() As IEnumerable(Of Type) Dim baseType = GetType(TBaseType) Dim […]
Continue reading…
Monthly Archives: June 2014
How to align text in DataGrid
The obvious solution is to set a HorizontalAlignment property of DataGridCell style: 1 2 3 4 5 6 7 <DataGridTextColumn Binding="{Binding Quantity, StringFormat=’#,0.0000′}" ClipboardContentBinding="{x:Null}" Header="Quantity"> <DataGridTextColumn.CellStyle> <Style TargetType="DataGridCell" > <Setter Property="HorizontalAlignment" Value="Right" /> </Style> </DataGridTextColumn.CellStyle> </DataGridTextColumn> <DataGridTextColumn […]
Continue reading…