zoukankan      html  css  js  c++  java
  • 路径转换

         前台代码

      xmlns:wpfApplication6="clr-namespace:WpfFormControl"

      <Button Content="{Binding Source={x:Static wpfApplication6:Title.aa},Converter={StaticResource ss}}"/>

    后台

        /// <summary>
        /// Title.xaml 的交互逻辑
        /// </summary>
        public partial class Title : Window
        {
            public static string aa = "dfdf";
    
            public Title()
            {
                InitializeComponent();
                this.pswa.Content = Properties.Resources.psw;
    
            }
        }
        public class aConvert : IValueConverter
        {
    
            public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
            {
                return (string)value + ":d---fd";
            }
    
            public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
            {
                throw new NotImplementedException();
            }
        }
    View Code
  • 相关阅读:
    New-SAN-FENG-YUN-三
    San丰-Cloud
    SpringBoot+MySQL+MyBatis+Shiro+AdminLTE
    SanFeng-Clound
    SanFengClound
    传奇音乐设置
    热血传奇GOM引擎问题集锦
    app测试
    接口测试
    题目
  • 原文地址:https://www.cnblogs.com/lizhenlin/p/5877955.html
Copyright © 2011-2022 走看看