개정판 6c687be8
thumbnail 속도 문제로 되돌림
Change-Id: If873bc60f8159428b34e3df6cedb48f9675e0485
KCOM/Controls/Sample.xaml | ||
---|---|---|
2 | 2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
xmlns:controls="clr-namespace:KCOM.Controls" |
|
5 | 6 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:common="clr-namespace:KCOM.Common" |
6 | 7 |
xmlns:local="clr-namespace:KCOM.Controls" xmlns:System="clr-namespace:System;assembly=mscorlib" |
7 | 8 |
mc:Ignorable="d" Background="#f5f5f5" xmlns:converter="clr-namespace:KCOM.Common.Converter" |
... | ... | |
27 | 28 |
<Setter Property="Template"> |
28 | 29 |
<Setter.Value> |
29 | 30 |
<ControlTemplate TargetType="{x:Type telerik:RadListBoxItem}"> |
30 |
<Border x:Name="myBorder" |
|
31 |
Padding="0" Margin="0 3 20 0"
|
|
31 |
<Border x:Name="myBorder" VerticalAlignment="Center"
|
|
32 |
Padding="0" Margin="1"
|
|
32 | 33 |
SnapsToDevicePixels="False"> |
33 | 34 |
<Border.Style> |
34 | 35 |
<Style TargetType="Border"> |
... | ... | |
36 | 37 |
<Setter Property="BorderBrush" Value="Transparent"/> |
37 | 38 |
</Style> |
38 | 39 |
</Border.Style> |
39 |
<ContentPresenter /> |
|
40 |
<ContentPresenter Margin="5"/>
|
|
40 | 41 |
</Border> |
41 | 42 |
<ControlTemplate.Triggers> |
42 | 43 |
<Trigger Property="IsSelected" Value="true"> |
... | ... | |
457 | 458 |
Margin="2" Foreground="White" Content="Show All Pages" x:Name="btnPanorama" Click="btnPanorama_Click" Background="#FF0054B9" HorizontalAlignment="Right"/> |
458 | 459 |
<Border BorderThickness="1" Margin="1" Grid.Row="1" BorderBrush="#FFC9C9C9" Background="White"> |
459 | 460 |
<StackPanel> |
460 |
<RadioButton Content="All Pages" IsChecked="True" telerik:StyleManager.Theme="Office2013" FontSize="10" Margin="5,3" x:Name="rdoAllPages"/> |
|
461 |
<RadioButton Content="Favorited Pages" FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Checked="rdoFavoritePages_Checked"/>
|
|
461 |
<RadioButton Content="All Pages" IsChecked="True" telerik:StyleManager.Theme="Office2013" FontSize="10" Margin="5,3" Click="ShowPageChange" x:Name="rdoAllPages"/>
|
|
462 |
<RadioButton Content="Favorited Pages" FontSize="10" Margin="5,3" x:Name="rdoFavoritePages" Click="ShowPageChange" />
|
|
462 | 463 |
<Grid Margin="4.5,0"> |
463 | 464 |
<telerik:RadExpander Name="expCommentPages" |
464 | 465 |
Padding="2" |
... | ... | |
479 | 480 |
</Grid> |
480 | 481 |
</StackPanel> |
481 | 482 |
</Border> |
482 |
<telerik:RadListBox x:Name="ImgListbox" Margin="1" |
|
483 |
<!--<telerik:RadListBox x:Name="ImgListbox" Margin="1"
|
|
483 | 484 |
ItemTemplate="{StaticResource ThumbnailDataTemplate}" |
484 | 485 |
Grid.Row="2" |
485 | 486 |
SelectedItem="{Binding}" |
... | ... | |
499 | 500 |
<VirtualizingStackPanel/> |
500 | 501 |
</ItemsPanelTemplate> |
501 | 502 |
</telerik:RadListBox.ItemsPanel> |
502 |
<!--<telerik:RadListBox.ItemTemplate> |
|
503 |
<DataTemplate> |
|
504 |
<StackPanel> |
|
505 |
<Border BorderThickness="1" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" x:Name="selectBorder"> |
|
506 |
<Image Stretch="UniformToFill" > |
|
507 |
<Image.Source> |
|
508 |
<BitmapImage UriSource="{Binding ImageUri}" DecodePixelWidth="400" /> |
|
509 |
</Image.Source> |
|
510 |
</Image> |
|
511 |
</Border> |
|
512 |
<TextBlock Text="{Binding PageNumber}" HorizontalAlignment="Center" Margin="0,1,0,0"/> |
|
513 |
</StackPanel> |
|
514 |
</DataTemplate> |
|
515 |
</telerik:RadListBox.ItemTemplate>--> |
|
503 |
</telerik:RadListBox>--> |
|
504 |
<telerik:RadListBox x:Name="ImgListbox" Margin="1" |
|
505 |
Grid.Row="2" |
|
506 |
Background="{DynamicResource KCOMColor_AlternativeBrush}" |
|
507 |
ItemContainerStyle="{StaticResource ItemContainerStyle}" |
|
508 |
BorderBrush="#FFC2C2C2" BorderThickness="0" |
|
509 |
SelectedIndex="0" |
|
510 |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
|
511 |
ScrollViewer.VerticalScrollBarVisibility="Auto" |
|
512 |
ScrollViewer.CanContentScroll="True" |
|
513 |
telerik:StyleManager.Theme="Office2016" > |
|
514 |
<telerik:RadListBox.ItemsPanel> |
|
515 |
<ItemsPanelTemplate> |
|
516 |
<VirtualizingStackPanel/> |
|
517 |
</ItemsPanelTemplate> |
|
518 |
</telerik:RadListBox.ItemsPanel> |
|
519 |
<telerik:RadListBox.ItemTemplate> |
|
520 |
<DataTemplate> |
|
521 |
<Grid x:Name="LayoutRoot"> |
|
522 |
<Grid></Grid> |
|
523 |
<Grid VerticalAlignment="Center" > |
|
524 |
<Grid.RowDefinitions> |
|
525 |
<RowDefinition Height="Auto"/> |
|
526 |
<RowDefinition Height="Auto"/> |
|
527 |
</Grid.RowDefinitions> |
|
528 |
<Grid x:Name="imgRoot"> |
|
529 |
<Border x:Name="imgBorder" BorderBrush="{DynamicResource KCOMColor_ReadOnlyBorderBrush}" |
|
530 |
RenderTransformOrigin="0.5,0.5" BorderThickness="1,1,1.5,1.5"> |
|
531 |
<Border.RenderTransform> |
|
532 |
<RotateTransform Angle="{Binding Angle, Mode=TwoWay}"/> |
|
533 |
</Border.RenderTransform> |
|
534 |
<Image Stretch="Uniform" Source="{Binding ImageUri,IsAsync=True}"/> |
|
535 |
</Border> |
|
536 |
</Grid> |
|
537 |
<TextBlock Grid.Row="1" Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" VerticalAlignment="Bottom" HorizontalAlignment="Center"/> |
|
538 |
</Grid> |
|
539 |
<Border Width="30" Height="20" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,5"> |
|
540 |
<controls:MarkupColorList ColorList="{Binding DisplayColorItems,Mode=TwoWay}" Opacity="90"/> |
|
541 |
</Border> |
|
542 |
</Grid> |
|
543 |
</DataTemplate> |
|
544 |
</telerik:RadListBox.ItemTemplate> |
|
545 |
<!--<telerik:RadListBox.ItemsPanel> |
|
546 |
<ItemsPanelTemplate> |
|
547 |
<VirtualizingStackPanel/> |
|
548 |
</ItemsPanelTemplate> |
|
549 |
</telerik:RadListBox.ItemsPanel>--> |
|
516 | 550 |
</telerik:RadListBox> |
517 | 551 |
</Grid> |
518 | 552 |
</telerik:RadTabItem> |
내보내기 Unified diff