MAUI로 IP스캔 기능을 구현 중입니다. IP입력하는 Entry에 Focus됐을때는 검정색 Focus가 빠지면 회색으로 처리 하려고 합니다.
기본값으로 Focus 됐을 때 파란색 밑줄이 들어있어서 회색으로 바꾸게 설정 했더니 두줄로 나오는 문제가 생겼습니다.
어떻게들 해결하시나요? 검색 해보니 Entry에 밑줄 빼는 라이브러리가 있던데 다들 이 라이브러리를 쓰시나요?
xaml
<Entry x:Name="StartIpEntry"
Text="192.168.0.1"
Keyboard="Default"
Placeholder="Start IP"
FontSize="20"
HorizontalTextAlignment="Center"
BackgroundColor="Transparent"
TextChanged="OnStartIpTextChanged" />
cs
public IpScanPage()
{
InitializeComponent();
BindingContext = this;
// 밑줄 설정 하는 부분
StartIpEntry.Focused += (s, e) => StartIpUnderline.Color = Color.FromArgb("#1E3A5F");
StartIpEntry.Unfocused += (s, e) => StartIpUnderline.Color = Color.FromArgb("#9E9E9E");
EndIpEntry.Focused += (s, e) => EndIpUnderline.Color = Color.FromArgb("#1E3A5F");
EndIpEntry.Unfocused += (s, e) => EndIpUnderline.Color = Color.FromArgb("#9E9E9E");
}
