hello!
i decided to listen to sergey advice and convert my project from winform application to wpf. now i'm having trouble trying to handle the style for my controls. the problem goes like this:
i have 2 datagrid in my window. one for income sources (green) and one for outcome sources (red color). the project is in the finance field. aniway, i manage to connect the style of the grid to the datagrid. now, i need to have 2 styles, one for each datagrid (because i need the income grid will change the color to green while hover and the outcome grid to red and so for other events).
i need to know, in a situation when i have 2 style called "DgOutcomeStyle" and "DgIncomeStyle", how to make a style goes specific to only one datagrid because right now the style is effect every datagris i create.
hope i'v been clear enough.
thanks,
oron.
<datagrid x:name="DgIncome" xmlns:x="#unknown">
Style="{x:Null}"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Height="669" Width="150"
removed="{x:Null}"
BorderThickness="0"
HeadersVisibility="None" Margin="400,10,0,0" BorderBrush="{x:Null}" Grid.Column="4" GridLinesVisibility="None" FontWeight="SemiBold" FontSize="18"
>
<datagrid x:name="DgOutcome" xmlns:x="#unknown">
HorizontalAlignment="Left"
VerticalAlignment="Top"
Height="669" Width="150"
removed="{x:Null}"
BorderThickness="0"
HeadersVisibility="None" BorderBrush="{x:Null}" Margin="10,10,0,0" GridLinesVisibility="None" FontWeight="SemiBold" FontSize="18"
>