33 lines
2.1 KiB
XML
33 lines
2.1 KiB
XML
<UserControl x:Class="VisionLight.UCLightMainView"
|
|
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:local="clr-namespace:VisionLight"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800" IsVisibleChanged="LightMainView_IsVisibleChanged">
|
|
<UserControl.Resources>
|
|
<local:BoolVisibleCollapseConverter x:Key="convVisibleCollapse"/>
|
|
<local:IsExistItemConverter x:Key="convExistItem"/>
|
|
</UserControl.Resources>
|
|
<Border Background="Transparent" BorderThickness="2" BorderBrush="LightGray" CornerRadius="8" Padding="10">
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock Text="API TEST" Margin="10" FontSize="30" FontWeight="Bold"/>
|
|
<GroupBox Header="Main API" Background="#05000000">
|
|
<ItemsControl x:Name="MainApiItemsControl" />
|
|
</GroupBox>
|
|
<GroupBox Background="#05773300">
|
|
<GroupBox.Header>
|
|
<HeaderedContentControl>
|
|
<ToggleButton x:Name="FoldingButton" Content="Custom API" FontWeight="SemiBold" Width="auto" Height="30" IsEnabled="{Binding Items.Count, ElementName =CustomApiItemsControl, Converter={StaticResource convExistItem}}"/>
|
|
</HeaderedContentControl>
|
|
</GroupBox.Header>
|
|
<StackPanel>
|
|
<TextBlock Text="Warning !! This is test api Menu. Please use it with caution as success or failure may vary depending on the implementation." Foreground="DarkRed" FontWeight="SemiBold" Margin="0,0,0,10"/>
|
|
<ItemsControl x:Name="CustomApiItemsControl" Visibility="{Binding IsChecked, ElementName=FoldingButton, Converter={StaticResource convVisibleCollapse}}" />
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
</Border>
|
|
</UserControl>
|