/
MainWindow.xaml
16 lines (16 loc) · 1.14 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<Window x:Class="T207471.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxi="http://schemas.devexpress.com/winfx/2008/xaml/core/internal"
xmlns:dxt="http://schemas.devexpress.com/winfx/2008/xaml/core/themekeys"
dx:ThemeManager.ThemeName="{Binding EditValue, ElementName=combo}"
Title="MainWindow" Height="350" Width="525">
<DockPanel>
<dxe:ComboBoxEdit Name="combo" ItemsSource="{x:Static dx:Theme.Themes}" EditValue="{x:Static dx:Theme.DefaultThemeName}"
DisplayMember="Name" Margin="5" ValueMember="Name" DockPanel.Dock="Top" Width="200" />
<TextBlock Text="The border below uses a theme-specific background:" FontSize="17" DockPanel.Dock="Top" HorizontalAlignment="Center" />
<Border Margin="30" Background="{dxi:ThemeResource {dxt:FloatingContainerThemeKey ResourceKey=FloatingContainerBackground}}" />
</DockPanel>
</Window>