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
0
votes
1 answer

Should I track .baml files in my WPF repo?

I'm very new to version control and git, and I'm trying to learn how to use SourceTree. I have about a dozen commits already and I'm not sure why or how these .baml files were created, but they were not in any of my previous commits, and I'm…
ChrisPBacon
  • 177
  • 2
  • 15
0
votes
1 answer

loading ResourceDictionary from baml using Baml2006Reader

How do can I read through a baml stream that contains a ResourceDictionaory using the Baml2006Reader and without acually instantiating the the ResourceDictionary? I can ready through regular baml that just contains a UserControl just fine and I can…
bitbonk
  • 48,890
  • 37
  • 186
  • 278
0
votes
1 answer

How do I "merge" or use a system assembly's ResourceDictionary in my generic.xaml?

I specifically want to be able to leverage some of the system theme templates and definitions (colours and brushes) for my own custom control. I "think" I'm supposed to use the element in my generic.xaml's root element. Considering I'm supposed to…
chrisp
  • 2,181
  • 4
  • 27
  • 35
0
votes
1 answer

Where can I find Metro theme control color definitions?

I'm trying to make my custom controls behave and look as others in the presentation framework.I tried looking through the GAC with ILSpy, and I can't seem to find a "Metro" definition. Using colors defined under "SystemColors", don't come up with…
chrisp
  • 2,181
  • 4
  • 27
  • 35
-1
votes
1 answer

Set relative path of baml/xaml in *.g.cs using MarkupCompilePass1

Currently I'm compiling xaml to baml using MarkupCompilePass1. This is working pretty well, besides of the relative paths which points to the baml/xaml ressources. For example let's assume the xaml file is in the directory ui/controls/test.xaml,…
BendEg
  • 20,098
  • 17
  • 57
  • 131
-1
votes
1 answer

How to remove baml from WPF assembly?

Using the merged resource dictionaries degrade application performance. In my assembly I often need to use merged resource dictionaries. I want to combine resources in one dictionary, and delete the original baml. I can't set Build Action to None…
Aleksandr Vishnyakov
  • 1,872
  • 5
  • 23
  • 39
1 2
3