43 lines
2.2 KiB
XML
43 lines
2.2 KiB
XML
<Window x:Class="SharepointToolbox.Views.Dialogs.LibraryPickerDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:loc="clr-namespace:SharepointToolbox.Localization"
|
|
Title="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[librarypicker.title]}"
|
|
Width="420" Height="520" WindowStartupLocation="CenterOwner"
|
|
Background="{DynamicResource AppBgBrush}"
|
|
Foreground="{DynamicResource TextBrush}"
|
|
TextOptions.TextFormattingMode="Ideal"
|
|
ResizeMode="CanResizeWithGrip">
|
|
<DockPanel Margin="10">
|
|
<TextBlock x:Name="StatusText" DockPanel.Dock="Top" Margin="0,0,0,8"
|
|
Text="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[librarypicker.loading]}" />
|
|
|
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="0,0,0,6">
|
|
<Button Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[librarypicker.selectAll]}"
|
|
Click="SelectAll_Click" Margin="0,0,6,0" Padding="6,2" />
|
|
<Button Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[librarypicker.selectNone]}"
|
|
Click="SelectNone_Click" Padding="6,2" />
|
|
</StackPanel>
|
|
|
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
|
|
HorizontalAlignment="Right" Margin="0,8,0,0">
|
|
<Button Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[folderbrowser.cancel]}"
|
|
Width="80" Margin="0,0,8,0" IsCancel="True" Click="Cancel_Click" />
|
|
<Button x:Name="OkButton"
|
|
Content="{Binding Source={x:Static loc:TranslationSource.Instance}, Path=[folderbrowser.select]}"
|
|
Width="80" IsDefault="True" IsEnabled="False" Click="Ok_Click" />
|
|
</StackPanel>
|
|
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<ItemsControl x:Name="LibrariesList">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<CheckBox Content="{Binding Title}" IsChecked="{Binding IsSelected, Mode=TwoWay}"
|
|
Margin="2,4" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</DockPanel>
|
|
</Window>
|