ā” hover effect

how do i fix this
30 Replies
Doctor love | 5 5600G/2060 super
i dont want the blue
SG97
SG97ā€¢2y ago
you need to provide a bit more info, what UI framework is this and what's the control with the blue selection color
Doctor love | 5 5600G/2060 super
wpf its in the tags
Buddy
Buddyā€¢2y ago
What are you making?
Doctor love | 5 5600G/2060 super
my own password manager but other people wanted it so i made a donation options
SG97
SG97ā€¢2y ago
what control is that with the Dashboard, Passwords, etc
Doctor love | 5 5600G/2060 super
its just a button rn
SG97
SG97ā€¢2y ago
a collection of buttons? can you show some xaml involving that menu
Doctor love | 5 5600G/2060 super
mmm idk wym by that
SG97
SG97ā€¢2y ago
on a sidenote, you don't use drag n drop on WPF is that button pressed or are you hovering over it?
Doctor love | 5 5600G/2060 super
hovering over it wdym?
SG97
SG97ā€¢2y ago
those margins will just ruin your app
SG97
SG97ā€¢2y ago
they are used for fine tuning at best, you use grids/panels/etc to position the elements
Doctor love | 5 5600G/2060 super
stackpanel?
SG97
SG97ā€¢2y ago
sure
Doctor love | 5 5600G/2060 super
so when you say drag and drop do you mean the toolbox
SG97
SG97ā€¢2y ago
yes
Doctor love | 5 5600G/2060 super
i didnt use the toolbox
SG97
SG97ā€¢2y ago
well, those margins look like drag n drop
Doctor love | 5 5600G/2060 super
well i copied and pasted so that could be why šŸ˜„ i wrote the code then copied it and pasted it would it be better if i just rewrote it instead of copy and pasting
SG97
SG97ā€¢2y ago
copy pasting from where? but sure
Doctor love | 5 5600G/2060 super
like just doing this <Button Margin="455,-6,580,714" FontFamily="Segoe Mdl2 Assets" Content="&#xE738;" FontWeight="Bold" Foreground="White" Background="Transparent" BorderBrush="Transparent" Grid.Column="1" Click="Button_Click_2"/> <StackPanel Orientation="Horizontal" Background="Transparent" Margin="22,33,940,640" Grid.Column="1"> <TextBlock Text=" Sites" FontFamily="Arial" FontSize="35" FontWeight="Bold" FontStyle="Italic" Width="101" Foreground="white" Height="52"/> </StackPanel> basically just copying and pasting the text instead of drag and drop but do you know how to remove the hover effect? @sn0wgirl_97 or make it transparent
SG97
SG97ā€¢2y ago
Stack Overflow
Change color of Button when Mouse is over
I want to change the background color of a button when IsMouseOver == True <Button Command="{Binding ClickRectangleColorCommand}" Background="{Binding Color, Converter={StaticResource
SG97
SG97ā€¢2y ago
I mean from where are you copy pasting if it's a tutorial, I would not follow it
Doctor love | 5 5600G/2060 super
no its not
SG97
SG97ā€¢2y ago
$rulesofwpf
MODiX
MODiXā€¢2y ago
Rules of WPF:

āŒ Avoid the WPF Designer to eliminate a category of confusing bugs
āŒ Don't rely on Margin as the primary tool for layouts
āŒ Avoid writing UserControls or subclassing to extend a default control -- use Behaviors instead (Microsoft.Xaml.Behaviors.Wpf)

āœ… Write XAML by hand and autoformat with "Ctrl K,D" or XAML Styler
āœ… Rely upon XAML Hot Reload to design your app's UI at runtime
āœ… Use layout controls (Grid, DockPanel, etc) to support proper resizing
āœ… Use data binding to eliminate glue code and state synchronization issues
āœ… Use collection controls and DataTemplate to dynamically create lists of controls
āœ… Learn MVVM to create maintainable apps
āœ… Use the Dispatcher to update controls from non-UI threads
āœ… WPF's default controls can be easily modernized via $wpfuilibs
āœ… Include relevant XAML, code-behind, and ViewModel code for questions when possible
Rules of WPF:

āŒ Avoid the WPF Designer to eliminate a category of confusing bugs
āŒ Don't rely on Margin as the primary tool for layouts
āŒ Avoid writing UserControls or subclassing to extend a default control -- use Behaviors instead (Microsoft.Xaml.Behaviors.Wpf)

āœ… Write XAML by hand and autoformat with "Ctrl K,D" or XAML Styler
āœ… Rely upon XAML Hot Reload to design your app's UI at runtime
āœ… Use layout controls (Grid, DockPanel, etc) to support proper resizing
āœ… Use data binding to eliminate glue code and state synchronization issues
āœ… Use collection controls and DataTemplate to dynamically create lists of controls
āœ… Learn MVVM to create maintainable apps
āœ… Use the Dispatcher to update controls from non-UI threads
āœ… WPF's default controls can be easily modernized via $wpfuilibs
āœ… Include relevant XAML, code-behind, and ViewModel code for questions when possible
Accord
Accordā€¢2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server