Portable Tool for an Ideal Windows Setup
C# activatorbloatware-removalcsharpdebloatdebloaterdisable-servicesmonitoring-systemportableprivacy-toolsregistry-tweakssystem-tuningsystem-utilitytelemetrytweakerwindows-10windows-11windows-debloatwindows-defenderwindows-optimizationwindows-tweaks
upd. optimize shadow rendering and add status indicator effects
Greedeks066be56d1d3b
diff --git a/.Source/GTweak/Assets/UserControl/Card.xaml b/.Source/GTweak/Assets/UserControl/Card.xamlindex 02a8d17c..de8e3e4f 100644--- a/.Source/GTweak/Assets/UserControl/Card.xaml+++ b/.Source/GTweak/Assets/UserControl/Card.xaml@@ -9,7 +9,11 @@SnapsToDevicePixels="True" UseLayoutRounding="True"><Viewbox Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Left"><Grid HorizontalAlignment="Center">- <Border CornerRadius="8" Opacity="0.5" Background="#33000000" Margin="6,6,0,0" IsHitTestVisible="False" HorizontalAlignment="Center" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=CardBody}" Height="{Binding ActualHeight, ElementName=CardBody}"/>+ <Border CornerRadius="8" Opacity="0.5" Background="#33000000" IsHitTestVisible="False" HorizontalAlignment="Center" VerticalAlignment="Top" Width="{Binding ActualWidth, ElementName=CardBody}" Height="{Binding ActualHeight, ElementName=CardBody}">+ <Border.RenderTransform>+ <TranslateTransform X="3" Y="6" />+ </Border.RenderTransform>+ </Border><Border x:Name="CardBody" Background="{StaticResource Brush_Background_Card}" CornerRadius="8" Padding="10" MaxWidth="350" HorizontalAlignment="Center" VerticalAlignment="Top" SnapsToDevicePixels="True"><Grid><Grid.RowDefinitions>diff --git a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml b/.Source/GTweak/Assets/UserControl/ToggleButton.xamlindex 7fc66127..184cfcfc 100644--- a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml+++ b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml@@ -21,15 +21,18 @@</Rectangle.Fill></Rectangle>- <Ellipse x:Name="Dot" Height="14" Width="14" StrokeThickness="0" Margin="24,0,0,0">- <Ellipse.Effect>- <DropShadowEffect ShadowDepth="1" Opacity="0.5"/>- </Ellipse.Effect>+ <Ellipse x:Name="Dot" Height="14" Width="14" Margin="24,0,0,0" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" RenderTransformOrigin="0.5,0.5">+ <Ellipse.CacheMode>+ <BitmapCache RenderAtScale="2" />+ </Ellipse.CacheMode><Ellipse.Fill><SolidColorBrush Color="{StaticResource Color_ToggleDot_Off}"/></Ellipse.Fill>+ <Ellipse.Effect>+ <DropShadowEffect ShadowDepth="1" BlurRadius="3" Opacity="0.5"/>+ </Ellipse.Effect><Ellipse.RenderTransform>- <ScaleTransform x:Name="DotScale" ScaleX="1" ScaleY="1" CenterX="8" CenterY="8"/>+ <ScaleTransform x:Name="DotScale" ScaleX="1" ScaleY="1"/></Ellipse.RenderTransform></Ellipse></Grid>diff --git a/.Source/GTweak/Styles/Buttons/Buttons.xaml b/.Source/GTweak/Styles/Buttons/Buttons.xamlindex cfc5d64d..f6c05100 100644--- a/.Source/GTweak/Styles/Buttons/Buttons.xaml+++ b/.Source/GTweak/Styles/Buttons/Buttons.xaml@@ -162,7 +162,10 @@<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type Button}">- <Grid x:Name="Root" RenderTransformOrigin="0.5,0.5">+ <Grid x:Name="Root" RenderTransformOrigin="0.5,0.5" RenderOptions.BitmapScalingMode="HighQuality">+ <Grid.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Grid.CacheMode><Grid.RenderTransform><ScaleTransform ScaleX="1" ScaleY="1"/></Grid.RenderTransform>@@ -231,7 +234,10 @@<Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type Button}">- <Grid x:Name="Root" RenderTransformOrigin="0.5,0.5">+ <Grid x:Name="Root" RenderTransformOrigin="0.5,0.5" RenderOptions.BitmapScalingMode="HighQuality">+ <Grid.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Grid.CacheMode><Grid.RenderTransform><ScaleTransform ScaleX="1" ScaleY="1"/></Grid.RenderTransform>diff --git a/.Source/GTweak/Styles/Buttons/RadioButtons.xaml b/.Source/GTweak/Styles/Buttons/RadioButtons.xamlindex c20ce16b..3785d6ec 100644--- a/.Source/GTweak/Styles/Buttons/RadioButtons.xaml+++ b/.Source/GTweak/Styles/Buttons/RadioButtons.xaml@@ -17,7 +17,10 @@<Setter.Value><ControlTemplate TargetType="RadioButton"><Border x:Name="OuterPanel" CornerRadius="12" Width="50" Height="48" Background="Transparent" HorizontalAlignment="Left" SnapsToDevicePixels="True">- <Grid CacheMode="BitmapCache">+ <Grid RenderOptions.BitmapScalingMode="HighQuality">+ <Grid.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Grid.CacheMode><Border x:Name="ShadowPanel" CornerRadius="12" Opacity="0" Background="#33000000" IsHitTestVisible="False" Width="{Binding ActualWidth, ElementName=InnerPanel}" Height="{Binding ActualHeight, ElementName=InnerPanel}" HorizontalAlignment="Left" VerticalAlignment="Center"><Border.RenderTransform><TranslateTransform X="3" Y="4" />diff --git a/.Source/GTweak/Styles/Inputs/Slider.xaml b/.Source/GTweak/Styles/Inputs/Slider.xamlindex 226a1982..68dab11b 100644--- a/.Source/GTweak/Styles/Inputs/Slider.xaml+++ b/.Source/GTweak/Styles/Inputs/Slider.xaml@@ -1,4 +1,4 @@-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><Style x:Key="SliderRepeatButton" TargetType="{x:Type RepeatButton}">@@ -39,6 +39,9 @@<Setter.Value><ControlTemplate TargetType="Thumb"><Border x:Name="Switch" Height="14" Width="14" Background="{StaticResource Brush_Accent}" CornerRadius="10" BorderBrush="{StaticResource Brush_BorderDot_Slider}" BorderThickness="2">+ <Border.CacheMode>+ <BitmapCache RenderAtScale="2"/>+ </Border.CacheMode><Border.Style><Style TargetType="Border"><Style.Triggers>diff --git a/.Source/GTweak/Styles/Inputs/TextBox.xaml b/.Source/GTweak/Styles/Inputs/TextBox.xamlindex 1f89a7ba..a0f4c857 100644--- a/.Source/GTweak/Styles/Inputs/TextBox.xaml+++ b/.Source/GTweak/Styles/Inputs/TextBox.xaml@@ -1,4 +1,4 @@-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><Style TargetType="{x:Type TextBox}">@@ -22,8 +22,7 @@<Grid><Border x:Name="border" Background="{StaticResource Brush_Background_TextBox}" BorderBrush="{StaticResource Brush_Accent}" BorderThickness="0,0,0,1" CornerRadius="5"/><ScrollViewer x:Name="PART_ContentHost" Margin="5,0,0,0" VerticalAlignment="Center" />- <Label Margin="5,0,5,0" x:Name="WaterMarkLabel" Content="{TemplateBinding Tag}" VerticalAlignment="Center"- Visibility="Collapsed" Foreground="{StaticResource Brush_TextBlock_Inactivity}" FontFamily="{StaticResource Jura}"/>+ <Label Margin="5,0,5,0" x:Name="WaterMarkLabel" Content="{TemplateBinding Tag}" VerticalAlignment="Center" Visibility="Collapsed" Foreground="{StaticResource Brush_TextBlock_Inactivity}" FontFamily="{StaticResource Jura}"/></Grid><ControlTemplate.Triggers><MultiTrigger>diff --git a/.Source/GTweak/View/DataSystemView.xaml b/.Source/GTweak/View/DataSystemView.xamlindex 60305c77..2c0862ce 100644--- a/.Source/GTweak/View/DataSystemView.xaml+++ b/.Source/GTweak/View/DataSystemView.xaml@@ -37,7 +37,10 @@</Grid.ColumnDefinitions><Grid Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,2,10,0">- <Ellipse CacheMode="BitmapCache" Height="90" Width="90" Stroke="{StaticResource Brush_Separator}" StrokeThickness="4.5" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="{StaticResource RadialProgressOpacity}">+ <Ellipse Height="90" Width="90" Stroke="{StaticResource Brush_Separator}" StrokeThickness="4.5" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="{StaticResource RadialProgressOpacity}">+ <Ellipse.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Ellipse.CacheMode><Ellipse.Effect><DropShadowEffect Opacity="0.3"/></Ellipse.Effect>@@ -58,7 +61,10 @@<uc:FlowPanel Grid.Column="1" ContentAlignment="Center" HorizontalSpacing="0" VerticalSpacing="0" VerticalAlignment="Top" Margin="30,15,30,0"><StackPanel Orientation="Horizontal">- <Border Width="70" Height="70" HorizontalAlignment="Right" Margin="0,0,15,0" CacheMode="BitmapCache">+ <Border Width="70" Height="70" HorizontalAlignment="Right" Margin="0,0,15,0">+ <Border.CacheMode>+ <BitmapCache RenderAtScale="2"/>+ </Border.CacheMode><Border.Background><ImageBrush ImageSource="{Binding DisplayWallpaper, TargetNullValue={StaticResource Icon_LogoWin}, Mode=OneWay}" Stretch="UniformToFill"/></Border.Background>@@ -91,7 +97,10 @@</uc:FlowPanel><Grid Grid.Column="2" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10,2,15,0">- <Ellipse CacheMode="BitmapCache" Height="90" Width="90" Stroke="{StaticResource Brush_Separator}" StrokeThickness="4.5" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="{StaticResource RadialProgressOpacity}">+ <Ellipse Height="90" Width="90" Stroke="{StaticResource Brush_Separator}" StrokeThickness="4.5" VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="{StaticResource RadialProgressOpacity}">+ <Ellipse.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Ellipse.CacheMode><Ellipse.Effect><DropShadowEffect Opacity="0.5"/></Ellipse.Effect>diff --git a/.Source/GTweak/Windows/LoadingWindow.xaml b/.Source/GTweak/Windows/LoadingWindow.xamlindex 7e6f56e7..2e8406e6 100644--- a/.Source/GTweak/Windows/LoadingWindow.xaml+++ b/.Source/GTweak/Windows/LoadingWindow.xaml@@ -67,7 +67,10 @@</Grid></Grid>- <StackPanel Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,8,8,0" Panel.ZIndex="10">+ <StackPanel Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,8,8,0" Panel.ZIndex="10" RenderOptions.BitmapScalingMode="HighQuality">+ <StackPanel.CacheMode>+ <BitmapCache RenderAtScale="2" />+ </StackPanel.CacheMode><StackPanel.Resources><Style TargetType="Ellipse">@@ -78,6 +81,11 @@<Setter Property="Stroke" Value="{StaticResource Brush_Separator}"/><Setter Property="Fill" Value="Transparent"/><Setter Property="SnapsToDevicePixels" Value="True"/>+ <Setter Property="Effect">+ <Setter.Value>+ <DropShadowEffect x:Name="IndicatorShadow" BlurRadius="15" ShadowDepth="0" Opacity="0" Color="{StaticResource Color_Shadow}" />+ </Setter.Value>+ </Setter></Style></StackPanel.Resources>@@ -89,25 +97,39 @@<EventTrigger RoutedEvent="FrameworkElement.Loaded"><BeginStoryboard><Storyboard Timeline.DesiredFrameRate="120" RepeatBehavior="Forever" Duration="0:0:1.8">+<ColorAnimationUsingKeyFrames Storyboard.TargetName="Indicator1" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"><DiscreteColorKeyFrame KeyTime="0:0:0" Value="{StaticResource Color_Accent}"/><DiscreteColorKeyFrame KeyTime="0:0:0.6" Value="Transparent"/></ColorAnimationUsingKeyFrames>+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Indicator1" Storyboard.TargetProperty="Effect.Opacity">+ <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0.7"/>+ <DiscreteDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>+ </DoubleAnimationUsingKeyFrames><ColorAnimationUsingKeyFrames Storyboard.TargetName="Indicator2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"><DiscreteColorKeyFrame KeyTime="0:0:0.6" Value="{StaticResource Color_Accent}"/><DiscreteColorKeyFrame KeyTime="0:0:1.2" Value="Transparent"/></ColorAnimationUsingKeyFrames>+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Indicator2" Storyboard.TargetProperty="Effect.Opacity">+ <DiscreteDoubleKeyFrame KeyTime="0:0:0.6" Value="0.7"/>+ <DiscreteDoubleKeyFrame KeyTime="0:0:1.2" Value="0"/>+ </DoubleAnimationUsingKeyFrames><ColorAnimationUsingKeyFrames Storyboard.TargetName="Indicator3" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"><DiscreteColorKeyFrame KeyTime="0:0:1.2" Value="{StaticResource Color_Accent}"/><DiscreteColorKeyFrame KeyTime="0:0:1.8" Value="Transparent"/></ColorAnimationUsingKeyFrames>+ <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Indicator3" Storyboard.TargetProperty="Effect.Opacity">+ <DiscreteDoubleKeyFrame KeyTime="0:0:1.2" Value="0.7"/>+ <DiscreteDoubleKeyFrame KeyTime="0:0:1.8" Value="0"/>+ </DoubleAnimationUsingKeyFrames>+</Storyboard></BeginStoryboard></EventTrigger></StackPanel.Triggers></StackPanel>-+</Grid></ui:FluentWindow>diff --git a/.Source/GTweak/Windows/MainWindow.xaml b/.Source/GTweak/Windows/MainWindow.xamlindex 8c619f5b..639fdb0a 100644--- a/.Source/GTweak/Windows/MainWindow.xaml+++ b/.Source/GTweak/Windows/MainWindow.xaml@@ -30,6 +30,9 @@<DockPanel Grid.Column="0" VerticalAlignment="Center" LastChildFill="False" Height="48"><Image Width="20" Height="20" Source="/GTweak.ico" Stretch="Uniform" DockPanel.Dock="Left" VerticalAlignment="Center" Margin="15,0,0,0" /><TextBlock x:Name="TitleName" Text="GTweak" FontSize="17" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Brush_Accent}" VerticalAlignment="Center" Margin="10,0,20,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" KeyboardNavigation.IsTabStop="False" Width="61">+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode><TextBlock.Effect><DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" /></TextBlock.Effect>@@ -48,6 +51,9 @@<Border.Effect><DropShadowEffect BlurRadius="20" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" /></Border.Effect>+ <Border.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </Border.CacheMode><Border.Background><ImageBrush ImageSource="{Binding DisplayProfileAvatar, TargetNullValue={StaticResource Icon_ProfileAvatar}, Mode=OneWay}" Stretch="Uniform"/></Border.Background>@@ -64,6 +70,9 @@<TextBlock.Effect><DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" /></TextBlock.Effect>+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode></TextBlock></Grid>@@ -104,10 +113,13 @@</Grid.RowDefinitions><Grid Grid.Row="0">- <TextBlock CacheMode="BitmapCache" FontFamily="{StaticResource Jura}" Text="{DynamicResource title_settings_main}" Foreground="{StaticResource Brush_Accent}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0">+ <TextBlock FontFamily="{StaticResource Jura}" Text="{DynamicResource title_settings_main}" Foreground="{StaticResource Brush_Accent}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0"><TextBlock.Effect><DropShadowEffect BlurRadius="20" ShadowDepth="1" Direction="-90" Color="{StaticResource Color_Shadow}" /></TextBlock.Effect>+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode></TextBlock><Border Background="{StaticResource Brush_Separator}" Height="1.2" Width="330" VerticalAlignment="Bottom" CornerRadius="10" Margin="0,50,0,0"/></Grid>@@ -137,7 +149,11 @@<Viewbox HorizontalAlignment="Left" Stretch="Uniform" StretchDirection="DownOnly" Height="45" Margin="40,10,10,0"><StackPanel Orientation="Horizontal" VerticalAlignment="Top"><TextBlock Style="{StaticResource TextDefault}" Text="{DynamicResource cmbox_lang_main}"/>- <ComboBox Style="{StaticResource CustomComboBoxStyle}" CacheMode="BitmapCache" Margin="10,0,0,0" Height="33" ItemsSource="{Binding Languages}" SelectedValue="{Binding SelectedLanguage, Mode=TwoWay}" SelectedValuePath="Code" DisplayMemberPath="Display" />+ <ComboBox Style="{StaticResource CustomComboBoxStyle}" Margin="10,0,0,0" Height="33" ItemsSource="{Binding Languages}" SelectedValue="{Binding SelectedLanguage, Mode=TwoWay}" SelectedValuePath="Code" DisplayMemberPath="Display" >+ <ComboBox.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </ComboBox.CacheMode>+ </ComboBox></StackPanel></Viewbox>@@ -238,7 +254,7 @@<Grid Grid.ColumnSpan="2" Panel.ZIndex="100" VerticalAlignment="Top"><Border Margin="0,15,0,50" MinWidth="70" MaxWidth="320" HorizontalAlignment="Left" ClipToBounds="True">- <ScrollViewer Padding="0,0,15,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" CanContentScroll="True" FlowDirection="RightToLeft">+ <ScrollViewer Padding="0,0,15,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" CanContentScroll="True" FlowDirection="RightToLeft"><StackPanel Orientation="Vertical" FlowDirection="LeftToRight"><RadioButton Name="BtnUtils" Style="{StaticResource BtnNavigation}" Tag="{DynamicResource rbtn_utils_main}" Command="{Binding NavigateToUtilsCommand}" IsChecked="True" >diff --git a/.Source/GTweak/Windows/NotificationWindow.xaml b/.Source/GTweak/Windows/NotificationWindow.xamlindex e6b4a27a..ec1a0abe 100644--- a/.Source/GTweak/Windows/NotificationWindow.xaml+++ b/.Source/GTweak/Windows/NotificationWindow.xaml@@ -20,8 +20,11 @@<Button x:Name="ButtonClose" Style="{StaticResource TitleButtonClose}" Margin="0,2.5,2.5,0" HorizontalAlignment="Right" VerticalAlignment="Center" PreviewMouseLeftButtonUp="ButtonClose_PreviewMouseLeftButtonUp"/></StackPanel>- <DockPanel CacheMode="BitmapCache" VerticalAlignment="Center" HorizontalAlignment="Left" LastChildFill="True">+ <DockPanel VerticalAlignment="Center" HorizontalAlignment="Left" LastChildFill="True"><TextBlock x:Name="TitleName" Text="GTweak" FontSize="15" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Brush_Accent}" VerticalAlignment="Center" Margin="15,0,0,0" TextTrimming="CharacterEllipsis" KeyboardNavigation.IsTabStop="False">+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode><TextBlock.Effect><DropShadowEffect BlurRadius="15" ShadowDepth="0" Opacity="0.7" Color="{StaticResource Color_Shadow}" /></TextBlock.Effect>@@ -39,7 +42,7 @@<Image Width="53" Height="53" Source="/GTweak.ico" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="20,0,0,15" /></Grid>- <Grid Grid.Column="1" CacheMode="BitmapCache">+ <Grid Grid.Column="1"><Grid.RowDefinitions><RowDefinition Height="Auto"/><RowDefinition Height="*"/>@@ -48,6 +51,9 @@<Grid Grid.Row="0"><DockPanel VerticalAlignment="Center" HorizontalAlignment="Left" LastChildFill="True"><TextBlock x:Name="Header" Margin="15,10,0,0" Text="Title" Foreground="{StaticResource Brush_Highlighted}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="15" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium">+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode><TextBlock.Effect><DropShadowEffect Opacity="0.2"/></TextBlock.Effect>@@ -57,6 +63,9 @@<Grid Grid.Row="1"><TextBlock x:Name="MessageBody" Margin="15,0,0,3" Text="Text" Foreground="{StaticResource Brush_TextBlock_Inactivity}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="14" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium" MaxWidth="285" >+ <TextBlock.CacheMode>+ <BitmapCache RenderAtScale="2" EnableClearType="True"/>+ </TextBlock.CacheMode><TextBlock.Effect><DropShadowEffect Opacity="0.2"/></TextBlock.Effect>