Improve performance of SupplementaryResult + Modify the height of RowDltrUnits when UnitConverter is in Landscape (#249)
* Modify the height of RowDltrUnits when UnitConverter is in LandscapeLayout mode * clean * Use the same layout than the existing one while fixing the issue * Refactor SupplementaryItemsControl to improve performance, not rely on parents and not force the parent element to be HorizonAlignment="stretch" * take feedback into account * add HorizontalNoOverflowStackPanel to vcproj.filters * format conditionals * replace max by std::max
This commit is contained in:
		| @@ -80,7 +80,7 @@ | ||||
|             <Setter Property="ItemsPanel"> | ||||
|                 <Setter.Value> | ||||
|                     <ItemsPanelTemplate> | ||||
|                         <StackPanel Orientation="Horizontal"/> | ||||
|                         <local:SupplementaryResultNoOverflowStackPanel/> | ||||
|                     </ItemsPanelTemplate> | ||||
|                 </Setter.Value> | ||||
|             </Setter> | ||||
| @@ -102,6 +102,6 @@ | ||||
|                                             Style="{ThemeResource SupplementaryValuesStyle}" | ||||
|                                             IsTextScaleFactorEnabled="False" | ||||
|                                             ItemTemplateSelector="{StaticResource ResultTemplateSelector}" | ||||
|                                             LayoutUpdated="OnSupplementaryValuesLayoutUpdated"/> | ||||
|                                             ItemsSource="{x:Bind Results, Mode=OneWay}"/> | ||||
|     </StackPanel> | ||||
| </UserControl> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user