Show text in statusbar textblock when hoover over buttons wpf



I could use some advice how to do this because im not sure how to solve the problem. I have made a statusbar in my main window in Visual studio wpf application.


In my main window i have created 10 buttons with different figues. When you click on a button, the specified button will light up and you have to click on the white space grid to draw one of those figures.


I what some text in my status to change whenever the button in clicked on / or not clicked on.


I should say:



Ready (when no buttons are clicked on)
Click on the space to draw (when a button are clicked on)


Is it possible to change the text??


my code so far



<StatusBar Grid.ColumnSpan="2" RenderTransformOrigin="0.501,1.816" Height="26" VerticalAlignment="Bottom" Background="#FF1C8DFF" >
<StatusBarItem>
<TextBlock><Run Foreground="White" Text="Ready,"/></TextBlock>
</StatusBarItem>

<StatusBarItem HorizontalAlignment="Right">
<StackPanel Orientation="Horizontal">
<TextBlock
VerticalAlignment="Center"
Margin="20,0"
Foreground="White"
Text="Zoom:"/>


<Slider x:Name="slider" Height="20" Width="156" Margin="0" VerticalAlignment="Center" Minimum="0.5" Value="1.27" Maximum="2.0" Foreground="#FFE5E5E5">

</Slider>

</StackPanel>
</StatusBarItem>
</StatusBar>

No comments:

Post a Comment