12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <UserControl
- x:Class="ShakerApp.Views.DataDirectoryView"
- xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:suki="https://github.com/kikipoulet/SukiUI"
- xmlns:vm="using:ShakerApp.ViewModels"
- d:DesignHeight="450"
- d:DesignWidth="800"
- x:DataType="vm:ShakerSettingViewModel"
- Background="Transparent"
- DataContext="{Binding Source={x:Static vm:ShakerSettingViewModel.Instance}}">
- <StackPanel
- Height="{StaticResource ItemHeight}"
- Margin="10,10,0,0"
- VerticalAlignment="Top"
- Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center">
- <Run Text="{DynamicResource DataDirectory}" />
- <Run Text=":" />
- </TextBlock>
- <Border
- Width="420"
- Margin="4,0,0,0"
- Background="Transparent"
- BorderThickness="1"
- CornerRadius="6"
- Cursor="Hand">
- <TextBlock
- Margin="10,4,10,4"
- VerticalAlignment="Center"
- Text="{Binding DataDirectory}" />
- <Interaction.Behaviors>
- <EventTriggerBehavior EventName="PointerReleased">
- <InvokeCommandAction Command="{Binding SelectDirectoryCommand}" CommandParameter="DataDirectory" />
- </EventTriggerBehavior>
- </Interaction.Behaviors>
- <Border.Styles>
- <Style Selector="Border">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeBorderHighBrush}" />
- </Style>
- <Style Selector="Border:pointerover">
- <Setter Property="BorderBrush" Value="{DynamicResource ThemeAccentBrush}" />
- </Style>
- </Border.Styles>
- </Border>
- <Button
- Width="{StaticResource ItemHeight}"
- Height="{StaticResource ItemHeight}"
- Margin="4,0,0,0"
- Padding="0,8,0,8"
- Command="{Binding SelectDirectoryCommand}"
- CommandParameter="DataDirectory">
- <PathIcon Data="{StaticResource DataDirectoryGeometry}" />
- </Button>
- </StackPanel>
- </UserControl>
|