<Page x:Class="Example" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib"> <Page.Resources> <ObjectDataProvider x:Key="DockEnum" MethodName="GetValues" ObjectType="{x:Type System:Enum}" > <ObjectDataProvider.MethodParameters> <x:Type TypeName="Dock"/> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> <ObjectDataProvider x:Key="VerticalAlignmentEnum" MethodName="GetValues" ObjectType="{x:Type System:Enum}" > <ObjectDataProvider.MethodParameters> <x:Type TypeName="VerticalAlignment"/> </ObjectDataProvider.MethodParameters> </ObjectDataProvider> </Page.Resources> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <ListBox Grid.Row ="0" ItemsSource="{Binding Source={StaticResource DockEnum}}" /> <ComboBox Grid.Row ="1" ItemsSource="{Binding Source={StaticResource VerticalAlignmentEnum}}" /> </Grid> </Page>
Advertisements
I feel that is among the so much significant info for me.
And i’m satisfied studying your article. However
should statement on some common things, The web site taste is perfect,
the articles is actually nice : D. Excellent task, cheers
Comment by this page — 2018.11.24 @ 05:42 |