<Style x:Key="ClassAStyle" TargetType="{x:Type local:ClassA}"> <Setter…
Jump to turn (12)
- 1Can I write this without having to repeat myself and without using inheritance o
- 2I wrote it like this: it gives me this error: Error XDG0008: The name "ClassA,lo
- 3error MC3050: cannot find type 'local:ClassA local:ClassB'.
- 4is there another alternative to this method and BasedOn?
- 5in python, my gamewindow has these properties: gamewindow.left: -8 gamewindow.to
- 6no I need the method to work in different sizes not changing the size midway
- 7it doesn't work, the method gives me different rectangles, also the original rec
- 8I tried with 1600 831 and gives me a different rectangle on the screen than when
- 9don't use pygame, use gamewindow = pyautogui.getWindowsWithTitle(windowtitle)[0]
- 10it still gives me different rectangles, I need it to be the exact one
- 11it is still wrong, I need to select the same area on the screen for any size but
- 12AttributeError: module 'pyautogui' has no attribute 'coordinatesToPixels'
- Usercode
<Style x:Key="ClassBStyle" TargetType="{x:Type local:ClassB}"> <Setter Property="ColumnHeaderStyle" Value="{DynamicResource MyStyle}"/> </Style> <Style x:Key="ClassCStyle" TargetType="{x:Type local:ClassC}"> <Setter Property="ColumnHeaderStyle" Value="{DynamicResource MyStyle}"/> </Style>Can I write this without having to repeat myself and without using inheritance on the classes?
- Assistant
Yes, you can use a single style and apply it to multiple target types using the TargetType property with a comma-separated list of types:
code