Loading...
Loading...
Compare original and translation side by side
Syncfusion.Shared.WPFSyncfusion.Tools.WPFSyncfusion.Windows.Tools.Controlshttp://schemas.syncfusion.com/wpfSyncfusion.Shared.WPFSyncfusion.Tools.WPFSyncfusion.Windows.Tools.Controlshttp://schemas.syncfusion.com/wpfWizardPageWizardControlItemsSourceWizardControlWizardPageItemsSourcePageTypeFinishButtonClosesWindowCancelButtonCancelsWindowPageTypeFinishButtonClosesWindowCancelButtonCancelsWindowItemsSourceItemContainerStyleItemTemplateSelectedWizardPageTitleDescriptionNextPagePreviousPageNextItemsSourceItemContainerStyleItemTemplateSelectedWizardPageTitleDescriptionNextPagePreviousPageNextInteriorPageHeaderMinHeightBannerBackgroundBannerImageExteriorPageBannerImageMinWidthSfSkinManagerInteriorPageHeaderMinHeightBannerBackgroundBannerImageExteriorPageBannerImageMinWidthSfSkinManager<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf" ...>
<Grid>
<syncfusion:WizardControl Name="wizard"
FinishButtonClosesWindow="True"
CancelButtonCancelsWindow="True">
<syncfusion:WizardPage Title="Welcome"
Description="Introduction to the setup process."
PageType="Exterior"
BannerImage="Images/banner.png"/>
<syncfusion:WizardPage Title="Configuration"
Description="Configure your settings."
PageType="Interior"/>
<syncfusion:WizardPage Title="Finish"
Description="Setup is complete."
PageType="Exterior"/>
</syncfusion:WizardControl>
</Grid>
</Window><Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf" ...>
<Grid>
<syncfusion:WizardControl Name="wizard"
FinishButtonClosesWindow="True"
CancelButtonCancelsWindow="True">
<syncfusion:WizardPage Title="Welcome"
Description="安装流程介绍。"
PageType="Exterior"
BannerImage="Images/banner.png"/>
<syncfusion:WizardPage Title="Configuration"
Description="配置你的设置。"
PageType="Interior"/>
<syncfusion:WizardPage Title="Finish"
Description="安装已完成。"
PageType="Exterior"/>
</syncfusion:WizardControl>
</Grid>
</Window>using Syncfusion.Windows.Tools.Controls;
WizardControl wizard = new WizardControl();
wizard.FinishButtonClosesWindow = true;
wizard.CancelButtonCancelsWindow = true;
WizardPage page1 = new WizardPage { Title = "Welcome", PageType = WizardPageType.Exterior };
WizardPage page2 = new WizardPage { Title = "Configuration", PageType = WizardPageType.Interior };
WizardPage page3 = new WizardPage { Title = "Finish", PageType = WizardPageType.Exterior };
wizard.Items.Add(page1);
wizard.Items.Add(page2);
wizard.Items.Add(page3);
this.Content = wizard;using Syncfusion.Windows.Tools.Controls;
WizardControl wizard = new WizardControl();
wizard.FinishButtonClosesWindow = true;
wizard.CancelButtonCancelsWindow = true;
WizardPage page1 = new WizardPage { Title = "Welcome", PageType = WizardPageType.Exterior };
WizardPage page2 = new WizardPage { Title = "Configuration", PageType = WizardPageType.Interior };
WizardPage page3 = new WizardPage { Title = "Finish", PageType = WizardPageType.Exterior };
wizard.Items.Add(page1);
wizard.Items.Add(page2);
wizard.Items.Add(page3);
this.Content = wizard;<!-- First page: hide Back, show Next -->
<syncfusion:WizardPage Title="Step 1" BackVisible="False" NextVisible="True" FinishVisible="False"/>
<!-- Middle page: show Back and Next -->
<syncfusion:WizardPage Title="Step 2" BackVisible="True" NextVisible="True" FinishVisible="False"/>
<!-- Last page: show Back and Finish, hide Next -->
<syncfusion:WizardPage Title="Step 3" BackVisible="True" NextVisible="False" FinishVisible="True"/><!-- 第一页:隐藏Back,显示Next -->
<syncfusion:WizardPage Title="Step 1" BackVisible="False" NextVisible="True" FinishVisible="False"/>
<!-- 中间页:显示Back和Next -->
<syncfusion:WizardPage Title="Step 2" BackVisible="True" NextVisible="True" FinishVisible="False"/>
<!-- 最后一页:显示Back和Finish,隐藏Next -->
<syncfusion:WizardPage Title="Step 3" BackVisible="True" NextVisible="False" FinishVisible="True"/><syncfusion:WizardControl Name="wizard">
<syncfusion:WizardPage x:Name="step1" Title="Step 1"
NextPage="{Binding ElementName=step3}"/>
<syncfusion:WizardPage x:Name="step2" Title="Step 2"/>
<syncfusion:WizardPage x:Name="step3" Title="Step 3"
PreviousPage="{Binding ElementName=step1}"/>
</syncfusion:WizardControl><syncfusion:WizardControl Name="wizard">
<syncfusion:WizardPage x:Name="step1" Title="Step 1"
NextPage="{Binding ElementName=step3}"/>
<syncfusion:WizardPage x:Name="step2" Title="Step 2"/>
<syncfusion:WizardPage x:Name="step3" Title="Step 3"
PreviousPage="{Binding ElementName=step1}"/>
</syncfusion:WizardControl><syncfusion:WizardControl Next="Wizard_Next" ...>private void Wizard_Next(object sender, RoutedEventArgs e)
{
var wiz = (WizardControl)sender;
// Validate current page before allowing navigation
if (!ValidateCurrentPage())
e.Handled = true; // Cancel navigation
}<syncfusion:WizardControl Next="Wizard_Next" ...>private void Wizard_Next(object sender, RoutedEventArgs e)
{
var wiz = (WizardControl)sender;
// 导航前验证当前页面
if (!ValidateCurrentPage())
e.Handled = true; // 取消导航
}| Property | Type | Description |
|---|---|---|
| WizardPage | Currently displayed page |
| IEnumerable | Bind pages from a collection |
| DataTemplate | Template for bound page content |
| Style | Style applied to each WizardPage container |
| bool | Enable/disable Back button globally |
| bool | Enable/disable Next button globally |
| bool | Enable/disable Finish button globally |
| bool | Enable/disable Cancel button globally |
| bool | Show/hide Back button globally |
| bool | Show/hide Next button globally |
| bool | Show/hide Finish button globally |
| bool | Show/hide Help button globally |
| bool | Show/hide Cancel button globally |
| string | Custom label for Back button |
| string | Custom label for Next button |
| string | Custom label for Finish button |
| string | Custom label for Help button |
| string | Custom label for Cancel button |
| bool | Close window on Finish click |
| bool | Close window on Cancel click |
| double | Min header height for Interior pages |
| double | Min banner image width for Exterior pages |
| 属性 | 类型 | 说明 |
|---|---|---|
| WizardPage | 当前显示的页面 |
| IEnumerable | 从集合绑定页面 |
| DataTemplate | 绑定页面内容的模板 |
| Style | 应用于每个WizardPage容器的样式 |
| bool | 全局启用/禁用Back按钮 |
| bool | 全局启用/禁用Next按钮 |
| bool | 全局启用/禁用Finish按钮 |
| bool | 全局启用/禁用Cancel按钮 |
| bool | 全局显示/隐藏Back按钮 |
| bool | 全局显示/隐藏Next按钮 |
| bool | 全局显示/隐藏Finish按钮 |
| bool | 全局显示/隐藏Help按钮 |
| bool | 全局显示/隐藏Cancel按钮 |
| string | Back按钮的自定义标签 |
| string | Next按钮的自定义标签 |
| string | Finish按钮的自定义标签 |
| string | Help按钮的自定义标签 |
| string | Cancel按钮的自定义标签 |
| bool | 点击Finish时关闭窗口 |
| bool | 点击Cancel时关闭窗口 |
| double | Interior页面的最小标题高度 |
| double | Exterior页面的最小横幅图像宽度 |
| Property | Type | Description |
|---|---|---|
| string | Page title shown in header |
| string | Page description shown in header |
| WizardPageType | Blank, Interior, or Exterior |
| ImageSource | Banner image for the page |
| Brush | Banner area background color |
| WizardPage | Override the default next page |
| WizardPage | Override the default previous page |
| bool | Enable/disable Back on this page |
| bool | Enable/disable Next on this page |
| bool | Enable/disable Finish on this page |
| bool | Enable/disable Cancel on this page |
| bool | Show/hide Back on this page |
| bool | Show/hide Next on this page |
| bool | Show/hide Finish on this page |
| bool | Show/hide Help on this page |
| bool | Show/hide Cancel on this page |
| 属性 | 类型 | 说明 |
|---|---|---|
| string | 页面标题(显示在表头) |
| string | 页面描述(显示在表头) |
| WizardPageType | Blank、Interior或Exterior |
| ImageSource | 页面的横幅图像 |
| Brush | 横幅区域的背景颜色 |
| WizardPage | 覆盖默认的下一页 |
| WizardPage | 覆盖默认的上一页 |
| bool | 在此页面上启用/禁用Back |
| bool | 在此页面上启用/禁用Next |
| bool | 在此页面上启用/禁用Finish |
| bool | 在此页面上启用/禁用Cancel |
| bool | 在此页面上显示/隐藏Back |
| bool | 在此页面上显示/隐藏Next |
| bool | 在此页面上显示/隐藏Finish |
| bool | 在此页面上显示/隐藏Help |
| bool | 在此页面上显示/隐藏Cancel |