Fixed most of the editor performance

This commit is contained in:
SpoinkyNL committed 2019-11-12 22:34:44 +01:00
1 parent d26b22fa9a
commit bf1770f799
3 files changed
+26 -22

No files matched your search

@@ -10,19 +10,23 @@
d:DesignHeight="25" d:DesignWidth="25"
ToolTip="{Binding Tooltip}">
<UserControl.Resources>
<Converters:NullToImageConverter x:Key="NullToImageConverter"/>
<Converters:NullToImageConverter x:Key="NullToImageConverter" />
</UserControl.Resources>
<Grid Width="{Binding Width}" Height="{Binding Height}">
<Grid Width="{Binding Width}" Height="{Binding Height}" ClipToBounds="False">
<Grid.Background>
<ImageBrush AlignmentX="Center" AlignmentY="Center" Stretch="Fill" ImageSource="{Binding Led.Image, Converter={StaticResource NullToImageConverter}}" />
</Grid.Background>
<Path Data="{Binding DisplayGeometry}"
Clip="{Binding Data, RelativeSource={RelativeSource Self}}"
ClipToBounds="False"
Fill="{Binding FillBrush}"
Stroke="{Binding BorderBrush}"
StrokeThickness="2">
<Path Data="{Binding DisplayGeometry}" ClipToBounds="False">
<Path.Fill>
<SolidColorBrush Color="{Binding DisplayColor}" Opacity="0.25" />
</Path.Fill>
</Path>
<Path Data="{Binding StrokeGeometry}" ClipToBounds="False">
<Path.Fill>
<SolidColorBrush Color="{Binding DisplayColor}" />
</Path.Fill>
</Path>
</Grid>
</UserControl>