반응형

Grid에서 1,2,3 순서로 있는 TextBox를

<Grid Grid.Column="1" Grid.Row="0">
	<Grid.ColumnDefinitions>
		<ColumnDefinition Width="*"/>
		<ColumnDefinition Width="auto"/>
		<ColumnDefinition Width="*"/>
	</Grid.ColumnDefinitions>
	<TextBox x:Name="txbValue1" Tag="First" Grid.Column="0" TabIndex="4" MinWidth="187" Margin="0,0,8,4" Style="{DynamicResource txbGeneral}"/>
	<TextBox x:Name="txbValue2" Tag="Middle"  Grid.Column="1" TabIndex="5" Width="187" Margin="0,0,8,4" Style="{DynamicResource txbGeneral}"/>
	<TextBox x:Name="txbValue3" Tag="Last" Grid.Column="2" TabIndex="6" MinWidth="187" Margin="0,0,8,4" Style="{DynamicResource txbGeneral}"/>
</Grid>

3,2,1 순서로 변경

txbValue1.SetValue(Grid.ColumnProperty, 2);
txbValue2.SetValue(Grid.ColumnProperty, 1);
txbValue3.SetValue(Grid.ColumnProperty, 0);
반응형

'[====== Development ======] > C#' 카테고리의 다른 글

File 변경 감시  (0) 2021.05.12
zip file Helper  (0) 2021.04.20
C# Coding Standards and Naming Conventions  (0) 2021.04.19
자동 시작 프로그램에 등록하는 기능  (0) 2021.04.19
String Extension Method  (0) 2021.04.19

+ Recent posts