ā” hover effect

how do i fix this
30 Replies
Doctor love | 5 5600G/2060 super
i dont want the blue
SG97
SG97ā€¢17mo 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ā€¢17mo 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ā€¢17mo ago
what control is that with the Dashboard, Passwords, etc
Doctor love | 5 5600G/2060 super
its just a button rn
SG97
SG97ā€¢17mo 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ā€¢17mo 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ā€¢17mo ago
those margins will just ruin your app
SG97
SG97ā€¢17mo 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ā€¢17mo ago
sure
Doctor love | 5 5600G/2060 super
so when you say drag and drop do you mean the toolbox
SG97
SG97ā€¢17mo ago
yes
Doctor love | 5 5600G/2060 super
i didnt use the toolbox
SG97
SG97ā€¢17mo 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ā€¢17mo 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ā€¢17mo 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ā€¢17mo 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ā€¢17mo ago
$rulesofwpf
MODiX
MODiXā€¢17mo 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ā€¢17mo 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
More Posts
ā” Infer the second generic type from input dataI am wondering if its possible to write the following code in some way that it works like I want it ā” Trying to build a Windows Form that displays factorial equationI'm have built a simple form that displays the result of a factorial equation with N input (picturedā” How to control content security policy in MAUI Blazor webview?^ā” No Build Action option in Property pagesWhen I right click on my x.bmp file in my project, and access properties, I get the attached screen,āœ… Index was outside of bounds of the arrayI've written a Morse Code translator, and it pretty much works 100% besides the fact it throws an exMaking a shortcut for checking null component in unityEvetime I create a new component in unity, I something like ``` if (!TryGetComponent(out _rb2D)) {āœ… Help with non-nullable field must contain a non-null value when exiting constructor.Following an online tutorial and trying to resolve nullable reference warnings (the tutorial was befC# WPF Login Oracle DatabaseSo I'm making a login system with C# WPF and I use Oracle DB. As I understood oracle it only has oneā” Using mvvm toolkit- Why my view has no access to my command?I got the following Code in the view model: ``` [RelayCommand] public void CalculateAndā” Razor Page - Select Tag Helper (form-select): Need help with onchange event for drop-down listIn my APR.cshtml page I have the following drop down list present: `<select asp-for="@Model.ServerNa