-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTDPWindow.xaml
More file actions
26 lines (25 loc) · 1.33 KB
/
TDPWindow.xaml
File metadata and controls
26 lines (25 loc) · 1.33 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
<Window x:Class="PocketTDPControl.TDPWindow"
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:PocketTDPControl" d:DataContext="{d:DesignInstance Type=local:ViewModel}"
BorderThickness="1" Visibility="{Binding IsEditModeEnabled, Mode=OneWay, Converter={StaticResource BoolToVis}}"
AllowsTransparency="False" WindowStyle="None" ResizeMode="NoResize"
ShowInTaskbar="False"
mc:Ignorable="d"
Title="TDPSliderWindow" Height="200" Width="45">
<Window.Resources>
<local:PresetTDPConverter x:Key="PresetTDPConverter" />
</Window.Resources>
<Slider Orientation="Vertical" IsDirectionReversed="True" Height="170" Width="Auto" Margin="5"
TickPlacement="Both" TickFrequency="1"
Minimum="{Binding MinTDP}" Maximum="{Binding MaxTDP}">
<Slider.Value>
<MultiBinding Converter="{StaticResource PresetTDPConverter}">
<Binding Path="PresetTDP" />
<Binding Path="SelectedPresetTDPIndex" />
</MultiBinding>
</Slider.Value>
</Slider>
</Window>