Skip to main content

Master applicazioni mobili

Go Search
Home
  
Master applicazioni mobili > Announcements > Snippet di XAML di oggi  

Announcements: Snippet di XAML di oggi

Title

Snippet di XAML di oggi 

Body

Ecco il codice visto oggi a lezione:
<Grid.Triggers>
  <EventTrigger RoutedEvent="Grid.Loaded">
    <EventTrigger.Actions>
        <BeginStoryboard>
          <Storyboard BeginTime="0">
            <DoubleAnimation BeginTime="0:0:0" Duration="0:0:30" AutoReverse="false" To="1" From="0" Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="Pannello"></DoubleAnimation>
            <DoubleAnimation BeginTime="0:0:0" Duration="0:0:30" AutoReverse="false" To="1" From="0" Storyboard.TargetProperty="ScaleY" Storyboard.TargetName="Pannello"></DoubleAnimation>
          </Storyboard>
        </BeginStoryboard>
    </EventTrigger.Actions>
  </EventTrigger>
</Grid.Triggers>
  
<StackPanel Width="400" VerticalAlignment="Center" HorizontalAlignment="Center">
<StackPanel.RenderTransform>
<ScaleTransform ScaleY="0.5" ScaleX="0.5" x:Name="Pannello"></ScaleTransform>
</StackPanel.RenderTransform>
<Slider VerticalAlignment="Top" x:Name="MySlider" Margin="10" Value="0" Maximum="720" Minimum="-720"></Slider>
  <TextBlock FontSize="45" Text="{Binding ElementName=MyTextBox, Path=Text}"></TextBlock>
  <TextBox x:Name="MyTextBox" Text="Type here...">
  <TextBox.RenderTransform>
  <TransformGroup>
  <RotateTransform Angle="{Binding ElementName=MySlider, Path=Value}"></RotateTransform>
  <TranslateTransform Y="50" X="10"></TranslateTransform>
  </TransformGroup>
  </TextBox.RenderTransform>
  </TextBox>
</StackPanel>

   </Grid>
 

Expires

 
Attachments
Created at 11/26/2011 19:13  by Antonio Cisternino 
Last modified at 11/26/2011 19:13  by Antonio Cisternino