I have a GridView(B) inside a GridView(A). The style for GridView-A is different from style for GridView-B, but the issue arises when my GridView-B inherits all the style from GridView-A.
I don't want that to happen.
Is their any way, I can achieve this in xaml only ?
Just Follow the follwoing steps and let me know if you have any problem with this. Out of these you meight be aware already. May be you miss something.
1) Add ResourceDictionary as style sheet.
2) Add resource file into your user control/window as follows...
3) Use those specific styles to designated grid inside the usercontrol/window
You can add these both styles in code behind also. Hope it helps!!!