AppBar.IsSticky 속성

정의

AppBar가 light 해제 시 닫지 않는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool IsSticky { bool get(); void set(bool value); };
bool IsSticky();

void IsSticky(bool value);
public bool IsSticky { get; set; }
var boolean = appBar.isSticky;
appBar.isSticky = boolean;
Public Property IsSticky As Boolean
<AppBar IsSticky="bool" .../>

속성 값

Boolean

bool

AppBar가 light 해제 시 닫지 않으면 true입니다. Light 해제 시 AppBar 가 숨겨져 있으면 false입니다.

예제

<AppBar IsSticky="True">
    <Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
        <Button Style="{StaticResource HelpAppBarButtonStyle}" 
                Click="Button_Click"/>
        </StackPanel>
    </Grid>
</AppBar>

설명

기본적으로 앱 바는 사용자가 앱 바 외부의 어디에서나 앱과 상호 작용할 때 해제됩니다. 이를 빠른 해제라고 합니다. 명령을 계속 표시하려면 IsSticky 속성을 true로 설정하여 해제 모드를 변경할 수 있습니다. 앱 바가 고정되면 사용자가 마우스 오른쪽 단추를 클릭하거나 Windows+Z를 누르거나 화면 위쪽 또는 아래쪽 가장자리에서 살짝 밀면 해제됩니다.

적용 대상

추가 정보