public override FrameworkElement CreateLogIcon() { var arrow_source = IconUtils.GetImageSource("icon_arrow"); var color = IconUtils.GetTeamColor(NewTeam); var new_team_icon = IconUtils.CreateTeamIcon(NewTeam); new_team_icon.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; new_team_icon.Margin = new System.Windows.Thickness(2); new_team_icon.Width = 26; var old_team_icon = IconUtils.CreateTeamIcon(OldTeam); old_team_icon.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; old_team_icon.Margin = new System.Windows.Thickness(2); old_team_icon.Width = 26; var arrow_image = new Image { Source = arrow_source, Stretch = Stretch.Uniform, HorizontalAlignment = System.Windows.HorizontalAlignment.Center, Margin = new System.Windows.Thickness(2), Width = 26, }; var grid = IconUtils.CreateBaseLogIcon(color); grid.Children.Add(old_team_icon); grid.Children.Add(arrow_image); grid.Children.Add(new_team_icon); return(grid); }
public override FrameworkElement CreateMapIcon() { return(IconUtils.CreateMapIcon(Player, IconUtils.CreateTeamIcon(NewTeam))); }