Questions tagged [baml]

BAML (Binary XAML) is compiled XAML file in WPF.

The Binary Application Markup Language is a file format of Microsoft that is generated by compiling XAML files.

A XAML file can be compiled into a Binary Application Markup Language file having the .BAML extension, which may be inserted as a resource into a .NET Framework assembly. At run-time, the framework engine extracts the .BAML file from assembly resources, parses it, and creates a corresponding WPF visual tree or workflow. Having this format, the content is faster to load during runtime.

36 questions
36
votes
6 answers

Obfuscator which supports WPF properly

What options exist for a good obfuscator tool for .NET which propertly support WPF in .NET 4.0? In particular, which obfuscation tools handle rewriting of BAML within WPF assemblies, and handle cross-assembly references within BAML? While most…
Reed Copsey
  • 554,122
  • 78
  • 1,158
  • 1,373
35
votes
4 answers

What is .baml file?

What is .baml file and what's the use of this file? Who creates this file?
Embedd_0913
  • 16,125
  • 37
  • 97
  • 135
30
votes
3 answers

Why XAML is compiled into BAML and not in C#

As far as I know, everything done in XAML can be done in C#. Why XAML is compiled in BAML and not in C# ? Wouldn't be more efficient to parse the XAML at compile-time and create the corresponding C# code ?
japf
  • 6,598
  • 3
  • 33
  • 30
13
votes
4 answers

BAML Decompiler / Viewer

Could anyone recommend a good BAML Decompiler / Viewer besides BAML Viewer plugin for Reflector, which doesn't handle path geometry/data?
alex
  • 74,215
  • 9
  • 49
  • 57
8
votes
2 answers

Compile Xaml into Baml?

How can I convert a xaml to baml? thanks
Hans
7
votes
1 answer

Dotfuscating BAML in WPF application

'Lo again, My Dotfuscation efforts continue! So I'm currently working on obfuscating a reasonable complicated WPF application consisting of ~38 assemblies. Now that I've overcome my performance issues (Speeding up obfuscation process), I've now…
JerKimball
  • 16,584
  • 3
  • 43
  • 55
5
votes
1 answer

How to decompile complex BAML to valid XAML

I tried ILSpy, but it failed: System.NotImplementedException: StaticResourceStart в Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ProcessNext() в Ricciolo.StylesExplorer.MarkupReflection.XmlBamlReader.ReadInternal() в…
Quiz
  • 514
  • 1
  • 7
  • 13
5
votes
1 answer

Manage localization with Baml

I'm developping a little application in WPF and I want to localize my resources. I've always used resources files (.resx), but I heard about BAML that was suppose to change the way of manage localization in a WPF application. I made my research…
esylvestre
  • 1,850
  • 4
  • 21
  • 30
4
votes
2 answers

Performance problem loading lots of user controls

My application is loading a bunch of the same user control into a ScrollPanel. The problem is, this is very slow. The profiler shows that the bottleneck is the method Application.LoadComponent(), which is called internally from the constructor of my…
codymanix
  • 28,510
  • 21
  • 92
  • 151
4
votes
2 answers

How to convert an assemblies BAML to XAML?

How do I walk through an assemblies BAML resources and convert them back to XAML?
Simon
  • 33,714
  • 21
  • 133
  • 202
3
votes
1 answer

How does PartialClassGenerationTask and MarkupCompilePass1 works/belongs together

can some one explain how the two Build tasks MarkupCompilePass1 and PartialClassGenerationTask belongs together? Currently I don't get whether they co-exists or if one needs each other. Can some one clearify the usage of both classes and how they…
BendEg
  • 20,098
  • 17
  • 57
  • 131
2
votes
1 answer

How can I use NAnt to compile WPF controls

I have a WPF project and I'm trying to setup a NAnt build script for it. The problem is that when it tries to compile the WPF controls, the .g.cs files are not being generated as they are when building from within Visual Studio. I'm using the csc…
andypike
  • 551
  • 2
  • 9
  • 15
2
votes
1 answer

In what assembly are the WPF UI BAML files?

I've seen them before, but I can't seem to find them. The .baml files for WPF controls are found under an embedded resource called ???.g.resources where ??? is the name of the assembly. I've looked through the resources of the following…
user1228
2
votes
1 answer

How can I get the actual XAML from a template object in code (or can I)?

Not sure if this is possible, but if I have a template object (passed in to the OnApplyTemplate override) is there any way I can examine the string-representation of the XAML that makes it up? I know internally when the template's XAML gets…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
2
votes
4 answers

BAML obfuscation

Is there any tool / commercial obfuscator that can obfuscate BAML resources in WPF controls? If not, its a tough time in terms of IP protection sicne hackers can easily peek into the BAML resource by using BAML to XAML converters.
User
1
2 3