Skip to content

Commit

Permalink
Added minor tooltip for exclusive column
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Mar 12, 2020
1 parent 6c17f34 commit 56c4a11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DS4Windows/DS4Forms/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
10 changes: 10 additions & 0 deletions DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,16 @@ public string IdText
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;

Expand Down

0 comments on commit 56c4a11

Please sign in to comment.