Add CheckComboBox
This commit is contained in:
@ -44,5 +44,7 @@
|
||||
Margin="50,200,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
||||
<Button x:Name="Button4" Content="PDF Erzeugen" Click="Button4_Click" Tag="Print"
|
||||
Margin="50,240,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
||||
<Button x:Name="TestWindowButton" Content="Test Fenster" Click="TestWindowButton_Click"
|
||||
Margin="50,280,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
@ -33,5 +33,10 @@ namespace Elwig.Windows {
|
||||
doc.Show();
|
||||
});
|
||||
}
|
||||
|
||||
private void TestWindowButton_Click(object sender, RoutedEventArgs evt) {
|
||||
var w = new TestWindow();
|
||||
w.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
16
Elwig/Windows/TestWindow.xaml
Normal file
16
Elwig/Windows/TestWindow.xaml
Normal file
@ -0,0 +1,16 @@
|
||||
<Window x:Class="Elwig.Windows.TestWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Elwig.Windows"
|
||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||
Title="Test Fenster - Elwig" MinHeight="400" MinWidth="325" Height="450" Width="800" ResizeMode="CanResize">
|
||||
<Grid>
|
||||
<xctk:CheckComboBox x:Name="_combo" Width="200"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
SelectedValue="{Binding SelectedValue}"
|
||||
SelectedItemsOverride="{Binding SelectedItems}"/>
|
||||
</Grid>
|
||||
</Window>
|
10
Elwig/Windows/TestWindow.xaml.cs
Normal file
10
Elwig/Windows/TestWindow.xaml.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Elwig.Windows {
|
||||
public partial class TestWindow : Window {
|
||||
public TestWindow() {
|
||||
InitializeComponent();
|
||||
_combo.ItemsSource = new string[] { "Klasse A", "Klasse B", "Klasse C", "Klasse D", "Klasse E", "Klasse F" };
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user