Jump to content
Sign in to follow this  
RJ90

Orientação dos controlos

Recommended Posts

RJ90

Boas!

Surgiu-me aqui uma duvida/problema. Estou a desenvolver uma aplicação para Tablet PC, mas o Tabet PC não tem a tecnologia que permite alterar a orientação do ecrã com os movimentos. Então recorri a código, mas acontece que através de código aquilo fica muito lento nas transições entre orientações do ecrã.

Então surgiu-me esta ideia, em vez de fazer para o ecrã todo, alterar a orientação para cada controlo (textbox, button, combobox, etc..) É possível?

u59jx591w013ukx6v.png  =>    3o2zlvsj97vv3cy01qn.png

Cumprimentos,


Samsung 700Z5A-S01PT Samsung Ominia W

ᥡ What Else? ᥡ

Share this post


Link to post
Share on other sites
RJ90

Resolvido!  :P

<Window x:Class="Rotate.Outra"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Outra" Height="1024" Width="600" WindowStyle="None" WindowState="Maximized" HorizontalAlignment="Center" VerticalAlignment="Center">
    <Window.Background>
        <ImageBrush ImageSource="/Rotate;component/Images/background.png" />
    </Window.Background>
    <Grid Height="600" Width="1024" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Grid.LayoutTransform>
            <RotateTransform Angle="-90" />
        </Grid.LayoutTransform>      
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="368,278,0,0" Name="button3" VerticalAlignment="Top" Width="75" />
    </Grid>
</Window>


Samsung 700Z5A-S01PT Samsung Ominia W

ᥡ What Else? ᥡ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.