Skip to content

feat: Add country flag icons to IP Info column - #9821

Closed
behrouz-asghari wants to merge 1 commit into
2dust:masterfrom
behrouz-asghari:feature/ip-lookup-flag-icons
Closed

feat: Add country flag icons to IP Info column#9821
behrouz-asghari wants to merge 1 commit into
2dust:masterfrom
behrouz-asghari:feature/ip-lookup-flag-icons

Conversation

@behrouz-asghari

Copy link
Copy Markdown
  • Add PNG flag icons from lipis/flag-icons (242 countries) to Resources/Flags
  • Create FlagImageHelper for loading and caching flag images at runtime
  • Create FlagImageConverter for XAML data binding (country code to flag image)
  • Create MyDGTemplateColumn for DataGrid template columns with ExName support
  • Change IP Info column from DataGridTextColumn to DataGridTemplateColumn showing flag image + country code + IP address
  • Set default IPAPIUrl (https://api.ip.sb/geoip) so IP lookup works out of the box
  • Update RestoreUI/StorageUI to handle both MyDGTextColumn and MyDGTemplateColumn
Screenshot (158)

- Add PNG flag icons from lipis/flag-icons (242 countries) to Resources/Flags
- Create FlagImageHelper for loading and caching flag images at runtime
- Create FlagImageConverter for XAML data binding (country code to flag image)
- Create MyDGTemplateColumn for DataGrid template columns with ExName support
- Change IP Info column from DataGridTextColumn to DataGridTemplateColumn
  showing flag image + country code + IP address
- Set default IPAPIUrl (https://api.ip.sb/geoip) so IP lookup works out of the box
- Update RestoreUI/StorageUI to handle both MyDGTextColumn and MyDGTemplateColumn
- Remove emoji from IpInfoResult.ToString() (WPF does not render flag emoji)
@autorepobot

autorepobot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

加这么多文件是不能接受的
@2dust 其实可以单独找一个占用空间小的emoji文件

@autorepobot

Copy link
Copy Markdown
Contributor

dotnet/wpf#11684

@2dust 2dust closed this Jul 25, 2026
@2dust

2dust commented Jul 25, 2026

Copy link
Copy Markdown
Owner

前面已经拒绝过类似的 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants