mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-26 16:41:50 +01:00
Added name to ID column
This commit is contained in:
parent
bc1a4a8b43
commit
6c17f34b3c
@ -46,7 +46,7 @@
|
||||
<GridViewColumn x:Name="idColumn" Header="ID" Width="120">
|
||||
<GridViewColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock x:Name="idColumnTxtB" Text="{Binding Device.MacAddress, Mode=OneWay}" ToolTip="{Binding TooltipIDText, Mode=OneWay}" ToolTipOpening="IdColumnTxtB_ToolTipOpening" Tag="{Binding DevIndex, Mode=OneTime}"/>
|
||||
<TextBlock x:Name="idColumnTxtB" Text="{Binding IdText, Mode=OneWay}" ToolTip="{Binding TooltipIDText, Mode=OneWay}" ToolTipOpening="IdColumnTxtB_ToolTipOpening" Tag="{Binding DevIndex, Mode=OneTime}"/>
|
||||
</DataTemplate>
|
||||
</GridViewColumn.CellTemplate>
|
||||
</GridViewColumn>
|
||||
|
@ -298,6 +298,11 @@ namespace DS4WinWPF.DS4Forms.ViewModels
|
||||
private ContextMenu lightContext;
|
||||
public ContextMenu LightContext { get => lightContext; set => lightContext = value; }
|
||||
|
||||
public string IdText
|
||||
{
|
||||
get => $"{device.DisplayName} ({device.MacAddress})";
|
||||
}
|
||||
|
||||
public delegate void CustomColorHandler(CompositeDeviceModel sender);
|
||||
public event CustomColorHandler RequestColorPicker;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user