Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8254055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:04:45+00:00 2026-06-08T01:04:45+00:00

I have a project that will have multiple tabs. When the user selects a

  • 0

I have a project that will have multiple tabs. When the user selects a tab, I would like the grid that’s inside that tab to slide out. I figure I can accomplish that by changing the grids margin. I actually have a solution that works, but it requires 2 DLL’s from Blend to be included. I would think the same effect is possible without using Blend but I can’t figure it out. Below is the storyboard and tabItems xaml

    <Storyboard x:Key="tabAdminSlide">
        <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="grid1">
            <EasingThicknessKeyFrame KeyTime="0" Value="400,0,0,0"/>
            <EasingThicknessKeyFrame KeyTime="0:0:0.5" Value="0,0,0,0">
                <EasingThicknessKeyFrame.EasingFunction>
                    <ExponentialEase EasingMode="EaseOut"/>
                </EasingThicknessKeyFrame.EasingFunction>
            </EasingThicknessKeyFrame>
        </ThicknessAnimationUsingKeyFrames>
    </Storyboard>

    <TabItem Header="Run as Admin" x:Name="tabAdmin" Background="LightBlue">
         <i:Interaction.Triggers>
             <ei:DataTrigger Binding="{Binding SelectedIndex, ElementName=tabControl}" Value="0">
                 <ei:ControlStoryboardAction Storyboard="{StaticResource tabAdminSlide}"/>
             </ei:DataTrigger>
         </i:Interaction.Triggers> 
            <Grid Height="Auto" x:Name="grid1" Width="Auto">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="-0.002,0.498" EndPoint="1.084,0.498">
                        <GradientStop Color="LightBlue" Offset="0.446" />
                        <GradientStop Color="White" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
                <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="40,179,0,0" Name="button1" VerticalAlignment="Top" Width="75" Grid.ColumnSpan="2" />
            </Grid>
    </TabItem>

It looks like

<i:Interaction.Triggers>
    <ei:DataTrigger Binding="{Binding SelectedIndex, ElementName=tabControl}" Value="0">
        <ei:ControlStoryboardAction Storyboard="{StaticResource tabAdminSlide}"/>
    </ei:DataTrigger>
</i:Interaction.Triggers> 

Is the part I need to replace but I can’t be sure. Any help would be appriciated

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:04:47+00:00Added an answer on June 8, 2026 at 1:04 am

    You should be able to use

    <TabItem.Triggers>
        <EventTrigger RoutedEvent="Selector.Selected">
            <BeginStoryboard Storyboard="{StaticResource tabAdminSlide}" />
        </EventTrigger>
    </TabItem.Triggers>
    

    instead of

    <i:Interaction.Triggers>  
        <ei:DataTrigger Binding="{Binding SelectedIndex, ElementName=tabControl}" Value="0">  
            <ei:ControlStoryboardAction Storyboard="{StaticResource tabAdminSlide}"/>  
        </ei:DataTrigger>  
    </i:Interaction.Triggers> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am doing a project that will have multiple channels for clients chatting. Each
I have a project in mind that will offer users their own domain, like
So I am starting out on company project that will have several components: At
I am starting on a new Hadoop project that will have multiple hadoop jobs(and
I have an upcoming project that I would like to use the HTML5 canvas
We have a project that will be developed in multiple phases over the next
I have a project that will require merging multiple snippets of text together. There
I have a project in PHP that uses multiple tabs on a single page,
I have a small project that I will be working on shortly that collects
I have a project in mind that will require the majority of queries to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.