Added shared UI library and finished the ColorPicker

This commit is contained in:
Robert committed 2019-12-09 13:02:59 +01:00
1 parent 5e876dc8ca
commit b9471abdec
30 files changed
+875 -321

No files matched your search

@@ -5,11 +5,25 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Artemis.UI.Screens.Workshop"
xmlns:s="https://github.com/canton7/Stylet"
xmlns:controls="clr-namespace:Artemis.UI.Controls"
xmlns:controls="clr-namespace:Artemis.UI.Shared;assembly=Artemis.UI.Shared"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<TextBlock Text="{Binding TestColor}"></TextBlock>
<controls:ColorPicker Color="{Binding TestColor}" VerticalAlignment="Center" HorizontalAlignment="Center"></controls:ColorPicker>
</Grid>
<StackPanel>
<Rectangle Width="100" Height="100" HorizontalAlignment="Left">
<Rectangle.Fill>
<SolidColorBrush Color="{Binding TestColor}" />
</Rectangle.Fill>
</Rectangle>
<TextBlock Text="{Binding TestColor}" />
<Button Command="{s:Action UpdateValues}" Style="{StaticResource MaterialDesignRaisedButton}"
HorizontalAlignment="Left" Margin="0 10">
Update values
</Button>
<CheckBox IsChecked="{Binding TestPopupOpen}">Test</CheckBox>
<controls:ColorPicker Color="{Binding TestColor, Mode=TwoWay}" PopupOpen="{Binding TestPopupOpen}" materialDesign:HintAssist.Hint="Custom hint" />
</StackPanel>
</UserControl>