-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml
More file actions
23 lines (23 loc) · 1.22 KB
/
Copy pathApp.xaml
File metadata and controls
23 lines (23 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<Application x:Class="VrcPhotoManager.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:VrcPhotoManager"
StartupUri="MainWindow.xaml" ShutdownMode="OnMainWindowClose">
<Application.Resources>
<!-- Applies to every plain ToolTip="..." string in the app (WPF's default ToolTip
doesn't wrap text - it just grows as wide as the string needs, which for longer
explanatory tooltips ran clear across the screen on one line). {Binding} in the
template binds to the ToolTip's Content itself (the string), which is the standard
way to reach it since a plain-string tooltip has no separate DataContext. -->
<Style TargetType="ToolTip">
<Setter Property="MaxWidth" Value="320" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding}" TextWrapping="Wrap" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
</Application>