Right now I'm trying to use styles in my very new wpf solution.
I have problems with the Trigger IsMouseOver background color. Even when using another background color it still shows Windows blue on mouse over. Do I have to set another property for the mouse over blue color?
Can anyone tell me, why I can make the style Bold but not cann't change the windows normal blue color on mouseover a button?
I have attached the solution
But here is the code first my app.xaml file
"AnsiBug.App" - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:AnsiBug"
- StartupUri="MainWindow.xaml">
-
And here is my
My MainWindow (the two first images are logos You can put every image you want. The Divider image is included in the solution.
"http://schemas.syncfusion.com/wpf" x:Name="AnsiBug" x:Class="AnsiBug.MainWindow" - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:AnsiBug"
- mc:Ignorable="d"
- Title="MainWindow" Height="800" Width="1200" HorizontalAlignment="Center" VerticalAlignment="Center" WindowStartupLocation="CenterScreen">
-
-
-
"Black" BorderThickness="2"> -
"5" ShowGridLines="True"> -
-
"250" /> -
"*" /> -
"250" /> -
"/Images/Logo/ANSI.gif" HorizontalAlignment="Left" Width="200" Height="80" Grid.Column="0" Margin="0,0,111,125" /> -
"/Images/Logo/logoBug.gif" HorizontalAlignment="Right" Width="150" Height="80" Grid.Column="2" Margin="158,0,0,149" /> -
"1" > -
-
-
"*" /> -
"*" /> -
"*" /> -
"*" /> -
"*" /> -
"*" /> -
-
"*" /> -
"Vertical" Grid.Row="0" Grid.Column="0"> - Content="Projekter" Style="{StaticResource TopMenuButton}" />
-
"/Images/TopDivider.jpg" /> -
"ProjectsSubMenu" > - Content="Dashboard" Style="{StaticResource TopSubMenuButton}" />
- Content="Ny fejl" Style="{StaticResource TopSubMenuButton}" />
-
"5" > -
-
"*" /> -
-
"*" /> -
"Her kommer anden række" />
Best regards,
Simsen :-)
Rajanikant HawaldarPosted Mar 9, 2021, 6:33 AM
Amit GuptaPosted Mar 8, 2021, 5:05 PM