Skip to content

Commit

Permalink
Updated with alternate image on mouse over.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timthreetwelve committed Oct 7, 2024
1 parent 72e36c2 commit 75819c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions GetMyIP/GetMyIP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</PropertyGroup>

<ItemGroup>
<Resource Include="Images\InvertedIP.png" />
<Resource Include="Images\IP.ico" />
<Resource Include="Images\IP.png" />
<Content Include="Strings.test.xaml">
Expand Down
Binary file added GetMyIP/Images/InvertedIP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion GetMyIP/Views/AboutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,18 @@
Width="50"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Source="\Images\IP.png" />
Panel.ZIndex="1">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="\Images\IP.png" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Source" Value="\Images\InvertedIP.png" />
</Trigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<!--#endregion-->

<!--#region Rows of Information-->
Expand Down

0 comments on commit 75819c8

Please sign in to comment.