• 大小: 52KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: C#
  • 标签: C#WPF  右键菜单  显示  

资源简介

C#WPF 右键菜单 显示 事件触发 测试通过 //这里为按键响应事件 private void PushOutMessageBox(object sender, RoutedEventArgs e) { MessageBox.Show("弹出一个窗口~然后修改右键菜单显示"); //获取或设置右键菜单信息 (e.Source as MenuItem).Header = "hello world"; //设置背景颜色 SolidColorBrush m_scb = new SolidColorBrush(); m_scb.Color = Color.FromRgb(132,132,132); (e.Source as MenuItem).Background = m_scb; }

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace WpfApplication5
{
    /// 
    /// App.xaml 的交互逻辑
    /// 

    public partial class App : Application
    {
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2015-01-06 20:43  WpfApplication5\WpfApplication5\App.config

     文件        326  2015-01-06 20:43  WpfApplication5\WpfApplication5\App.xaml

     文件        342  2015-01-06 20:43  WpfApplication5\WpfApplication5\App.xaml.cs

     文件      10240  2015-01-06 21:02  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.exe

     文件        187  2015-01-06 20:43  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.exe.config

     文件      26112  2015-01-06 21:02  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.pdb

     文件      22984  2015-01-06 21:10  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.vshost.exe

     文件        187  2015-01-06 20:43  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.vshost.exe.config

     文件        490  2010-03-17 22:39  WpfApplication5\WpfApplication5\bin\Debug\WpfApplication5.vshost.exe.manifest

     文件       1266  2015-01-06 21:02  WpfApplication5\WpfApplication5\MainWindow.xaml

     文件       1303  2015-01-06 21:02  WpfApplication5\WpfApplication5\MainWindow.xaml.cs

     文件       2325  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\App.g.cs

     文件       2325  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\App.g.i.cs

     文件       7187  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1259  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\MainWindow.baml

     文件       4048  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\MainWindow.g.cs

     文件       4048  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\MainWindow.g.i.cs

     文件          0  2015-01-06 20:43  WpfApplication5\WpfApplication5\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2015-01-06 20:43  WpfApplication5\WpfApplication5\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2015-01-06 20:43  WpfApplication5\WpfApplication5\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       1710  2015-01-06 21:10  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.csproj.FileListAbsolute.txt

     文件        917  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.csproj.GenerateResource.Cache

     文件       2280  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.csprojResolveAssemblyReference.cache

     文件      10240  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.exe

     文件       1487  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.g.resources

     文件      26112  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.pdb

     文件        180  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5.Properties.Resources.resources

     文件        364  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5_MarkupCompile.cache

     文件        363  2015-01-06 21:02  WpfApplication5\WpfApplication5\obj\Debug\WpfApplication5_MarkupCompile.i.cache

     文件       2207  2015-01-06 20:43  WpfApplication5\WpfApplication5\Properties\AssemblyInfo.cs

............此处省略18个文件信息

评论

共有 条评论