07 2024 档案

摘要:<ListBox x:Name="lbx" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding ImgsList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectionChanged=" 阅读全文
posted @ 2024-07-28 20:53 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Managed Debugging Assistant 'FatalExecutionEngineError' Message=Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered 阅读全文
posted @ 2024-07-26 21:34 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要://Key code //xaml <DataGridTemplateColumn Header="Select"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <CheckBox x:Name="isSelectedCbx" IsThr 阅读全文
posted @ 2024-07-26 21:33 FredGrit 阅读(96) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp224.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-25 19:38 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:public int ImgIdx { get { return imgIdx; } set { if(value!=imgIdx) { imgIdx = value; if(imgIdx<0) { imgIdx = imgsCount - 1; } if(imgIdx>=imgsCount) { 阅读全文
posted @ 2024-07-18 20:27 FredGrit 阅读(38) 评论(0) 推荐(0) 编辑
摘要://xaml <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <ListBox Grid.Column="0" 阅读全文
posted @ 2024-07-18 19:32 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:private void SerializeDemo() { var obj = new[] { new { CountryId=1, CountryName="USA", StateList= new [] { new[] { new { StateId=1, StateName="NY", Ci 阅读全文
posted @ 2024-07-18 18:14 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp216.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-16 20:48 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:<ListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding CountryList}" x:Name="countryLbx" DisplayMemberPath="CountryName"/> <TextBlock Text="State 阅读全文
posted @ 2024-07-16 11:33 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <ListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding}" x:Name="countryLbx" DisplayMemberPath="CountryName"/> <ListBox Grid.Row="1" Grid. 阅读全文
posted @ 2024-07-16 11:25 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp214.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-14 19:04 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp212.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-14 17:23 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<Canvas Grid.Column="1" Background="Transparent" x:Name="cvs" ClipToBounds="True" MouseWheel="cvs_MouseWheel" MouseDown="cvs_MouseDown" MouseUp="cvs_M 阅读全文
posted @ 2024-07-13 21:44 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp210.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-13 21:20 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:private void ConvertImageToString() { byte[] bytesArr = File.ReadAllBytes(SelectedBk.ImgUrl); string imgBase64Str = Convert.ToBase64String(bytesArr); 阅读全文
posted @ 2024-07-12 17:54 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Copy from https://www.iditect.com/faq/csharp/wpf-webbrowser-control--how-to-suppress-script-errors.html#:~:text=To%20suppress%20these%20script%20error 阅读全文
posted @ 2024-07-12 12:16 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp206.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-12 11:52 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要:One possible cause is include chinese characters, //Wrong code private void OpenClick(object sender, RoutedEventArgs e) { OpenFileDialog dialog=new Op 阅读全文
posted @ 2024-07-12 11:50 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:<DataGrid ItemsSource="{Binding BooksList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectionMode="Extended"> <DataGrid.ContextMenu> <ContextM 阅读全文
posted @ 2024-07-11 10:39 FredGrit 阅读(20) 评论(0) 推荐(0) 编辑
摘要:public class DelCmd : ICommand { private readonly Action<Object> execute; private readonly Predicate<Object> canExecute; public DelCmd(Action<object> 阅读全文
posted @ 2024-07-10 20:24 FredGrit 阅读(16) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp201.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-09 11:40 FredGrit 阅读(36) 评论(0) 推荐(0) 编辑
摘要://xaml <behavior:Interaction.Triggers> <behavior:EventTrigger EventName="MouseWheel" SourceObject="{Binding ElementName=img}"> <behavior:InvokeCommand 阅读全文
posted @ 2024-07-07 19:43 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostics.Eventing.Reader; using System. 阅读全文
posted @ 2024-07-07 16:06 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要://xaml <Image Grid.Column="1" ClipToBounds="True" Source="{Binding SelectedItem.ImgUrl,ElementName=lbx}"> <Image.ContextMenu> <ContextMenu> <MenuItem 阅读全文
posted @ 2024-07-06 20:29 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要://xaml <behavior:Interaction.Triggers> <behavior:EventTrigger EventName="KeyDown"> <behavior:CallMethodAction TargetObject="{Binding}" MethodName="Win 阅读全文
posted @ 2024-07-06 18:10 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Copy from https://blog.csdn.net/jacke121/article/details/87705301?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~ 阅读全文
posted @ 2024-07-05 16:11 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:System.Runtime.InteropServices.COMException HResult=0x88980406 Message=UCEERR_RENDERTHREADFAILURE (Exception from HRESULT: 0x88980406) Source=Presenta 阅读全文
posted @ 2024-07-04 21:57 FredGrit 阅读(221) 评论(0) 推荐(0) 编辑
摘要:Copy from https://www.cnblogs.com/lindexi/p/12086719.html https://learn.microsoft.com/en-us/previous-versions/aa969767(v=vs.110) 1.Download url: https 阅读全文
posted @ 2024-07-04 21:35 FredGrit 阅读(40) 评论(0) 推荐(0) 编辑
摘要:private void Window_Loaded(object sender, RoutedEventArgs e) { var children = mainGd.Children; foreach(var child in children) { var tempGd = child as 阅读全文
posted @ 2024-07-04 19:59 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp194.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-04 18:23 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:The key of dynamically generated contextmenu and menuitems is to bind command to appropriate command in viewmodel. <DataGrid.ContextMenu > <ContextMen 阅读全文
posted @ 2024-07-04 17:44 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp191.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-03 21:17 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp189.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-03 20:13 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp189.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-03 19:11 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp187.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-07-02 22:19 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:// ConsoleApplication3.cpp : This file contains the 'main' function. Program execution begins and ends there. // #pragma comment(lib, "rpcrt4.lib") #i 阅读全文
posted @ 2024-07-02 15:55 FredGrit 阅读(29) 评论(0) 推荐(0) 编辑
摘要:1.Add resource dictionary,Brushes.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m 阅读全文
posted @ 2024-07-01 21:36 FredGrit 阅读(19) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi 阅读全文
posted @ 2024-07-01 21:29 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示