-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropView.xaml
More file actions
65 lines (61 loc) · 3.17 KB
/
PropView.xaml
File metadata and controls
65 lines (61 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Window x:Class="PlayLook.PropView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:PlayLook"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Style="{StaticResource MaterialDesignWindow}"
mc:Ignorable="d" Topmost="True"
Title="PropView" Height="100" Width="640" ResizeMode="NoResize"
ShowInTaskbar="False" WindowStyle="None" AllowsTransparency="True" Background="Transparent"
>
<Window.Resources>
</Window.Resources>
<Grid>
<materialDesign:Card
Height="60
" Width="600"
materialDesign:ElevationAssist.Elevation="Dp7"
MouseLeftButtonDown="Window_MouseLeftButtonDown">
<Grid>
<Button
HorizontalAlignment="Left"
materialDesign:ElevationAssist.Elevation="Dp2"
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}"
ToolTip="{Binding Path=Status.Value, NotifyOnTargetUpdated=True}" Margin="10,10,0,10"
Click="Control_Click">
<materialDesign:PackIcon
Width="24px"
Height="24px"
Kind="{Binding Path=Icon.Value}"
/>
</Button>
<Border Width="480">
<Canvas ClipToBounds="True">
<TextBlock x:Name="current"
Style="{StaticResource MaterialDesignHeadline6TextBlock}"
Text="{Binding Path=Current.Value, NotifyOnTargetUpdated=True}" TextTrimming="None"
Binding.TargetUpdated="TargetUpdatedHandler"
VerticalAlignment="Center" HorizontalAlignment="Center" Canvas.Top="17">
</TextBlock>
</Canvas>
</Border>
<Button
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"
Style="{StaticResource MaterialDesignFloatingActionMiniSecondaryButton}"
materialDesign:ElevationAssist.Elevation="Dp2"
ToolTip="タスクトレイにしまう" Margin="550,10,10,10"
Click="Collapse_Click"
>
<materialDesign:PackIcon
Width="20px"
Height="20px"
Kind="ArrowCollapseDown"
/>
</Button>
</Grid>
</materialDesign:Card>
</Grid>
</Window>