mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-06 11:34:59 +00:00
refactor: use DataTemplates
instead of create NamedHighlightedTextBlock
manually for menu item (#1216)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
5fd074a9b6
commit
41416a6bed
7 changed files with 69 additions and 68 deletions
|
@ -7,16 +7,14 @@ namespace SourceGit.ViewModels
|
|||
public Models.Branch Target
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public Models.Branch TrackingRemoteBranch
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public object DeleteTrackingRemoteTip
|
||||
public string DeleteTrackingRemoteTip
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
|
@ -37,7 +35,7 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
TrackingRemoteBranch = repo.Branches.Find(x => x.FullName == branch.Upstream);
|
||||
if (TrackingRemoteBranch != null)
|
||||
DeleteTrackingRemoteTip = new Views.NameHighlightedTextBlock("DeleteBranch.WithTrackingRemote", TrackingRemoteBranch.FriendlyName);
|
||||
DeleteTrackingRemoteTip = App.Text("DeleteBranch.WithTrackingRemote", TrackingRemoteBranch.FriendlyName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue