简体   繁体   English

如何将窗口的访问修饰符从公共更改为内部?

[英]How can i change the Access Modifier of a Window from public to internal?

How can i change the public access specifier to internal of window. 我如何将公共访问说明符更改为窗口内部。

<Window x:Class="MyName.MyWindow" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

How to change access specifier from public to internal 如何将访问说明符从公共更改为内部

internal partial class MyWindow : Window

{ ........................ } {........................}

this statement show error ... have conflicting accessibility modifiers. 此语句显示错误...辅助功能修饰符冲突。 How can i achieve this in WPF? 我如何在WPF中实现这一目标?

Correct the both partial classes parts 更正两个部分类的各个部分

You just have 你只有

internal partial class MyWindow : Window {
public class MyWindow {

Switch to 切换到

internal partial class MyWindow : Window {
internal class MyWindow {

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何限制引用库中的公共访问修饰符? - How can I restrict public access modifier in referenced library? 如何将resharpers默认访问修饰符更改为public而不是内部生成的类? - How to change resharpers default access modifier to public instead of internal for generated classes? 将静态方法的修饰符从内部更改为公共是否是重大变化? - Is changing the modifier of a static method from internal to public a breaking change? 修改公共财产的访问修饰符是一个突破性的变化吗? - Is it a breaking change that modifying the access modifier of a public property? Resharper建议对公开,内部或受保护的对象使用无效方法-如何始终拥有需求访问修饰符 - Resharper suggest void method to public, internal or protected - how to always have demand access modifier 不能使用公共访问修饰符 - can't use public access modifier 将.NET中的访问修饰符从共享组件中的私有更改为私有是一项重大更改吗? - Is changing an access modifier in .NET from private to public in share component a breaking change? 是否有必要将类访问修饰符更改为公共,以便从另一个程序集中进行单元测试? - Is it worth to change class access modifier to public for unit testing from another assembly? 内部访问修饰符 - Internal access modifier 如何将App-GlobalResources文件夹中lang.resx的禁用访问修饰符更改为public? - how to change disabled access modifier of lang.resx within App-GlobalResources folder to public?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM