microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
804 stars 50 forks source link

Please take in your consideration "FlowDirection" property #194

Closed abdelrazekbadr closed 7 years ago

abdelrazekbadr commented 7 years ago

This property can be set to one of two enumeration values, LeftToRight or RightToLeft. This property very important for application which have bidirectional content. We propose that set this property in base object of controls, This will cause all of the controls contained within parent control to respond appropriately to the direction. If you are implementing custom controls, they should use FlowDirection to make appropriate layout changes for RTL and LTR languages.

Example of parent FlowDirection

<Page FlowDirection=”RightToLeft”>
    <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width=”0.5*” />
      <ColumnDefinition Width=”0.5*” />
    </Grid.ColumnDefinitions>
    <Button>Button</Button>
    <TextBlock Grid.Column=”1″> Hello </TextBlock>
  </Grid>
</Page>

Example of element FlowDirection

<TextBlock   FlowDirection="LeftToRight">
        This is a left-to-right TextBlock
</TextBlock>
<TextBlock  FlowDirection="RightToLeft">
        This is a right-to-left TextBlock
</TextBlock>
birbilis commented 7 years ago

There is also some RTL semantics discussion here https://github.com/Microsoft/xaml-standard/issues/43

danielkatz commented 7 years ago

It is a duplicate of #41

crutkas commented 7 years ago

agreed, dup of #41