1. add datagrid style 2. improve the numericupdown 3. add checkbox style 4. add listbox demo 5. add treeview demo 6. add border demo 7. remove angle property of iconelement 8. add menu demo
25 lines
1.4 KiB
XML
25 lines
1.4 KiB
XML
<UserControl x:Class="HandyControlDemo.UserControl.MenuDemoCtl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
|
|
xmlns:langs="clr-namespace:HandyControlDemo.Properties.Langs"
|
|
Background="White">
|
|
<controls:TransitioningContentControl>
|
|
<Grid Margin="32">
|
|
<TextBlock Text="{x:Static langs:Lang.RightClickHere}" Foreground="{StaticResource BorderBrush}" Style="{StaticResource TextBlockTitle}"/>
|
|
<Rectangle Width="200" Height="112" RadiusX="4" RadiusY="4" Stroke="{StaticResource BorderBrush}" StrokeDashArray="2,2"/>
|
|
<Border Width="200" Height="112" Background="Transparent">
|
|
<Border.ContextMenu>
|
|
<ContextMenu ItemsSource="{Binding DataList}">
|
|
<ContextMenu.ItemTemplate>
|
|
<HierarchicalDataTemplate ItemsSource="{Binding DataList}">
|
|
<TextBlock Text="{Binding Name}"/>
|
|
</HierarchicalDataTemplate>
|
|
</ContextMenu.ItemTemplate>
|
|
</ContextMenu>
|
|
</Border.ContextMenu>
|
|
</Border>
|
|
</Grid>
|
|
</controls:TransitioningContentControl>
|
|
</UserControl>
|