Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSRS 2012: "The report execution has expired or cannot be found. (rsExecutionNotFound)"

I have stack panel in hyperlink button on button click i have to change stack panel background

              <HyperlinkButton Name="WhereToStayButton" Margin="0,0,0,0"  Grid.Row="5"  Click="WhereToStayButton_Click">
            <HyperlinkButton.Template>

                <ControlTemplate TargetType="HyperlinkButton">
                    <StackPanel Orientation="Horizontal"   Background="#EBEBEB"     x:Name="sp1">
                        <Image Source="/Assets/Menu/wheretostay.png"   Stretch="None"/>
                        <TextBlock Text="{Binding Path=LocalizedResources.menu_where_stay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Center" Margin="5,10" FontSize="26" Foreground="Black" FontFamily="{StaticResource CustomLucidaGrandStyle}"/>
                    </StackPanel>
                </ControlTemplate>
            </HyperlinkButton.Template>
        </HyperlinkButton>
like image 628
Arun.P Avatar asked Sep 08 '25 07:09

Arun.P


1 Answers

Try this

use this name space using System.Windows.Media; and in button click event write this

private void WhereToStayButton_Click(object sender, RoutedEventArgs e)
{
   stackpanelname.Background = new SolidColorBrush(Colors.Red);
}
like image 178
Rashad Valliyengal Avatar answered Sep 10 '25 02:09

Rashad Valliyengal