Skip to content

Commit d98235b

Browse files
committed
Initialize WinUI3WindowMenuStyle
Initialize WinUI3WindowMenuStyle
1 parent de7b493 commit d98235b

30 files changed

+4302
-1
lines changed

.editorconfig

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
end_of_line = crlf
6+
dotnet_style_qualification_for_field = false:silent
7+
dotnet_style_qualification_for_property = false:silent
8+
dotnet_style_qualification_for_method = false:silent
9+
dotnet_style_qualification_for_event = false:silent
10+
11+
[*.{cs,xaml}]
12+
indent_style = space
13+
indent_size = 4
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true
16+
17+
[*.cs]
18+
#### 命名样式 ####
19+
20+
# 命名规则
21+
22+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
23+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
24+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
25+
26+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
27+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
28+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
29+
30+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
31+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
32+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
33+
34+
# 符号规范
35+
36+
dotnet_naming_symbols.interface.applicable_kinds = interface
37+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
38+
dotnet_naming_symbols.interface.required_modifiers =
39+
40+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
41+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
42+
dotnet_naming_symbols.types.required_modifiers =
43+
44+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
45+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
46+
dotnet_naming_symbols.non_field_members.required_modifiers =
47+
48+
# 命名样式
49+
50+
dotnet_naming_style.begins_with_i.required_prefix = I
51+
dotnet_naming_style.begins_with_i.required_suffix =
52+
dotnet_naming_style.begins_with_i.word_separator =
53+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
54+
55+
dotnet_naming_style.pascal_case.required_prefix =
56+
dotnet_naming_style.pascal_case.required_suffix =
57+
dotnet_naming_style.pascal_case.word_separator =
58+
dotnet_naming_style.pascal_case.capitalization = pascal_case
59+
60+
dotnet_naming_style.pascal_case.required_prefix =
61+
dotnet_naming_style.pascal_case.required_suffix =
62+
dotnet_naming_style.pascal_case.word_separator =
63+
dotnet_naming_style.pascal_case.capitalization = pascal_case
64+
csharp_using_directive_placement = outside_namespace:silent
65+
csharp_style_expression_bodied_methods = false:silent
66+
csharp_style_expression_bodied_constructors = false:silent
67+
csharp_style_expression_bodied_operators = false:silent
68+
csharp_style_expression_bodied_properties = true:silent
69+
csharp_style_expression_bodied_indexers = true:silent
70+
csharp_style_expression_bodied_accessors = true:silent
71+
csharp_style_expression_bodied_lambdas = true:silent
72+
csharp_style_expression_bodied_local_functions = false:silent
73+
csharp_style_conditional_delegate_call = true:suggestion
74+
csharp_style_prefer_parameter_null_checking = true:suggestion
75+
csharp_space_around_binary_operators = before_and_after
76+
csharp_style_var_for_built_in_types = false:silent
77+
csharp_style_var_when_type_is_apparent = false:silent
78+
79+
[*.vb]
80+
#### 命名样式 ####
81+
82+
# 命名规则
83+
84+
dotnet_naming_rule.interface_should_be_以_i_开始.severity = suggestion
85+
dotnet_naming_rule.interface_should_be_以_i_开始.symbols = interface
86+
dotnet_naming_rule.interface_should_be_以_i_开始.style = 以_i_开始
87+
88+
dotnet_naming_rule.类型_should_be_帕斯卡拼写法.severity = suggestion
89+
dotnet_naming_rule.类型_should_be_帕斯卡拼写法.symbols = 类型
90+
dotnet_naming_rule.类型_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
91+
92+
dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.severity = suggestion
93+
dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.symbols = 非字段成员
94+
dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.style = 帕斯卡拼写法
95+
96+
# 符号规范
97+
98+
dotnet_naming_symbols.interface.applicable_kinds = interface
99+
dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
100+
dotnet_naming_symbols.interface.required_modifiers =
101+
102+
dotnet_naming_symbols.类型.applicable_kinds = class, struct, interface, enum
103+
dotnet_naming_symbols.类型.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
104+
dotnet_naming_symbols.类型.required_modifiers =
105+
106+
dotnet_naming_symbols.非字段成员.applicable_kinds = property, event, method
107+
dotnet_naming_symbols.非字段成员.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected
108+
dotnet_naming_symbols.非字段成员.required_modifiers =
109+
110+
# 命名样式
111+
112+
dotnet_naming_style.以_i_开始.required_prefix = I
113+
dotnet_naming_style.以_i_开始.required_suffix =
114+
dotnet_naming_style.以_i_开始.word_separator =
115+
dotnet_naming_style.以_i_开始.capitalization = pascal_case
116+
117+
dotnet_naming_style.帕斯卡拼写法.required_prefix =
118+
dotnet_naming_style.帕斯卡拼写法.required_suffix =
119+
dotnet_naming_style.帕斯卡拼写法.word_separator =
120+
dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case
121+
122+
dotnet_naming_style.帕斯卡拼写法.required_prefix =
123+
dotnet_naming_style.帕斯卡拼写法.required_suffix =
124+
dotnet_naming_style.帕斯卡拼写法.word_separator =
125+
dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case

.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

0 commit comments

Comments
 (0)