WPF界面中添加(控件显示信息 、GridView、GridView数据“右键”显示)

1.控件属性中ToolTip功能是:当鼠标移动到改控件是显示的信息。例如

     ToolTip=" 请输入内容">

   

(当执行时,鼠标在改控件上移动,会看到提示信息“请输入内容”)

 

 2.(gridview当然是显示一堆需要使用的数据)
                        Grid.Row="1"
                        IsReadOnly="True"

                        SelectedItem="{Binding SelectedRow}" (对选中某一行数据的操作绑定)

                        AutoGenerateColumns="False"    

                        AlternationCount="2"     ShowGroupPanel="False"                   
                        AlternateRowBackground="#FFE5E8F5"(绿色标注的功能为:显示列表数据时,两行数据之间颜色不同,方便查看)
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                       PreviewMouseRightButtonUp="PreviewMouseRightButtonUp"(右键点击某一行后自动选中)
                        ItemsSource="{Binding PagedSource,ElementName=RadDataPagerDocumentList,

                        UpdateSourceTrigger =PropertyChanged}"(分页显示,其中名字需要一样,就是标注相同橘色颜色的地方

   >
                (这里就是右键点击出现的操作)
               
                   
                   
                   
                   
               
           


         (显示的一堆数据,有“名称,编码,日期,备注”)
          DataMemberBinding="{Binding Name,Mode= TwoWay}"/>(红色的DataMemberBing是绑定的事件,将需要显示的内容赋值给Name)
         
         
          
      
 
 x:Name="RadDataPagerDocumentList" FontSize="12" Source="{Binding  DataSourceConnection,UpdateSourceTrigger=PropertyChanged}" PageSize="{Binding PageSize,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>

转载于:https://www.cnblogs.com/Latent-Truth/archive/2013/03/25/2980404.html

你可能感兴趣的:(WPF界面中添加(控件显示信息 、GridView、GridView数据“右键”显示))