Skip to content

Commit

Permalink
Added ActionDisplay property
Browse files Browse the repository at this point in the history
  • Loading branch information
CPKreu committed Nov 30, 2020
1 parent d2dc1c7 commit ada3f1c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion PixiEditor/Models/Tools/Tool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,25 @@ namespace PixiEditor.Models.Tools
public abstract class Tool : NotifyableObject
{
private bool isActive;
private string actionDisplay = "";

public abstract ToolType ToolType { get; }

public string ImagePath => $"/Images/{ToolType}Image.png";

public bool HideHighlight { get; set; } = false;

public string Tooltip { get; set; }
public string Tooltip { get; set; }

public string ActionDisplay
{
get => actionDisplay;
set
{
actionDisplay = value;
RaisePropertyChanged("ActionDisplay");
}
}

public bool IsActive
{
Expand Down
1 change: 1 addition & 0 deletions PixiEditor/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@
</avalondock:DockingManager>
</Grid>
<DockPanel Grid.Row="3" Grid.Column="1">
<TextBlock Text="{Binding BitmapManager.SelectedTool.ActionDisplay}" Foreground="White" FontSize="16" VerticalAlignment="Center"/>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock Text="X:" Foreground="White" FontSize="16"/>
<TextBlock Margin="4,0,10,0" Text="{Binding IoSubViewModel.MouseXOnCanvas, Converter={StaticResource DoubleToIntConverter}}" Foreground="White" FontSize="16"/>
Expand Down

0 comments on commit ada3f1c

Please sign in to comment.