简体   繁体   中英

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?

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 {

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM