mirror of
https://github.com/DarthAffe/KeyboardAudioVisualizer.git
synced 2025-12-12 23:28:30 +00:00
Workarounded ui-problem for the connected-devices window
This commit is contained in:
parent
492cd52689
commit
fc3db046c3
@ -54,19 +54,23 @@
|
|||||||
|
|
||||||
<TabItem Header="Settings">
|
<TabItem Header="Settings">
|
||||||
<GroupBox VerticalAlignment="Top">
|
<GroupBox VerticalAlignment="Top">
|
||||||
<controls:Formular>
|
<StackPanel Orientation="Vertical">
|
||||||
<controls:Formular.Resources>
|
<controls:Formular>
|
||||||
<Style BasedOn="{StaticResource StyleLabelFormular}" TargetType="Label" />
|
<controls:Formular.Resources>
|
||||||
<Style BasedOn="{StaticResource StyleTextBlockFormular}" TargetType="TextBlock" />
|
<Style BasedOn="{StaticResource StyleLabelFormular}" TargetType="Label" />
|
||||||
<Style BasedOn="{StaticResource StyleListBoxFormular}" TargetType="ListBox" />
|
<Style BasedOn="{StaticResource StyleTextBlockFormular}" TargetType="TextBlock" />
|
||||||
</controls:Formular.Resources>
|
<Style BasedOn="{StaticResource StyleListBoxFormular}" TargetType="ListBox" />
|
||||||
|
</controls:Formular.Resources>
|
||||||
|
|
||||||
<Label controls:Formular.IsLabel="True" Content="Version:" />
|
<Label controls:Formular.IsLabel="True" Content="Version:" />
|
||||||
<TextBlock Text="{Binding Version}" />
|
<TextBlock Text="{Binding Version}" />
|
||||||
|
|
||||||
<Label controls:Formular.LineBreaks="1" controls:Formular.IsLabel="True" Content="Connected Devices:" />
|
<Label controls:Formular.LineBreaks="1" controls:Formular.IsLabel="True" Content="Connected Devices:" />
|
||||||
<ListBox Width="400" ItemsSource="{Binding Source={x:Static core:RGBSurface.Instance}, Path=Devices}">
|
</controls:Formular>
|
||||||
<ListBox.ItemTemplate>
|
|
||||||
|
<!-- TODO DarthAffe 05.08.2017: Fix the formular to support that use-case -->
|
||||||
|
<ItemsControl VerticalAlignment="Top" HorizontalAlignment="Left" Margin="168,-22,0,0" ItemsSource="{Binding Source={x:Static core:RGBSurface.Instance}, Path=Devices}">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Style="{StaticResource StyleTextBlockFormular}">
|
<TextBlock Style="{StaticResource StyleTextBlockFormular}">
|
||||||
<TextBlock.Text>
|
<TextBlock.Text>
|
||||||
@ -78,9 +82,9 @@
|
|||||||
</TextBlock.Text>
|
</TextBlock.Text>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ListBox>
|
</ItemsControl>
|
||||||
</controls:Formular>
|
</StackPanel>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user