locked
Toggle arrow symbol button support RTL

    General discussion

  • Hi,

    Is there a way to flip the toggle arrow button to support BiDi?

     I can externalize the Segue UI Symbol unicode to .resw, but instead of showing the symbol, it shows &#xE0AB

    please help, thanks

    Monday, December 03, 2012 7:55 PM

All replies

  • Hi,

    In XAML, we should use it like this

    <Button FontFamily="Segoe UI Symbol" FontSize="20.0" Content="&#xE0BA;" />

    In Codes, we should use it like

    this->SegoeButton->Content=L"\ue0ac";

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, December 05, 2012 11:51 AM
  • Hi Jesse,

    thanks for your suggestion.  However, your solution doesn't work because this app support RTL languages such as arabic.  If you applied the code, it will not work for English or other LTR languages.  I only have single .XAML files for all 26 supported languages.  The UI are flipped based on the flowdirection in the code, and it gets the "RightToLeft" in the resource file that has a flag.

    If there anyway to externalize the \ue0ac to .resw?  Currenly, if i do that, rather than showing the Symbol, it shows \ue0ac.

    By the way, the ArrowGlyph is under StandardStyles.xaml provided by Microsoft and it doesn't contain the <button element.

    <TextBlock x:name="ArrowGlyph" Text="&#xE0A6;"...etc

    If i changed to

    <TextBlock x:name="ArrowGlyph" x:UID:"RTL_Arrow"...etc.

    Under arabic.resw:

    RTL_Arrow= &#xE0A6;

    This doesn't work.

    thanks

    -James

    Wednesday, December 05, 2012 11:56 PM