0
私はuCommerceで作業しています。既存のタブの追加ボタンの1つを削除したいと思います。uCommerceのタブ上にある既存のボタンを削除するにはどうすればいいですか?
私は
すべてが正常に動作しているが、私はimageButtomがRemoveMenuButtion()メソッド内にあるものを知ってはいけないthis記事にボタン部を取り外すこれに続きました。マニュアルの具体的なものは何もかかわらず、存在しないとして、私は、問題はhere-
var imageButton = new ImageButton { ImageUrl = $"{_pathService.GetPath()}/images/ui/add.png"};
しかし、わからないと思う
public PipelineExecutionResult Execute(SectionGroup subject)
{
if (subject.GetViewName() != Constants.UI.Pages.Orders.Order)
return PipelineExecutionResult.Success;
var section = subject.Sections.FirstOrDefault(s => s.OriginalName == Constants.UI.Sections.Orders.Order.Shipping);
if (section == null) return PipelineExecutionResult.Success;
var imageButton = new ImageButton { ImageUrl = $"{_pathService.GetPath()}/images/ui/add.png"};
section.Menu.RemoveMenuButtion(imageButton);
return PipelineExecutionResult.Success;
}
- ここ
は、私が持っているコードです。ご協力いただきまして誠にありがとうございます。
おかげでこの答えを探している人のために