Added minor tooltip for exclusive column

This commit is contained in:
Travis Nickles 2020-03-12 08:18:31 -05:00
parent 6c17f34b3c
commit 56c4a1143e
2 changed files with 12 additions and 1 deletions

View File

@ -63,7 +63,8 @@
<GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel Width="{Binding ElementName=exclusiveColumn, Path=Width}">
<Image Source="{Binding ExclusiveSource}" Stretch="Uniform" Width="20" Height="20" HorizontalAlignment="Center" />
<Image Source="{Binding ExclusiveSource}" Stretch="Uniform" Width="20" Height="20" HorizontalAlignment="Center"
ToolTip="{Binding IsExclusiveText}" />
</StackPanel>
</DataTemplate>
</GridViewColumn.CellTemplate>

View File

@ -303,6 +303,16 @@ namespace DS4WinWPF.DS4Forms.ViewModels
get => $"{device.DisplayName} ({device.MacAddress})";
}
public string IsExclusiveText
{
get
{
string temp = device.isExclusive() ? "Exclusive Access" :
"Shared Access";
return temp;
}
}
public delegate void CustomColorHandler(CompositeDeviceModel sender);
public event CustomColorHandler RequestColorPicker;