add support for search

This commit is contained in:
NaBian committed 2019-01-17 15:00:08 +08:00
1 parent 9b827cba3c
commit d0094f049e
9 files changed
+415 -314

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ namespace HandyControl.Controls
{ {
RaiseEvent(new FunctionEventArgs<string>(SearchStartedEvent, this) RaiseEvent(new FunctionEventArgs<string>(SearchStartedEvent, this)
{ {
Source = Text Info = Text
}); });
})); }));
} }
@@ -72,7 +72,7 @@ namespace HandyControl.Controls
{ {
RaiseEvent(new FunctionEventArgs<string>(SearchStartedEvent, this) RaiseEvent(new FunctionEventArgs<string>(SearchStartedEvent, this)
{ {
Source = Text Info = Text
}); });
} }
} }
@@ -16,6 +16,7 @@
<Setter Property="Background" Value="{DynamicResource RegionBrush}"/> <Setter Property="Background" Value="{DynamicResource RegionBrush}"/>
<Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/> <Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}"/>
<Setter Property="Height" Value="30"/> <Setter Property="Height" Value="30"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="BorderThickness" Value="1"/> <Setter Property="BorderThickness" Value="1"/>
<Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template"> <Setter Property="Template">
@@ -28,7 +29,7 @@
<ColumnDefinition Width="30"/> <ColumnDefinition Width="30"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/> <Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/>
<controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" Padding="5,6" Margin="0,0,0,1" x:Name="PART_TextBox" HorizontalAlignment="Stretch" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> <controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" Padding="5,6" Margin="0,0,0,1" x:Name="PART_TextBox" HorizontalAlignment="Stretch" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid> </Grid>
</Border> </Border>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
@@ -64,7 +65,7 @@
<ColumnDefinition Width="30"/> <ColumnDefinition Width="30"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/> <Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/>
<controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> <controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid> </Grid>
</Border> </Border>
</Grid> </Grid>
@@ -98,7 +99,7 @@
<ColumnDefinition Width="30"/> <ColumnDefinition Width="30"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/> <Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="1" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/>
<controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> <controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid> </Grid>
</Border> </Border>
</Grid> </Grid>
@@ -156,7 +157,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Command="interactivity:ControlCommands.Clear" Visibility="Collapsed" Name="ButtonClear" Width="16" Grid.Column="1" Style="{StaticResource ButtonIcon}" Padding="0,6" controls:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" Foreground="{Binding BorderBrush,ElementName=templateRoot}"/> <Button Command="interactivity:ControlCommands.Clear" Visibility="Collapsed" Name="ButtonClear" Width="16" Grid.Column="1" Style="{StaticResource ButtonIcon}" Padding="0,6" controls:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" Foreground="{Binding BorderBrush,ElementName=templateRoot}"/>
<Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="2,7,7,7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="2" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/> <Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="2,7,7,7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="2" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/>
<controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> <controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid> </Grid>
</Border> </Border>
</Grid> </Grid>
@@ -217,7 +218,7 @@
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Command="interactivity:ControlCommands.Clear" Visibility="Collapsed" Name="ButtonClear" Width="16" Grid.Column="1" Style="{StaticResource ButtonIcon}" Padding="0,6" controls:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" Foreground="{Binding BorderBrush,ElementName=templateRoot}"/> <Button Command="interactivity:ControlCommands.Clear" Visibility="Collapsed" Name="ButtonClear" Width="16" Grid.Column="1" Style="{StaticResource ButtonIcon}" Padding="0,6" controls:IconElement.Geometry="{StaticResource DeleteFillCircleGeometry}" Foreground="{Binding BorderBrush,ElementName=templateRoot}"/>
<Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="2,7,7,7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="2" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/> <Button Command="interactivity:ControlCommands.Search" Style="{StaticResource ButtonIcon}" Padding="2,7,7,7" controls:IconElement.Geometry="{StaticResource SearchGeometry}" Grid.Column="2" Foreground="{Binding BorderBrush,ElementName=templateRoot}" Focusable="False" Grid.Row="0"/>
<controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> <controls:WatermarkTextBox CaretBrush="{TemplateBinding Foreground}" x:Name="PART_TextBox" Padding="5,6" Margin="0,0,0,1" Watermark="{Binding Path=(controls:InfoElement.Placeholder),RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="Stretch" Grid.Column="0" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Grid.Row="0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid> </Grid>
</Border> </Border>
</Grid> </Grid>
+1
View File
@@ -692,6 +692,7 @@
<Generator>TextTemplatingFileGenerator</Generator> <Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>MessageToken.cs</LastGenOutput> <LastGenOutput>MessageToken.cs</LastGenOutput>
</Content> </Content>
<Resource Include="Resources\Img\LeftMainContent\SortAscending_grey_16x.png" />
<Resource Include="Resources\Img\LeftMainContent\LinearCarousel_16x.png" /> <Resource Include="Resources\Img\LeftMainContent\LinearCarousel_16x.png" />
<Resource Include="Resources\Img\Album\1.jpg" /> <Resource Include="Resources\Img\Album\1.jpg" />
<Resource Include="Resources\Img\Album\10.jpg" /> <Resource Include="Resources\Img\Album\10.jpg" />
+10 -1
View File
@@ -47,7 +47,7 @@ namespace HandyControlDemo.Properties.Langs {
} }
/// <summary> /// <summary>
/// 使用此强类型资源类,为所有资源查找 /// 重写当前线程的 CurrentUICulture 属性
/// 重写当前线程的 CurrentUICulture 属性。 /// 重写当前线程的 CurrentUICulture 属性。
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
@@ -717,6 +717,15 @@ namespace HandyControlDemo.Properties.Langs {
} }
} }
/// <summary>
/// 查找类似 请输入关键字 的本地化字符串。
/// </summary>
public static string PlsEnterKey {
get {
return ResourceManager.GetString("PlsEnterKey", resourceCulture);
}
}
/// <summary> /// <summary>
/// 查找类似 上一步 的本地化字符串。 /// 查找类似 上一步 的本地化字符串。
/// </summary> /// </summary>
@@ -462,4 +462,7 @@
<data name="CoverFlow" xml:space="preserve"> <data name="CoverFlow" xml:space="preserve">
<value>CoverFlow</value> <value>CoverFlow</value>
</data> </data>
<data name="PlsEnterKey" xml:space="preserve">
<value>Please input a keyword</value>
</data>
</root> </root>
@@ -442,4 +442,7 @@
<data name="CoverFlow" xml:space="preserve"> <data name="CoverFlow" xml:space="preserve">
<value>封面流</value> <value>封面流</value>
</data> </data>
<data name="PlsEnterKey" xml:space="preserve">
<value>请输入关键字</value>
</data>
</root> </root>
Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

@@ -15,312 +15,350 @@
</i:EventTrigger> </i:EventTrigger>
</i:Interaction.Triggers> </i:Interaction.Triggers>
<TabItem Background="Transparent" Header="{x:Static langs:Lang.Styles}"> <TabItem Background="Transparent" Header="{x:Static langs:Lang.Styles}">
<ListBox Name="listStyle" BorderThickness="0" SelectionMode="Single" Style="{StaticResource ListBoxTransparent}"> <Grid>
<ListBoxItem Tag="{x:Static data:MessageToken.BrushDemoCtl}" Content="{x:Static langs:Lang.Brush}"> <Grid.RowDefinitions>
<controls:EdgeElement.LeftContent> <RowDefinition Height="Auto"/>
<Image Source="../../Resources/Img/LeftMainContent/Brush_16x.png"/> <RowDefinition/>
</controls:EdgeElement.LeftContent> </Grid.RowDefinitions>
</ListBoxItem> <Grid.ColumnDefinitions>
<ListBoxItem Tag="{x:Static data:MessageToken.ButtonDemoCtl}" Content="{x:Static langs:Lang.Button}"> <ColumnDefinition/>
<controls:EdgeElement.LeftContent> <ColumnDefinition Width="Auto"/>
<Image Source="../../Resources/Img/LeftMainContent/ButtonClick_16x.png"/> </Grid.ColumnDefinitions>
</controls:EdgeElement.LeftContent> <controls:SearchBar x:Name="SearchBarStyle" SearchStarted="SearchBarStyle_OnSearchStarted" Style="{StaticResource SearchBarPlus}" controls:InfoElement.Placeholder="{x:Static langs:Lang.PlsEnterKey}" Margin="4"/>
</ListBoxItem> <ToggleButton Name="ButtonStyleAscending" Click="ButtonStyleAscending_OnClick" Grid.Row="0" Grid.Column="1" Margin="0,0,4,0" Style="{StaticResource ToggleButtonCustom}">
<ListBoxItem Tag="{x:Static data:MessageToken.ToggleButtonDemoCtl}" Content="{x:Static langs:Lang.ToggleButton}"> <Border CornerRadius="4" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}" Background="{DynamicResource RegionBrush}" Height="30" Width="30" >
<controls:EdgeElement.LeftContent> <Image Stretch="None" Source="/HandyControlDemo;component/Resources/Img/LeftMainContent/SortAscending_grey_16x.png"/>
<Image Source="../../Resources/Img/LeftMainContent/Toggle_16x.png"/> </Border>
</controls:EdgeElement.LeftContent> <controls:StatusSwitchElement.CheckedElement>
</ListBoxItem> <Border CornerRadius="4" Height="30" Width="30" BorderThickness="1" BorderBrush="{DynamicResource PrimaryBrush}"/>
<ListBoxItem Tag="{x:Static data:MessageToken.RadioButtonDemoCtl}" Content="{x:Static langs:Lang.RadioButton}"> </controls:StatusSwitchElement.CheckedElement>
<controls:EdgeElement.LeftContent> </ToggleButton>
<Image Source="../../Resources/Img/LeftMainContent/RadioButton_16x.png"/> <ListBox Name="listStyle" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" BorderThickness="0" SelectionMode="Single" Style="{StaticResource ListBoxTransparent}">
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.BrushDemoCtl}" Content="{x:Static langs:Lang.Brush}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CheckBoxDemoCtl}" Content="{x:Static langs:Lang.CheckBox}"> <Image Source="../../Resources/Img/LeftMainContent/Brush_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/CheckBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ButtonDemoCtl}" Content="{x:Static langs:Lang.Button}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaiveScrollViewerDemoCtl}" Content="{x:Static langs:Lang.ScrollViewer}"> <Image Source="../../Resources/Img/LeftMainContent/ButtonClick_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ScrollBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ToggleButtonDemoCtl}" Content="{x:Static langs:Lang.ToggleButton}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.SliderDemoCtl}" Content="{x:Static langs:Lang.Slider}"> <Image Source="../../Resources/Img/LeftMainContent/Toggle_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Slider_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.RadioButtonDemoCtl}" Content="{x:Static langs:Lang.RadioButton}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TextBlockDemoCtl}" Content="{x:Static langs:Lang.TextBlock}"> <Image Source="../../Resources/Img/LeftMainContent/RadioButton_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TextBlock_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CheckBoxDemoCtl}" Content="{x:Static langs:Lang.CheckBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaiveTextBoxDemoCtl}" Content="{x:Static langs:Lang.TextBox}"> <Image Source="../../Resources/Img/LeftMainContent/CheckBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TextBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaiveScrollViewerDemoCtl}" Content="{x:Static langs:Lang.ScrollViewer}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaiveComboBoxDemoCtl}" Content="{x:Static langs:Lang.ComboBox}"> <Image Source="../../Resources/Img/LeftMainContent/ScrollBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ComboBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.SliderDemoCtl}" Content="{x:Static langs:Lang.Slider}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaivePasswordBoxDemoCtl}" Content="{x:Static langs:Lang.PasswordBox}"> <Image Source="../../Resources/Img/LeftMainContent/Slider_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/PasswordBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TextBlockDemoCtl}" Content="{x:Static langs:Lang.TextBlock}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ExpanderDemoCtl}" Content="{x:Static langs:Lang.Expander}"> <Image Source="../../Resources/Img/LeftMainContent/TextBlock_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Expander_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaiveTextBoxDemoCtl}" Content="{x:Static langs:Lang.TextBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ProgressBarDemoCtl}" Content="{x:Static langs:Lang.ProgressBar}"> <Image Source="../../Resources/Img/LeftMainContent/TextBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ProgressBar_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaiveComboBoxDemoCtl}" Content="{x:Static langs:Lang.ComboBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CalendarDemoCtl}" Content="{x:Static langs:Lang.Calendar}"> <Image Source="../../Resources/Img/LeftMainContent/ComboBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Calendar_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaivePasswordBoxDemoCtl}" Content="{x:Static langs:Lang.PasswordBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaiveDatePickerDemoCtl}" Content="{x:Static langs:Lang.DatePicker}"> <Image Source="../../Resources/Img/LeftMainContent/PasswordBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ExpanderDemoCtl}" Content="{x:Static langs:Lang.Expander}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.NaiveTabControlDemoCtl}" Content="{x:Static langs:Lang.TabControl}"> <Image Source="../../Resources/Img/LeftMainContent/Expander_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TabPage_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ProgressBarDemoCtl}" Content="{x:Static langs:Lang.ProgressBar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.DataGridDemoCtl}" Content="{x:Static langs:Lang.DataGrid}"> <Image Source="../../Resources/Img/LeftMainContent/ProgressBar_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/DataGrid_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CalendarDemoCtl}" Content="{x:Static langs:Lang.Calendar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TreeViewDemoCtl}" Content="{x:Static langs:Lang.TreeView}"> <Image Source="../../Resources/Img/LeftMainContent/Calendar_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TreeView_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaiveDatePickerDemoCtl}" Content="{x:Static langs:Lang.DatePicker}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ListBoxDemoCtl}" Content="{x:Static langs:Lang.ListBox}"> <Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ListBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NaiveTabControlDemoCtl}" Content="{x:Static langs:Lang.TabControl}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ListViewDemoCtl}" Content="{x:Static langs:Lang.ListView}"> <Image Source="../../Resources/Img/LeftMainContent/TabPage_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ListView_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.DataGridDemoCtl}" Content="{x:Static langs:Lang.DataGrid}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.GroupBoxDemoCtl}" Content="{x:Static langs:Lang.GroupBox}"> <Image Source="../../Resources/Img/LeftMainContent/DataGrid_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/GroupBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TreeViewDemoCtl}" Content="{x:Static langs:Lang.TreeView}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.MenuDemoCtl}" Content="{x:Static langs:Lang.Menu}"> <Image Source="../../Resources/Img/LeftMainContent/TreeView_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ContextMenu_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ListBoxDemoCtl}" Content="{x:Static langs:Lang.ListBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.RichTextBoxDemoCtl}" Content="{x:Static langs:Lang.RichTextBox}"> <Image Source="../../Resources/Img/LeftMainContent/ListBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/RichTextBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ListViewDemoCtl}" Content="{x:Static langs:Lang.ListView}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ToolBarDemoCtl}" Content="{x:Static langs:Lang.ToolBar}"> <Image Source="../../Resources/Img/LeftMainContent/ListView_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ToolBar_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.GroupBoxDemoCtl}" Content="{x:Static langs:Lang.GroupBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.BorderDemoCtl}" Content="{x:Static langs:Lang.Border1}"> <Image Source="../../Resources/Img/LeftMainContent/GroupBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/BorderElement_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.MenuDemoCtl}" Content="{x:Static langs:Lang.Menu}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
</ListBox> <Image Source="../../Resources/Img/LeftMainContent/ContextMenu_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.RichTextBoxDemoCtl}" Content="{x:Static langs:Lang.RichTextBox}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/RichTextBox_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.ToolBarDemoCtl}" Content="{x:Static langs:Lang.ToolBar}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ToolBar_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.BorderDemoCtl}" Content="{x:Static langs:Lang.Border1}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/BorderElement_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
</ListBox>
</Grid>
</TabItem> </TabItem>
<TabItem Background="Transparent" Header="{x:Static langs:Lang.Controls}"> <TabItem Background="Transparent" Header="{x:Static langs:Lang.Controls}">
<ListBox Name="listControl" BorderThickness="0" SelectionMode="Single" Style="{StaticResource ListBoxTransparent}"> <Grid>
<ListBoxItem Tag="{x:Static data:MessageToken.NumericUpDownDemoCtl}" Content="{x:Static langs:Lang.NumericUpDown}"> <Grid.RowDefinitions>
<controls:EdgeElement.LeftContent> <RowDefinition Height="Auto"/>
<Image Source="../../Resources/Img/LeftMainContent/NumericListBox_16x.png"/> <RowDefinition/>
</controls:EdgeElement.LeftContent> </Grid.RowDefinitions>
</ListBoxItem> <Grid.ColumnDefinitions>
<ListBoxItem Tag="{x:Static data:MessageToken.TextBoxDemoCtl}" Content="{x:Static langs:Lang.TextBox}"> <ColumnDefinition/>
<controls:EdgeElement.LeftContent> <ColumnDefinition Width="Auto"/>
<Image Source="../../Resources/Img/LeftMainContent/TextBox_16x.png"/> </Grid.ColumnDefinitions>
</controls:EdgeElement.LeftContent> <controls:SearchBar SearchStarted="SearchBarControl_OnSearchStarted" Style="{StaticResource SearchBarPlus}" controls:InfoElement.Placeholder="{x:Static langs:Lang.PlsEnterKey}" Margin="4"/>
</ListBoxItem> <ToggleButton Name="ButtonControlAscending" Click="ButtonControlAscending_OnClick" Grid.Row="0" Grid.Column="1" Margin="0,0,4,0" Style="{StaticResource ToggleButtonCustom}">
<ListBoxItem Tag="{x:Static data:MessageToken.ComboBoxDemoCtl}" Content="{x:Static langs:Lang.ComboBox}"> <Border CornerRadius="4" BorderThickness="1" BorderBrush="{DynamicResource BorderBrush}" Background="{DynamicResource RegionBrush}" Height="30" Width="30" >
<controls:EdgeElement.LeftContent> <Image Stretch="None" Source="/HandyControlDemo;component/Resources/Img/LeftMainContent/SortAscending_grey_16x.png"/>
<Image Source="../../Resources/Img/LeftMainContent/ComboBox_16x.png"/> </Border>
</controls:EdgeElement.LeftContent> <controls:StatusSwitchElement.CheckedElement>
</ListBoxItem> <Border CornerRadius="4" Height="30" Width="30" BorderThickness="1" BorderBrush="{DynamicResource PrimaryBrush}"/>
<ListBoxItem Tag="{x:Static data:MessageToken.PasswordBoxDemoCtl}" Content="{x:Static langs:Lang.PasswordBox}"> </controls:StatusSwitchElement.CheckedElement>
<controls:EdgeElement.LeftContent> </ToggleButton>
<Image Source="../../Resources/Img/LeftMainContent/PasswordBox_16x.png"/> <ListBox Name="listControl" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" BorderThickness="0" SelectionMode="Single" Style="{StaticResource ListBoxTransparent}">
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.NumericUpDownDemoCtl}" Content="{x:Static langs:Lang.NumericUpDown}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.DatePickerDemoCtl}" Content="{x:Static langs:Lang.DatePicker}"> <Image Source="../../Resources/Img/LeftMainContent/NumericListBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TextBoxDemoCtl}" Content="{x:Static langs:Lang.TextBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ClockDemoCtl}" Content="{x:Static langs:Lang.Clock}"> <Image Source="../../Resources/Img/LeftMainContent/TextBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Time_color_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ComboBoxDemoCtl}" Content="{x:Static langs:Lang.ComboBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TimePickerDemoCtl}" Content="{x:Static langs:Lang.TimePicker}"> <Image Source="../../Resources/Img/LeftMainContent/ComboBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TimePicker_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.PasswordBoxDemoCtl}" Content="{x:Static langs:Lang.PasswordBox}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CalendarWithClockDemoCtl}" Content="{x:Static langs:Lang.CalendarWithClock}"> <Image Source="../../Resources/Img/LeftMainContent/PasswordBox_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Calendar_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.DatePickerDemoCtl}" Content="{x:Static langs:Lang.DatePicker}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.DateTimePickerDemoCtl}" Content="{x:Static langs:Lang.DateTimePicker}"> <Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ClockDemoCtl}" Content="{x:Static langs:Lang.Clock}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.FlipClockDemoCtl}" Content="{x:Static langs:Lang.FlipClock}"> <Image Source="../../Resources/Img/LeftMainContent/Time_color_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/FlipVertical_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TimePickerDemoCtl}" Content="{x:Static langs:Lang.TimePicker}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.RateDemoCtl}" Content="{x:Static langs:Lang.Rate}"> <Image Source="../../Resources/Img/LeftMainContent/TimePicker_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Star.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CalendarWithClockDemoCtl}" Content="{x:Static langs:Lang.CalendarWithClock}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.ShieldDemoCtl}" Content="{x:Static langs:Lang.Shield}"> <Image Source="../../Resources/Img/LeftMainContent/Calendar_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Shield_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.DateTimePickerDemoCtl}" Content="{x:Static langs:Lang.DateTimePicker}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.SearchBarDemoCtl}" Content="{x:Static langs:Lang.SearchBar}"> <Image Source="../../Resources/Img/LeftMainContent/DatePicker_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Search_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.FlipClockDemoCtl}" Content="{x:Static langs:Lang.FlipClock}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TagDemoCtl}" Content="{x:Static langs:Lang.Tag}"> <Image Source="../../Resources/Img/LeftMainContent/FlipVertical_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Tag_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.RateDemoCtl}" Content="{x:Static langs:Lang.Rate}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.GifImageDemoCtl}" Content="{x:Static langs:Lang.GifImage}"> <Image Source="../../Resources/Img/LeftMainContent/Star.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Animation_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.ShieldDemoCtl}" Content="{x:Static langs:Lang.Shield}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.OutlineTextDemoCtl}" Content="{x:Static langs:Lang.OutlineText}"> <Image Source="../../Resources/Img/LeftMainContent/Shield_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TextBlock_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.SearchBarDemoCtl}" Content="{x:Static langs:Lang.SearchBar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CirclePanelDemoCtl}" Content="{x:Static langs:Lang.CirclePanel}"> <Image Source="../../Resources/Img/LeftMainContent/Search_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ColorWheel_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TagDemoCtl}" Content="{x:Static langs:Lang.Tag}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.WaterfallPanelDemoCtl}" Content="{x:Static langs:Lang.WaterfallPanel}"> <Image Source="../../Resources/Img/LeftMainContent/Tag_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Panel_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.GifImageDemoCtl}" Content="{x:Static langs:Lang.GifImage}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.CoverViewDemoCtl}" Content="{x:Static langs:Lang.CoverView}"> <Image Source="../../Resources/Img/LeftMainContent/Animation_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/DetailDataView_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.OutlineTextDemoCtl}" Content="{x:Static langs:Lang.OutlineText}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.CoverFlowDemoCtl}" Content="{x:Static langs:Lang.CoverFlow}"> <Image Source="../../Resources/Img/LeftMainContent/TextBlock_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/LinearCarousel_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CirclePanelDemoCtl}" Content="{x:Static langs:Lang.CirclePanel}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CircleProgressBarDemoCtl}" Content="{x:Static langs:Lang.CircleProgressBar}"> <Image Source="../../Resources/Img/LeftMainContent/ColorWheel_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ShapeArcRing_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.WaterfallPanelDemoCtl}" Content="{x:Static langs:Lang.WaterfallPanel}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.StepBarDemoCtl}" Content="{x:Static langs:Lang.StepBar}"> <Image Source="../../Resources/Img/LeftMainContent/Panel_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Flow_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.CoverViewDemoCtl}" Content="{x:Static langs:Lang.CoverView}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.GrowlDemoCtl}" Content="{x:Static langs:Lang.Growl}"> <Image Source="../../Resources/Img/LeftMainContent/DetailDataView_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Message_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Style="{StaticResource ListBoxItemNew}" Tag="{x:Static data:MessageToken.CoverFlowDemoCtl}" Content="{x:Static langs:Lang.CoverFlow}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.LoadingDemoCtl}" Content="{x:Static langs:Lang.Loading}"> <Image Source="../../Resources/Img/LeftMainContent/LinearCarousel_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Loading_Blue_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CircleProgressBarDemoCtl}" Content="{x:Static langs:Lang.CircleProgressBar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ImageBrowserDemoCtl}" Content="{x:Static langs:Lang.ImageBrowser}"> <Image Source="../../Resources/Img/LeftMainContent/ShapeArcRing_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ImageBrowser_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.StepBarDemoCtl}" Content="{x:Static langs:Lang.StepBar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ColorPickerDemoCtl}" Content="{x:Static langs:Lang.ColorPicker}"> <Image Source="../../Resources/Img/LeftMainContent/Flow_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ColorPalette_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.GrowlDemoCtl}" Content="{x:Static langs:Lang.Growl}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CarouselDemoCtl}" Content="{x:Static langs:Lang.Carousel}"> <Image Source="../../Resources/Img/LeftMainContent/Message_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Carousel_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.LoadingDemoCtl}" Content="{x:Static langs:Lang.Loading}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.CompareSliderDemoCtl}" Content="{x:Static langs:Lang.CompareSlider}"> <Image Source="../../Resources/Img/LeftMainContent/Loading_Blue_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/SplitterControl_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ImageBrowserDemoCtl}" Content="{x:Static langs:Lang.ImageBrowser}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.PreviewSliderDemoCtl}" Content="{x:Static langs:Lang.PreviewSlider}"> <Image Source="../../Resources/Img/LeftMainContent/ImageBrowser_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/HoverMenu_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.ColorPickerDemoCtl}" Content="{x:Static langs:Lang.ColorPicker}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TimeBarDemoCtl}" Content="{x:Static langs:Lang.TimeBar}"> <Image Source="../../Resources/Img/LeftMainContent/ColorPalette_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Timeline_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CarouselDemoCtl}" Content="{x:Static langs:Lang.Carousel}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.PaginationDemoCtl}" Content="{x:Static langs:Lang.Pagination}"> <Image Source="../../Resources/Img/LeftMainContent/Carousel_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Paginator_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.CompareSliderDemoCtl}" Content="{x:Static langs:Lang.CompareSlider}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.AnimationPathDemoCtl}" Content="{x:Static langs:Lang.AnimationPath}"> <Image Source="../../Resources/Img/LeftMainContent/SplitterControl_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/Path_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.PreviewSliderDemoCtl}" Content="{x:Static langs:Lang.PreviewSlider}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.TabControlDemoCtl}" Content="{x:Static langs:Lang.TabControl}"> <Image Source="../../Resources/Img/LeftMainContent/HoverMenu_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TabPage_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.TimeBarDemoCtl}" Content="{x:Static langs:Lang.TimeBar}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.ScrollViewerDemoCtl}" Content="{x:Static langs:Lang.ScrollViewer}"> <Image Source="../../Resources/Img/LeftMainContent/Timeline_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ScrollBox_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.PaginationDemoCtl}" Content="{x:Static langs:Lang.Pagination}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
<ListBoxItem Tag="{x:Static data:MessageToken.WindowDemoCtl}" Content="{x:Static langs:Lang.Window}"> <Image Source="../../Resources/Img/LeftMainContent/Paginator_16x.png"/>
<controls:EdgeElement.LeftContent> </controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/WindowsForm_16x.png"/> </ListBoxItem>
</controls:EdgeElement.LeftContent> <ListBoxItem Tag="{x:Static data:MessageToken.AnimationPathDemoCtl}" Content="{x:Static langs:Lang.AnimationPath}">
</ListBoxItem> <controls:EdgeElement.LeftContent>
</ListBox> <Image Source="../../Resources/Img/LeftMainContent/Path_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.TabControlDemoCtl}" Content="{x:Static langs:Lang.TabControl}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/TabPage_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.ScrollViewerDemoCtl}" Content="{x:Static langs:Lang.ScrollViewer}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/ScrollBox_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
<ListBoxItem Tag="{x:Static data:MessageToken.WindowDemoCtl}" Content="{x:Static langs:Lang.Window}">
<controls:EdgeElement.LeftContent>
<Image Source="../../Resources/Img/LeftMainContent/WindowsForm_16x.png"/>
</controls:EdgeElement.LeftContent>
</ListBoxItem>
</ListBox>
</Grid>
</TabItem> </TabItem>
</TabControl> </TabControl>
</Border> </Border>
@@ -1,5 +1,9 @@
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using HandyControl.Data;
using HandyControl.Tools.Extension;
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace HandyControlDemo.UserControl namespace HandyControlDemo.UserControl
@@ -12,8 +16,6 @@ namespace HandyControlDemo.UserControl
public LeftMainContent() public LeftMainContent()
{ {
InitializeComponent(); InitializeComponent();
listStyle.Items.SortDescriptions.Add(new SortDescription("Content", ListSortDirection.Ascending));
listControl.Items.SortDescriptions.Add(new SortDescription("Content", ListSortDirection.Ascending));
} }
private void TabControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e) private void TabControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
@@ -29,5 +31,49 @@ namespace HandyControlDemo.UserControl
} }
} }
} }
private void ButtonStyleAscending_OnClick(object sender, RoutedEventArgs e)
{
if (ButtonStyleAscending.IsChecked == true)
{
listStyle.Items.SortDescriptions.Add(new SortDescription("Content", ListSortDirection.Ascending));
}
else
{
listStyle.Items.SortDescriptions.Clear();
}
}
private void ButtonControlAscending_OnClick(object sender, RoutedEventArgs e)
{
if (ButtonControlAscending.IsChecked == true)
{
listControl.Items.SortDescriptions.Add(new SortDescription("Content", ListSortDirection.Ascending));
}
else
{
listControl.Items.SortDescriptions.Clear();
}
}
private void SearchBarStyle_OnSearchStarted(object sender, FunctionEventArgs<string> e)
{
if (e.Info == null) return;
foreach (var listBoxItem in listStyle.Items.OfType<ListBoxItem>())
{
listBoxItem.Show(listBoxItem.Content.ToString().Contains(e.Info));
}
}
private void SearchBarControl_OnSearchStarted(object sender, FunctionEventArgs<string> e)
{
if (e.Info == null) return;
foreach (var listBoxItem in listControl.Items.OfType<ListBoxItem>())
{
listBoxItem.Show(listBoxItem.Content.ToString().Contains(e.Info));
}
}
} }
} }