整理代码
This commit is contained in:
@@ -31,41 +31,41 @@
|
||||
<Grid>
|
||||
<neu:StackPanel Background="{DynamicResource BackgroundLayoutBrush}" Spacing="10">
|
||||
<neu:PropertyField
|
||||
Grid.Row="0"
|
||||
Margin="6,0"
|
||||
PropertyName="属性"
|
||||
PropertyValue="123" />
|
||||
Grid.Row="0"
|
||||
Margin="6,0"
|
||||
PropertyName="属性"
|
||||
PropertyValue="123" />
|
||||
<neu:PropertyField
|
||||
Grid.Row="1"
|
||||
Margin="6,0"
|
||||
PropertyName="属性x"
|
||||
PropertyValue="154" />
|
||||
Grid.Row="1"
|
||||
Margin="6,0"
|
||||
PropertyName="属性x"
|
||||
PropertyValue="154" />
|
||||
<UniformGrid
|
||||
Grid.Row="6"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="20">
|
||||
Grid.Row="6"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="20">
|
||||
<Button
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Left" />
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Left" />
|
||||
<Button
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Top" />
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Top" />
|
||||
<Button
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Right" />
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.Placement="Right" />
|
||||
<Button
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.InitialShowDelay="0"
|
||||
ToolTipService.Placement="Bottom" />
|
||||
<TextBox Style="{StaticResource NeuTextBox}" Text="TextBox" />
|
||||
Content="Button"
|
||||
Style="{StaticResource NeuButtonStyle}"
|
||||
ToolTip="测试"
|
||||
ToolTipService.InitialShowDelay="0"
|
||||
ToolTipService.Placement="Bottom" />
|
||||
<TextBox Style="{StaticResource NeuTextBoxStyle}" Text="TextBox" />
|
||||
</UniformGrid>
|
||||
</neu:StackPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
x:Name="PrimaryColorSelectComboBox"
|
||||
VerticalContentAlignment="Center"
|
||||
SelectionChanged="PrimaryColorSelectComboBox_SelectionChanged"
|
||||
Style="{StaticResource FlattenComboBox}">
|
||||
Style="{StaticResource FlattenComboBoxStyle}">
|
||||
<ComboBoxItem>
|
||||
<Rectangle
|
||||
Width="30"
|
||||
@@ -300,7 +300,7 @@
|
||||
Height="20"
|
||||
Content="Text"
|
||||
Orientation="Vertical" />
|
||||
<Separator Height="20" Style="{StaticResource VerticalSeparator}" />
|
||||
<Separator Height="20" Style="{StaticResource VerticalSeparatorStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</StackPanel>
|
||||
<StackPanel n:AnchorAssist.Header="图标、文本、标签">
|
||||
@@ -321,26 +321,26 @@
|
||||
FontWeight="Regular"
|
||||
Foreground="{DynamicResource PrimaryNormalBrush}"
|
||||
Symbol="Save" />
|
||||
<n:Pill
|
||||
<n:Chip
|
||||
Margin="10"
|
||||
Content="必应"
|
||||
Url="www.bing.com">
|
||||
<n:Pill.Header>
|
||||
<n:Chip.Header>
|
||||
<n:IconElement Symbol="Search" />
|
||||
</n:Pill.Header>
|
||||
</n:Pill>
|
||||
</n:Chip.Header>
|
||||
</n:Chip>
|
||||
|
||||
<n:Pill
|
||||
<n:Chip
|
||||
Margin="10"
|
||||
HorizontalAlignment="Left"
|
||||
Content="C盘"
|
||||
HeadBackground="{DynamicResource PrimaryGradientBrush}"
|
||||
Url="C:\">
|
||||
<n:Pill.Header>
|
||||
<n:Chip.Header>
|
||||
<n:IconElement Symbol="HardDisk" />
|
||||
</n:Pill.Header>
|
||||
</n:Pill>
|
||||
<n:Pill
|
||||
</n:Chip.Header>
|
||||
</n:Chip>
|
||||
<n:Chip
|
||||
Margin="10"
|
||||
Content="C盘"
|
||||
HeadBackground="{DynamicResource PrimaryGradientBrush}"
|
||||
@@ -461,12 +461,12 @@
|
||||
<Button
|
||||
Margin="4"
|
||||
Content="扁平按钮"
|
||||
Style="{StaticResource FlattenButton}" />
|
||||
Style="{StaticResource FlattenButtonStyle}" />
|
||||
<Button
|
||||
Margin="4"
|
||||
Content="禁用按钮"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource FlattenButton}" />
|
||||
Style="{StaticResource FlattenButtonStyle}" />
|
||||
<n:Hyperlink Margin="4" Content="超链接" />
|
||||
</UniformGrid>
|
||||
<UniformGrid Rows="1">
|
||||
@@ -476,11 +476,11 @@
|
||||
<RepeatButton Content="RepeatButton" IsEnabled="False" />
|
||||
</UniformGrid>
|
||||
<UniformGrid Rows="1">
|
||||
<Button n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}" Style="{StaticResource IconButton}" />
|
||||
<Button n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}" Style="{StaticResource IconButtonStyle}" />
|
||||
<Button
|
||||
n:ButtonAssist.Icon="{n:Icon SymbolValue=Add}"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource IconButton}" />
|
||||
Style="{StaticResource IconButtonStyle}" />
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
@@ -513,7 +513,7 @@
|
||||
VerticalContentAlignment="Stretch"
|
||||
n:ControlAssist.CornerRadius="0 4 4 0"
|
||||
Content="Search"
|
||||
Style="{StaticResource FlattenButton}" />
|
||||
Style="{StaticResource FlattenButtonStyle}" />
|
||||
</n:InputAssist.Suffix>
|
||||
</TextBox>
|
||||
<TextBox n:InputAssist.Placeholder="请输入用户名">
|
||||
@@ -561,14 +561,14 @@
|
||||
Precision="3"
|
||||
Step="0.05"
|
||||
Value="10" />
|
||||
<n:NumericBox CurValue="100" Style="{StaticResource DefaultTextBox}" />
|
||||
<n:NumericBox CurValue="100" Style="{StaticResource DefaultTextBoxStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
<n:FlexibleRowPanel>
|
||||
<TextBox Margin="4" Style="{StaticResource NeuTextBox}" />
|
||||
<TextBox Margin="4" Style="{StaticResource NeuTextBoxStyle}" />
|
||||
<TextBox
|
||||
Margin="4"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource NeuTextBox}" />
|
||||
Style="{StaticResource NeuTextBoxStyle}" />
|
||||
<RichTextBox Grid.Row="2">
|
||||
<FlowDocument>
|
||||
<Paragraph>
|
||||
@@ -794,37 +794,37 @@
|
||||
IsEnabled="False" />
|
||||
</UniformGrid>
|
||||
<UniformGrid Rows="1">
|
||||
<CheckBox Content="复选框" Style="{StaticResource SlotCheckBox}" />
|
||||
<CheckBox Content="复选框" Style="{StaticResource SlotCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource SlotCheckBox}" />
|
||||
Style="{StaticResource SlotCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource SlotCheckBox}" />
|
||||
Style="{StaticResource SlotCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsChecked="True"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource SlotCheckBox}" />
|
||||
Style="{StaticResource SlotCheckBoxStyle}" />
|
||||
</UniformGrid>
|
||||
</StackPanel>
|
||||
<UniformGrid Rows="1">
|
||||
<CheckBox Content="复选框" Style="{StaticResource EmbossCheckBox}" />
|
||||
<CheckBox Content="复选框" Style="{StaticResource EmbossCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource EmbossCheckBox}" />
|
||||
Style="{StaticResource EmbossCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource EmbossCheckBox}" />
|
||||
Style="{StaticResource EmbossCheckBoxStyle}" />
|
||||
<CheckBox
|
||||
Content="复选框"
|
||||
IsChecked="True"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource EmbossCheckBox}" />
|
||||
Style="{StaticResource EmbossCheckBoxStyle}" />
|
||||
</UniformGrid>
|
||||
<StackPanel n:AnchorAssist.Header="单选框 RadioButton">
|
||||
<n:FlexibleRowPanel>
|
||||
@@ -857,22 +857,22 @@
|
||||
Content="单选按钮 A"
|
||||
GroupName="RadioG1"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource EmbossRadioButton}" />
|
||||
Style="{StaticResource EmbossRadioButtonStyle}" />
|
||||
<RadioButton
|
||||
Content="禁用单选按钮 A"
|
||||
GroupName="RadioG2"
|
||||
IsChecked="True"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource EmbossRadioButton}" />
|
||||
Style="{StaticResource EmbossRadioButtonStyle}" />
|
||||
<RadioButton
|
||||
Content="单选按钮 C"
|
||||
GroupName="RadioG1"
|
||||
Style="{StaticResource EmbossRadioButton}" />
|
||||
Style="{StaticResource EmbossRadioButtonStyle}" />
|
||||
<RadioButton
|
||||
Content="禁用单选按钮 C"
|
||||
GroupName="RadioG2"
|
||||
IsEnabled="False"
|
||||
Style="{StaticResource EmbossRadioButton}" />
|
||||
Style="{StaticResource EmbossRadioButtonStyle}" />
|
||||
</n:FlexibleRowPanel>
|
||||
</StackPanel>
|
||||
<StackPanel n:AnchorAssist.Header="滑动/滚动条 Slider">
|
||||
@@ -1138,7 +1138,7 @@
|
||||
</StackPanel>
|
||||
<StackPanel n:AnchorAssist.Header="数据展示 TabControl">
|
||||
<WrapPanel>
|
||||
<TabControl Style="{StaticResource NavigationTabControl}">
|
||||
<TabControl Style="{StaticResource NavigationTabControlStyle}">
|
||||
<TabItem Header="选项卡 1">
|
||||
<Grid Margin="4">
|
||||
<!-- <Separator /> -->
|
||||
@@ -1153,7 +1153,7 @@
|
||||
<TabItem Header="选项卡 2" />
|
||||
<TabItem Header="禁用选项卡" IsEnabled="False" />
|
||||
</TabControl>
|
||||
<TabControl Style="{StaticResource NavigationTabControl}" TabStripPlacement="Bottom">
|
||||
<TabControl Style="{StaticResource NavigationTabControlStyle}" TabStripPlacement="Bottom">
|
||||
<TabItem Header="选项卡 1">
|
||||
<Grid>
|
||||
<!-- <Separator /> -->
|
||||
@@ -1190,14 +1190,14 @@
|
||||
Margin="4"
|
||||
DataContext="{StaticResource Dgd}"
|
||||
ItemsSource="{Binding DataCollection}"
|
||||
Style="{StaticResource DataGridCheckBoxHead}" />
|
||||
Style="{StaticResource CheckBoxHeadDataGridStyle}" />
|
||||
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem Header="选项卡 2" />
|
||||
<TabItem Header="禁用选项卡" IsEnabled="False" />
|
||||
</TabControl>
|
||||
<TabControl Style="{StaticResource FlattenTabControl}" TabStripPlacement="Top">
|
||||
<TabControl Style="{StaticResource FlattenTabControlStyle}" TabStripPlacement="Top">
|
||||
<TabItem Header="选项卡 1">
|
||||
<StackPanel Margin="4">
|
||||
<n:NeuDataGrid
|
||||
@@ -1216,7 +1216,7 @@
|
||||
<TabItem Header="选项卡 2" />
|
||||
<TabItem Header="禁用选项卡" IsEnabled="False" />
|
||||
</TabControl>
|
||||
<TabControl Style="{StaticResource FlattenTabControl}" TabStripPlacement="Left">
|
||||
<TabControl Style="{StaticResource FlattenTabControlStyle}" TabStripPlacement="Left">
|
||||
<TabItem Header="选项卡 1">
|
||||
<Grid Margin="4">
|
||||
<!-- <Separator /> -->
|
||||
@@ -1244,7 +1244,7 @@
|
||||
</i:Interaction.Triggers>
|
||||
<!-- 2. RowStyle现在只负责绑定详情可见性,不再处理事件 -->
|
||||
<n:NeuDataGrid.RowStyle>
|
||||
<Style BasedOn="{StaticResource DataGridRowDefault}" TargetType="{x:Type DataGridRow}">
|
||||
<Style BasedOn="{StaticResource DefaultDataGridRowStyle}" TargetType="{x:Type DataGridRow}">
|
||||
<Setter Property="DetailsVisibility" Value="{Binding IsDetailsVisible, Converter={x:Static n:BooleanToVisibilityConverter.CollapsedInstance}, Mode=TwoWay}" />
|
||||
</Style>
|
||||
</n:NeuDataGrid.RowStyle>
|
||||
@@ -1361,7 +1361,7 @@
|
||||
</n:Accordion.ItemContainerStyle>
|
||||
</n:Accordion>
|
||||
<!-- 显示分页后的数据 -->
|
||||
<n:PaginationControl
|
||||
<n:Pagination
|
||||
Margin="0,15,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
CurrentPage="{Binding CurrentPage, Mode=TwoWay}"
|
||||
|
||||
@@ -372,7 +372,9 @@ public partial class MainWindow
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#region 数据模型
|
||||
|
||||
Reference in New Issue
Block a user