摘要:
and (@isViewOthers = 1 or userprofileID = @UserprofileID) /////////////////////////////////////////////////////////////////// if @isviewother = 1 ... 阅读全文
摘要:
1 Visibility="{Binding Path=DataContext.Model.IsFromDispensingScreen, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type UserControl}}}" 阅读全文
摘要:
https://03k.org/kms.html 这里的地址有详细教程 阅读全文
摘要:
一个bat文件,可执行当前文件夹下所有的sql文件。 注意替换代码中红色字段的值,改为你自己数据库相对应的值。如果报错,请到当前目录中的output.txt中查看。 阅读全文
摘要:
Background的值是一个Brush类型,所以我们可以设置他的值为SolidColorBrush,可以直接new一个SolidColorBrush对象给它赋值。 然后直接给相应的对象设置 阅读全文
摘要:
使用mvvm架构,在某一个自定义控件内部或者DataGrid内部调用外部view的DataContext。 <TextBlock Text="{Binding DataContext.WatermarkText,RelativeSource={RelativeSource FindAncestor, 阅读全文
摘要:
使用 Process 创建新的线程 启动线程 在Start方法里通知UI线程 不会阻塞UI线程 使用MVVM的话可以直接用 阅读全文
摘要:
设置DataGrid CanUserAddRows="True",自动添加一行。 控制当前row为新增行时不能删除 阅读全文
摘要:
注意:此文献仅供个人参考,其他人毫无参考意义。 有关项目中需要把一个EntityList中的数据拿出来放入另一个EntityList,使用EntityList.Import(Entity)方法。 阅读全文