|
48 | 48 | Source="{Binding ImageSource}" |
49 | 49 | Stretch="Uniform" |
50 | 50 | StretchDirection="Both" /> |
51 | | - |
| 51 | + |
52 | 52 | <!-- Overlay Image --> |
53 | 53 | <Panel> |
54 | 54 | <Panel.IsVisible> |
|
57 | 57 | <CompiledBinding Path="IsMaskOverlayEnabled" /> |
58 | 58 | </MultiBinding> |
59 | 59 | </Panel.IsVisible> |
60 | | - <controls:BetterImage |
| 60 | + <controls:BetterImage |
61 | 61 | VerticalAlignment="Stretch" |
62 | | - Stretch="Uniform" |
63 | | - StretchDirection="Both" |
64 | | - RenderOptions.BitmapInterpolationMode="HighQuality" |
65 | 62 | DataContext="{Binding MaskEditorViewModel}" |
66 | | - Source="{Binding CachedOrNewMaskRenderImage.Bitmap}"/> |
| 63 | + RenderOptions.BitmapInterpolationMode="HighQuality" |
| 64 | + Source="{Binding CachedOrNewMaskRenderImage.Bitmap}" |
| 65 | + Stretch="Uniform" |
| 66 | + StretchDirection="Both" /> |
67 | 67 | </Panel> |
68 | 68 |
|
69 | 69 | <!-- Missing image --> |
|
102 | 102 | <!-- Active Selection Prompt --> |
103 | 103 | <StackPanel |
104 | 104 | Margin="4" |
105 | | - Spacing="4" |
106 | | - Orientation="Horizontal" |
107 | 105 | HorizontalAlignment="Right" |
108 | 106 | VerticalAlignment="Top" |
109 | | - IsVisible="{Binding !IsSelectionAvailable}"> |
110 | | - <!-- Mask Overlay Toggle --> |
| 107 | + IsVisible="{Binding !IsSelectionAvailable}" |
| 108 | + Orientation="Horizontal" |
| 109 | + Spacing="4"> |
| 110 | + <!-- Mask Overlay Toggle --> |
111 | 111 | <Border |
112 | | - IsVisible="{Binding IsMaskEditorEnabled}" |
| 112 | + Width="40" |
| 113 | + Height="40" |
113 | 114 | BoxShadow="inset 1.2 0 80 1.8 #66000000" |
114 | | - CornerRadius="10"> |
| 115 | + CornerRadius="10" |
| 116 | + IsVisible="{Binding IsMaskEditorEnabled}"> |
115 | 117 | <Border.Resources> |
116 | 118 | <DropShadowEffect |
117 | 119 | x:Key="TextDropShadowEffect" |
|
126 | 128 | </Border.Resources> |
127 | 129 | <ToggleButton |
128 | 130 | Padding="2" |
129 | | - IsChecked="{Binding IsMaskOverlayEnabled}" |
130 | 131 | CornerRadius="10" |
131 | | - FontSize="{TemplateBinding FontSize}"> |
| 132 | + FontSize="{TemplateBinding FontSize}" |
| 133 | + IsChecked="{Binding IsMaskOverlayEnabled}"> |
132 | 134 | <ToolTip.Tip> |
133 | 135 | <MultiBinding StringFormat="{}{0} - {1}"> |
134 | 136 | <CompiledBinding Source="{x:Static lang:Resources.Label_ClippingMask}" /> |
|
142 | 144 | Symbol="Eye" /> |
143 | 145 | </ToggleButton> |
144 | 146 | </Border> |
145 | | - <!-- Mask Editor --> |
| 147 | + <!-- Mask Editor --> |
146 | 148 | <Border |
147 | | - IsVisible="{Binding IsMaskEditorEnabled}" |
| 149 | + Width="40" |
| 150 | + Height="40" |
148 | 151 | BoxShadow="inset 1.2 0 80 1.8 #66000000" |
149 | | - CornerRadius="10"> |
| 152 | + CornerRadius="10" |
| 153 | + IsVisible="{Binding IsMaskEditorEnabled}"> |
150 | 154 | <Border.Resources> |
151 | 155 | <DropShadowEffect |
152 | 156 | x:Key="TextDropShadowEffect" |
|
178 | 182 | Symbol="Layer" /> |
179 | 183 | </Button> |
180 | 184 | </Border> |
181 | | - <!-- Replace Contents --> |
| 185 | + <!-- Replace Contents --> |
182 | 186 | <Border |
| 187 | + Width="40" |
| 188 | + Height="40" |
183 | 189 | BoxShadow="inset 1.2 0 80 1.8 #66000000" |
184 | 190 | CornerRadius="10"> |
185 | 191 | <Border.Resources> |
|
0 commit comments