WaitIndicator 적용방법



[ WaitIndicator.xaml ]

xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core
dx:ThemeManager.ThemeName="LightGray" >     //Wait 디자인 변경

    <dx:WaitIndicator Content="Loading..." DeferedVisibility="True">  
            <dx:WaitIndicator.ContentTemplate> 
                <DataTemplate> 
                    <StackPanel Orientation="Vertical"> 
                        <TextBlock FontSize="17" Text="잠시만 기다려주십시오." /> 
                        <TextBlock Text="{Binding}" /> 
                    </StackPanel> 
                </DataTemplate> 
            </dx:WaitIndicator.ContentTemplate> 
    </dx:WaitIndicator>


[ WaitIndicator.xaml.cs ]        추가부분

public static void ShowSplashScreen()

{

    if (!DevExpress.Xpf.Core.DXSplashScreen.IsActive)

    {

        DevExpress.Xpf.Core.DXSplashScreen.Show<WaitIndicator>();

    }

}


public static void CloseSplashScreen()

{

    if (DevExpress.Xpf.Core.DXSplashScreen.IsActive)

    {

        DevExpress.Xpf.Core.DXSplashScreen.Close();

    }

}


[ ButtonClick_Event ] 부분에 사용

WaitIndicator.ShowSplashScreen();

if (DevExpress.Xpf.Core.DXSplashScreen.IsActive)

{

        WaitIndicator.CloseSplashScreen();

 }




※정상적으로 작동되었는데 출력위치가 중앙이 아닐경우 WPF_UserControl이 아닌 윈폼으로 추가해야함.

WinForm으로 추가방법http://plzhoney.tistory.com/20?category=752079




+ Recent posts