I have this problem I set up style for my wpf window and part of it is used in default ContextMenu but there still are part of default style. I try to just set up background for every type of controls but this didn't change anything. I try to change systems colors in my xaml, did not work I try to catch it to change style colors, but context menu is null in TextBox so no luck here Microsoft was no help at all, every topic about was remove and documentation don't talk abaut it. every other topic about it is how to rewrite this context menu and that is not what I what What did I miss? I just what to change background and foreground
Default Context Menu change only colors
24 Views Asked by Mikołaj Frankiewicz At
1
There are 1 best solutions below
Related Questions in WPF
- Sorting a List by its property renames all the objects in the List
- Can't open new instance of another window in my app, in WPF .NET 8
- Binding forecolour and ToolTip to a DataGrid
- how to create Infinite Upgrades in a clicker game
- Try Catch exception is not catching the unhandled exception
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Masking input in TextBox
- What should I do if Visual Studio has a restriction on creating files with a long name or a long path to these files?
- reading configuration file (mytest.exe.config)
- WPF Windows Initializing is locking the separated thread in .Net 8
- How to bind to the DataContext ViewModel of another view?
- mouse coordinates in image go below 0 and above width
- WPF pop up is behaving differently in English language PC and Japanese language PC
- Multi level project reference using dll
- Unable to unzip archive .NET framework
Related Questions in XAML
- Can't open new instance of another window in my app, in WPF .NET 8
- Visual Studio throwing DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION when I try to add a log
- Deeplinking in .net Maui "Window was allready created"
- MauiApp crashes only in release mode at sideswitch android.os.DeadObjectException
- Move .net maui contents below the drawer when it's opened
- Both `TouchBehavior.CommandParameter` and `TouchBehavior.LongPressCommandParameter` are always passed as `null` to `Command` and `LongPressCommand`
- How do I change the size of a window?
- How can I force a .NET MAUI ContentView to fill the entire remaining space of its FlexLayout parent?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- MAUI-Animating each element of a BindableLayout
- Correctly set RadioButtonGroup for CollectionView in .NET MAUI
- Multiple color schemes depending on build configuration in WPF-application
- Select XAML file based on build configuration (Visual Studio 2022, WPF)
- The type was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
- How can I tell if a control is actually Visible in UWP?
Related Questions in CONTEXTMENU
- SWT Popup Context Menu width issue
- RelayCommand not firing on MenuItem click inside DataGridTextColumn WPF MVVM
- Detection of focus change events when `WM_KILLFOCUS` and `WM_SETFOCUS` do not arrive
- Open files in new tabs in Kate
- Windows 11 - How to modify the title of a group of items in the Windows Explorer context menu?
- Menuitem item style
- Default Context Menu change only colors
- MenuItem SubMenu appearing on left hand side of ContextMenu instead of default
- Problem adding a nested MenuItem - nested items not showing
- Windows 11 - My Windows Explorer context menu item appears on the first menu but not on the second
- Synchronization Delay Between Context Menu and Selected Row in WPF ListBox
- navigate to a directory and right click on a file using pywinauto
- EA Addin - API EA_OnNotifyContextItemModified
- Adding custom macro to right click context menu in Outlook
- How to set width of the Electron Menu?
Related Questions in WPF-STYLE
- Default Context Menu change only colors
- Unable to set my attached property unless it is in a style setter
- ToggleButton complex content disappears when IsChecked
- Changing Button's content to DataTemplate based on ViewModel property
- How to replace default button style in visual studio extension with image?
- How to set button position proportional to the border of grid cell border in WPF
- Convet XAML to VB.NET
- Custom DataGrid with retention of the style
- WPF StaticResourceExtension in Generic.xaml cannot find resource named 'x'
- Extending an existing Generic.xaml style from another WPF library
- How to create a style of arc in gradient color with text value in the middle in WPF to be used for button, Label and Textblock
- Binding errors when using CompositeCollection as ItemSource with variable types on a MenuItem
- How to Execute a Storyboard of the events of any control in xaml in WPF?
- Using ResourceDictionary results in Resource 'xxx' not found
- Listbox item does not change background after selection in WPF
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

So I spend a criminal amount of time to find what is happening, this is my findings: What change color for default ContextMenager is TextBlock, it is bug coming from some wrong cashing(not sure why and how it work, but ok). this should not happen but there is this TextBlock bug that is not fully fix. What people said in past TestBlock style change Label to. There was suggestion how to avoid this problem, create control that take from TextBlock but don't change anything, and use style for this new Control.
To main part of my question, it is impossible to set up style for default ContextMenu, you need to make your own, but you can use the same method used in default one.