Dreamine.UI.Wpf.Controls 1.0.1
Dreamine.UI.Wpf.Controls 사용자 인터페이스 기능과 구성 요소를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.UI.Wpf.Controls.Navigation.VsNavigationHelper 클래스 참조

더 자세히 ...

정적 Public 멤버 함수

static ButtonData Create (string content, ICommand? command=null, int minGrade=0, string? imagePath=null, bool isSelected=false, bool isFocusable=true, Visibility visibility=Visibility.Visible, IconPosition imagePosition=IconPosition.Top)

속성

static bool IsOnceLoginEnabled = false [get, set]
static ? object CurrentUser = null [get, set]

정적 Private 멤버 함수

static SolidColorBrush GetColor (string hex)

상세한 설명

탐색 로그인 상태를 공유하고 공통 스타일의 버튼 데이터를 만드는 도우미입니다.

DreamineNavigationBar.xaml.cs 파일의 1221 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ Create()

ButtonData Dreamine.UI.Wpf.Controls.Navigation.VsNavigationHelper.Create ( string content,
ICommand? command = null,
int minGrade = 0,
string? imagePath = null,
bool isSelected = false,
bool isFocusable = true,
Visibility visibility = Visibility::Visible,
IconPosition imagePosition = IconPosition::Top )
inlinestatic

공통 탐색 스타일과 지정한 동작 상태가 적용된 버튼 데이터를 만듭니다.

매개변수
content버튼에 표시할 텍스트입니다.
command클릭 시 실행할 선택적 명령입니다.
minGrade버튼 사용에 필요한 최소 등급입니다.
imagePath선택적 이미지 경로입니다.
isSelected초기 선택 상태입니다.
isFocusable클릭 후 선택 가능한지 나타냅니다.
visibility초기 표시 상태입니다.
imagePosition텍스트에 대한 이미지 위치입니다.
반환값
구성된 새 ButtonData 인스턴스입니다.

DreamineNavigationBar.xaml.cs 파일의 1323 번째 라인에서 정의되었습니다.

1332 {
1333 return new ButtonData
1334 {
1335 Content = content,
1336 Command = command,
1337 MinimumGrade = minGrade,
1338 ImagePath = imagePath!,
1339 ImagePosition = imagePosition,
1340 FontWeight = FontWeights.Bold,
1341 Foreground = GetColor("#143a5a"),
1342 ShineColor = GetColor("#104E8B"),
1343 ShineColorBottom = Brushes.White,
1344 BackgroundTop = Brushes.White,
1345 Background = Brushes.LightGray,
1346 IsSelected = isSelected,
1347 IsFocusableEx = isFocusable,
1348 Visibility = visibility
1349 };
1350 }

다음을 참조함 : GetColor().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ GetColor()

SolidColorBrush Dreamine.UI.Wpf.Controls.Navigation.VsNavigationHelper.GetColor ( string hex)
inlinestaticprivate

WPF 색상 문자열을 단색 브러시로 변환합니다.

매개변수
hex변환할 16진수 또는 명명된 색상 문자열입니다.
반환값
변환된 색상을 사용하는 새 브러시입니다.
예외
FormatExceptionhex 가 유효한 색상 표현이 아닐 때 발생할 수 있습니다.
InvalidCastException변환 결과가 Color가 아닐 때 발생합니다.

DreamineNavigationBar.xaml.cs 파일의 1392 번째 라인에서 정의되었습니다.

1393 {
1394 return new SolidColorBrush((Color)ColorConverter.ConvertFromString(hex));
1395 }

다음에 의해서 참조됨 : Create().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

속성 문서화

◆ CurrentUser

? object Dreamine.UI.Wpf.Controls.Navigation.VsNavigationHelper.CurrentUser = null
staticgetset

현재 인증된 사용자 객체를 가져오거나 설정합니다.

DreamineNavigationBar.xaml.cs 파일의 1241 번째 라인에서 정의되었습니다.

1241{ get; set; } = null;

◆ IsOnceLoginEnabled

bool Dreamine.UI.Wpf.Controls.Navigation.VsNavigationHelper.IsOnceLoginEnabled = false
staticgetset

한 번 로그인 모드가 활성화되었는지 가져오거나 설정합니다.

DreamineNavigationBar.xaml.cs 파일의 1231 번째 라인에서 정의되었습니다.

1231{ get; set; } = false;

다음에 의해서 참조됨 : Dreamine.UI.Wpf.Controls.DreamineButton.OnOnceLoginChanged(), Dreamine.UI.Wpf.Controls.Navigation.DreamineNavigationBar.OnOnceLoginChanged().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: