Closed liamcannon closed 5 months ago
Changes broke right click drop downs (Ref photo) from Server and Client column.
Check FASTER/Models/ServerProfile.cs
, FASTER/ViewModel/ProfileViewModel.cs
, FASTER/Views/Profile.xaml
& FASTER/Views/Profile.xaml.cs
Changes broke right click drop downs (Ref photo) from Server and Client column.
Check
FASTER/Models/ServerProfile.cs
,FASTER/ViewModel/ProfileViewModel.cs
,FASTER/Views/Profile.xaml
&FASTER/Views/Profile.xaml.cs
Resolved in recent commit
The Wiki will need to get updated once this goes live.
Looks like the people have decided
I started to add the updated headers w/ the linebreak and implemented it like this. But realized it breaks the right click menu. You guys have any thoughts on a better way to do it?
<DataGridTemplateColumn Width="auto">
<DataGridTemplateColumn.Header>
<TextBlock TextWrapping="Wrap">
<Run Text="SERVER +" />
<LineBreak />
<Run Text="CLIENT" />
</TextBlock>
</DataGridTemplateColumn.Header>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate DataType="models:ProfileMod">
<CheckBox IsChecked="{Binding ClientSideChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
I could do something like
public string HeaderText { get; } = "SERVER +" + Environment.NewLine + "CLIENT";
in a utility class or in the view model
Current thing on hold is best way to implement the text stacking without breaking right click. Spoke with Jupster a few days ago and they said they'd take a peak. Solution above breaks because its using the text box instead of Header="Server + Client
in the DataGridTemplateColumn
Closes #164
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: