开发者

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

开发者 https://www.devze.com 2023-04-05 04:27 出处:网络
How can i change the public access specifier to internal of window. <Window x:Class=\"MyName.MyWindow\"

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/p开发者_StackOverflowresentation"
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 {
0

精彩评论

暂无评论...
验证码 换一张
取 消