markus / Demo / MainWindow.xaml @ master
이력 | 보기 | 이력해설 | 다운로드 (4.27 KB)
1 |
<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="Demo.MainWindow" |
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:toggle="clr-namespace:ToggleSwitch;assembly=ToggleSwitch" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib" |
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 |
xmlns:local="clr-namespace:Demo" |
7 |
mc:Ignorable="d" |
8 |
Title="MainWindow" Height="350" Width="525"> |
9 |
<!--<Window.Resources>
|
10 |
<DataTemplate x:Key="contentTemplate">
|
11 |
<Border Background="#FFB2B2B2">
|
12 |
<Image Source="{Binding ImageUrl}" Stretch="Uniform"/>
|
13 |
</Border>
|
14 |
|
15 |
</DataTemplate>
|
16 |
<DataTemplate x:Key="headerTemplate">
|
17 |
<TextBlock Text="{Binding PageNo}" />
|
18 |
</DataTemplate>
|
19 |
</Window.Resources>
|
20 |
<Grid>
|
21 |
<Grid.ColumnDefinitions>
|
22 |
<ColumnDefinition Width="2*"/>
|
23 |
<ColumnDefinition Width="8*"/>
|
24 |
</Grid.ColumnDefinitions>
|
25 |
<StackPanel>
|
26 |
<TextBlock Text="Columns Count" />
|
27 |
<Slider Minimum="1" Value="3" Maximum="10" x:Name="columnsCount"/>
|
28 |
<TextBlock Text="ColumnWidth" />
|
29 |
<ComboBox x:Name="ColumnWidth" SelectedIndex="0">
|
30 |
<system:String>*</system:String>
|
31 |
<system:String>Auto</system:String>
|
32 |
<system:String>110</system:String>
|
33 |
<system:String>250</system:String>
|
34 |
<system:String>350</system:String>
|
35 |
<system:String>450</system:String>
|
36 |
</ComboBox>
|
37 |
<TextBlock Text="RowHeight" />
|
38 |
<ComboBox x:Name="RowHeight" SelectedIndex="2">
|
39 |
<system:String>*</system:String>
|
40 |
<system:String>Auto</system:String>
|
41 |
<system:String>140</system:String>
|
42 |
<system:String>210</system:String>
|
43 |
<system:String>300</system:String>
|
44 |
<system:String>400</system:String>
|
45 |
</ComboBox>
|
46 |
<TextBlock Text="MinimizedColumnWidth" />
|
47 |
<ComboBox x:Name="minColumnWidth" SelectedIndex="1">
|
48 |
<system:String>Auto</system:String>
|
49 |
<system:String>110</system:String>
|
50 |
<system:String>250</system:String>
|
51 |
<system:String>350</system:String>
|
52 |
<system:String>450</system:String>
|
53 |
</ComboBox>
|
54 |
<TextBlock Text="MinimizedRowHeight" />
|
55 |
<ComboBox x:Name="minRowHeight" SelectedIndex="1">
|
56 |
<system:String>Auto</system:String>
|
57 |
<system:String>140</system:String>
|
58 |
<system:String>210</system:String>
|
59 |
<system:String>350</system:String>
|
60 |
<system:String>450</system:String>
|
61 |
</ComboBox>
|
62 |
</StackPanel>
|
63 |
<telerik:RadTileView IsAutoScrollingEnabled="True" ItemsSource="{Binding item}"
|
64 |
IsDockingEnabled="False" IsItemDraggingEnabled="False" IsItemsAnimationEnabled="False"
|
65 |
Grid.Column="1" telerik:StyleManager.Theme="Office2016"
|
66 |
ItemTemplate="{StaticResource headerTemplate}"
|
67 |
ColumnsCount="{Binding ElementName=columnsCount,
|
68 |
Path=Value}" ContentTemplate="{StaticResource contentTemplate}"
|
69 |
ColumnWidth="{Binding ElementName=ColumnWidth,
|
70 |
Path=SelectedItem}" MinimizedColumnWidth="{Binding ElementName=minColumnWidth,
|
71 |
Path=SelectedItem}"
|
72 |
MinimizedRowHeight="{Binding ElementName=minRowHeight,
|
73 |
Path=SelectedItem}"
|
74 |
PreservePositionWhenMaximized="True"
|
75 |
RowHeight="{Binding ElementName=RowHeight,
|
76 |
Path=SelectedItem}"/>
|
77 |
</Grid>-->
|
78 |
<Grid>
|
79 |
<toggle:HorizontalToggleSwitch x:Name="toggle" CheckedContent="PDF MODE" UncheckedContent="MARKUP MODE" Width="150" IsChecked="False" ThumbSize="30"/> |
80 |
</Grid>
|
81 |
</Window>
|