日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
WPF嵌入式資源相關(guān)概念介紹

WPF開發(fā)工具的使用幫助我們實現(xiàn)了許多以前難以實現(xiàn)的圖形處理功能。我們在這里將會為大家介紹一下有關(guān)WPF嵌入式資源的相關(guān)概念。#t#

我們提供的服務(wù)有:成都網(wǎng)站設(shè)計、網(wǎng)站建設(shè)、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認證、興和ssl等。為上1000家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學管理、有技術(shù)的興和網(wǎng)站制作公司

WPF嵌入式資源代碼示例:

  1. < Page x:Class="WpfWebApp.Page1" 
  2. xmlns="http://schemas.microsoft.
    com/winfx/2006/xaml/presentation" 
  3. xmlns:uc="clr-namespace:
    WpfLibruary;assembly=WpfLibruary" 
  4. xmlns:x="http://schemas.microsoft.
    com/winfx/2006/xaml" 
  5. xmlns:local="clr-namespace:WpfWebApp" 
  6. Title="Page1" Height="332" 
    Width="757" VerticalAlignment="Top"> 
  7. < Page.Resources> 
  8. < local:PersonCollection x:Key="PersonC"> 
  9. < local:Person Id="1" Name="Cgc1" /> 
  10. < local:Person Id="2" Name="Cgc2" /> 
  11. < local:Person Id="3" Name="Cgc3" /> 
  12. < /local:PersonCollection> 
  13. < /Page.Resources> 
  14. < Grid Height="289"> 
  15. < TextBlock FontSize="24" 
    TextWrapping="Wrap" Margin=
    "0,0,0,-19.998"> 
  16. < Hyperlink x:Name="LnkPre" 
    NavigateUri="Page2.xaml" 
    Foreground="Black"> 
  17. Enter Page2  
  18. < /Hyperlink> 
  19. < /TextBlock> 
  20. < Button Margin="358,43,214,0" 
    Name="button1" Click="button1_Click" 
    Height="49.024" VerticalAlignment
    ="Top">Button< /Button> 
  21. < ListBox ItemsSource="{StaticResource 
    PersonC}" IsSynchronizedWithCurrentItem
    ="True" x:Name="LstPerson" 
    HorizontalAlignment="Left"
     Width="297" Height="131" 
    VerticalAlignment="Top"> 
  22. < ListBox.ItemTemplate> 
  23. < DataTemplate> 
  24. < DockPanel> 
  25. < TextBlock Text="{Binding 
    Path=Id}">< /TextBlock> 
  26. < TextBlock Text="分分:">< /TextBlock> 
  27. < TextBlock Text="{Binding 
    Path=Name}">< /TextBlock> 
  28. < /DockPanel> 
  29. < /DataTemplate> 
  30. < /ListBox.ItemTemplate> 
  31. < /ListBox> 
  32. < /Grid> 
  33. < /Page> 
  34. public class Person  
  35. {  
  36. public Person()  
  37. { }  
  38. public Person(Int32 Id, String Name)  
  39. {  
  40. this.Id = Id;  
  41. this.Name = Name;  
  42. }  
  43. public Int32 Id  
  44. {  
  45. get;  
  46. set;  
  47. }  
  48. public String Name  
  49. {  
  50. get;  
  51. set;  
  52. }  
  53. }  
  54. public class PersonCollection : 
    System.Collections.ObjectModel.
    ObservableCollection< Person> 
  55. {  

WPF嵌入式資源的相關(guān)概念就為大家介紹這里。


標題名稱:WPF嵌入式資源相關(guān)概念介紹
標題來源:http://www.dlmjj.cn/article/coshjge.html