Advertisement

将UI元素或控件绑定到数据源

阅读量:

跟着视频操作——WPF入门基础教程合集_哔哩哔哩_bilibili

自己还是写下来,方便日后查阅

1.元素绑定机制设计

借助元素名称关联具体数值

复制代码
 <Window x:Class="Wpf_BV1mJ411F7zG.MainWindow"

    
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    
     xmlns:local="clr-namespace:Wpf_BV1mJ411F7zG"
    
     mc:Ignorable="d"

全部评论 (0)

还没有任何评论哟~