1414 Title =" MainWindow"
1515 Height =" 350"
1616 Topmost =" {Binding Settings.OnTop}"
17- ShowInTaskbar =" {Binding Settings.ShowInTaskbar}"
17+ ShowInTaskbar =" {Binding Settings.ShowInTaskbar}" AllowsTransparency =" True"
18+ Opacity =" {Binding TransparencyValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
1819 ContextMenu =" {DynamicResource contextMenu}"
1920 Width =" 550" >
2021 <Window .Resources>
2324 <converter : StringToTextDecorationConverter x : Key =" textDeco" />
2425 <converter : StringToTextDocumentConverter x : Key =" StringToTextDocumentConverter" />
2526 <converter : BoolToVisibilityCollapsedConverter x : Key =" BoolToVisibilityCollapsedConverter" />
26-
27+ <Style TargetType =" TextBlock" >
28+ <Setter Property =" Foreground"
29+ Value =" {Binding SelectedAccent, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, Converter={StaticResource AccentToColorConverter}}" />
30+ </Style >
2731 <ContextMenu x : Key =" contextMenu" >
2832 <MenuItem Header =" Select All (Ctrl + A)"
2933 Click =" contextSelect_Click" />
7983 <CheckBox Content =" Show in Taskbar"
8084 IsChecked =" {Binding Settings.ShowInTaskbar}" />
8185 </MenuItem >
86+ <MenuItem Header =" Reset Transperency"
87+ Command =" {Binding ResetTransparencyCommand}" />
8288 <MenuItem Header =" Info"
8389 Click =" Info_Click" />
8490 </ContextMenu >
8591 </Window .Resources>
86-
8792 <Grid Background =" {Binding DragAreaColor, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" >
8893 <DockPanel LastChildFill =" True" >
8994 <StatusBar Height =" 23"
9297 Visibility =" {Binding Settings.DisplayDetails, Converter={StaticResource BoolToVisibilityCollapsedConverter}}"
9398 VerticalAlignment =" Bottom"
9499 Margin =" 12,6,12,10"
95- Background =" {Binding StatusBarBackground, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" >
100+ Background =" {Binding StatusBarBackground, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" >
96101 <StatusBarItem >
97102 <StackPanel Orientation =" Horizontal" >
98- <TextBlock Text =" Word Count: "
99- Foreground =" {Binding SelectedAccent, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, Converter={StaticResource AccentToColorConverter}}" />
100- <TextBlock Text =" {Binding WordCount, UpdateSourceTrigger=PropertyChanged}"
101- Foreground =" {Binding SelectedAccent, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, Converter={StaticResource AccentToColorConverter}}" />
103+ <TextBlock Text =" Word Count: " />
104+ <TextBlock Text =" {Binding WordCount, UpdateSourceTrigger=PropertyChanged}" />
105+ </StackPanel >
106+ </StatusBarItem >
107+ <Separator Margin =" 10,0,10,0"
108+ HorizontalAlignment =" Left" />
109+ <StatusBarItem >
110+ <StackPanel Orientation =" Horizontal" >
111+ <TextBlock Text =" Transparency"
112+ Margin =" 0,0,10,0" />
113+ <Slider Width =" 100"
114+ Minimum =" 0.3"
115+ Maximum =" 1"
116+ Value =" {Binding TransparencyValue, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
117+ <TextBlock Margin =" 10,0,0,0" >
118+ <TextBlock .Inlines>
119+ <Run Text =" {Binding TransparencyInPercent, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
120+ <Run Text =" %" />
121+ </TextBlock .Inlines>
122+ </TextBlock >
102123 </StackPanel >
103124 </StatusBarItem >
104125 </StatusBar >
126+
105127 <avalonedit : TextEditor x : Name =" tbxMultiLine"
106128 DockPanel.Dock=" Top"
107129 Margin =" 12,12,12,6"
108130 AllowDrop =" True"
109131 mahapps:TextBoxHelper.ClearTextButton=" True"
110- mahapps:TextBoxHelper.SelectAllOnFocus=" True"
132+ mahapps:TextBoxHelper.SelectAllOnFocus=" True"
111133 TextChanged =" TbxMultiLine_TextChanged"
112134 Document =" {Binding MultiLine, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource StringToTextDocumentConverter}}"
113135 LineNumbersForeground =" {Binding SelectedAccent, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, Converter={StaticResource AccentToColorConverter}}"
116138 WordWrap =" True"
117139 PreviewMouseWheel =" tbxMultiLine_PreviewMouseWheel" />
118140 </DockPanel >
141+
119142 <tb : TaskbarIcon IconSource =" .\Clipboard.ico"
120143 x : Name =" TaskbarIcon"
121144 Grid.RowSpan=" 2"
122145 Grid.ColumnSpan=" 4"
123- ContextMenu =" {DynamicResource contextMenu}" >
124- </tb : TaskbarIcon >
146+ ContextMenu =" {DynamicResource contextMenu}" ></tb : TaskbarIcon >
125147 </Grid >
126148</Window >
0 commit comments