Esempio n. 1
0
 private protected override void WriteHeaderClassStart(HeaderBuilder builder, IAnimatedVisualSourceInfo info, string inherits)
 {
     builder.Preamble.WriteLine($"{(info.Public ? "public " : string.Empty)}class {SourceClassName}");
     builder.Preamble.Indent();
     builder.Preamble.WriteLine($": public winrt::implements<{SourceClassName}, winrt::{inherits}>");
     builder.Preamble.UnIndent();
 }
 private protected override void WriteHeaderClassStart(HeaderBuilder builder, IAnimatedVisualSourceInfo info, string inherits)
 {
     // NOTE: the CX class is always made public. This is necessary to allow CX
     // XAML projects to compile (the XAML compiler can't find the metadata for the
     // class if it isn't made public).
     builder.Preamble.WriteLine($"public ref class {SourceClassName} sealed");
     builder.Preamble.Indent();
     builder.Preamble.WriteLine($": public {inherits}");
     builder.Preamble.UnIndent();
 }