mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
26 lines
1.3 KiB
XML
26 lines
1.3 KiB
XML
<UserControl x:Class="Artemis.UI.Views.Controls.RgbDevice.RgbLedView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:rgbDevice="clr-namespace:Artemis.UI.ViewModels.Controls.RgbDevice"
|
|
mc:Ignorable="d"
|
|
d:DataContext="{d:DesignInstance rgbDevice:RgbLedViewModel}"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<Grid Width="{Binding Width}" Height="{Binding Height}">
|
|
<Grid.Background>
|
|
<ImageBrush AlignmentX="Center" AlignmentY="Center" Stretch="Fill" ImageSource="{Binding Led.Image}" />
|
|
</Grid.Background>
|
|
|
|
<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> |