阅读背景:

DevExpress WPF MVVM入门例子

来源:互联网 
设置界面(MainWindows.XAML) <Window xmlns="https://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="https://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="https://schemas.microsoft.com/expression/blend/2008" xmlns:mc="https://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:WpfRobot" xmlns:dxwui="https://schemas.devexpress.com/winfx/2008/xaml/windowsui" xmlns:dx="https://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:lcub="https://schemas.arction.com/bindablecharting/ultimate/" xmlns:dxca="https://schemas.devexpress.com/winfx/2008/xaml/carousel" xmlns:dxn="https://schemas.devexpress.com/winfx/2008/xaml/navbar" xmlns:dxe="https://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxmvvm="https://schemas.devexpress.com/winfx/2008/xaml/mvvm" xmlns:dxnav="https://schemas.devexpress.com/winfx/2008/xaml/navigation" xmlns:lcusb="https://schemas.arction.com/semibindablecharting/ultimate/" x:Class="WpfRobot.MainWindow" mc:Ignorable="d" WindowStyle="SingleBorderWindow" Height="528.8" Width="645.6"> <DockPanel> <DockPanel.DataContext> <dxmvvm:ViewModelSource Type="local:ViewModel01"></dxmvvm:ViewModelSource> </DockPanel.DataContext> <dxn:NavBarControl DockPanel.Dock="Right" Width="231" EachGroupHasSelectedItem="False" Background="#FFEDE7E7" GroupDescription="的方法" AllowSelectItem="False"> <dxn:NavBarControl.View> <dxn:NavigationPaneView GroupDisplayMode="Text" ItemDisplayMode="ImageAndText" Orientation="Vertical" IsExpandButtonVisible="True" IsExpanded="True" ActiveGroupMinHeight="100" FlowDirection="RightToLeft" ItemForeground="#FF4E3E3E" /> </dxn:NavBarControl.View> <dxn:NavBarGroup x:Name="navBarGroup3" Header="系统设置" DisplayMode="ImageAndText" ImageSource="{dx:DXImage Image=Cancel_32x32.png}" > <dxn:NavBarItem x:Name="navBarItem4" > <Button x:Name="mybutton" Content="{Binding Path=Val, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" /> </dxn:NavBarItem> <dxn:NavBarItem x:Name="navBarItem5" > <Button x:Name="mybutton2" Content="dsdsdsd" Command="{Binding AddCommand}"/> </dxn:NavBarItem> </dxn:NavBarGroup> </dxn:NavBarControl> </DockPanel> </Window> 设置界面(MainWindows.XAML) <Window xmlns="https://sch



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: