xamlreader Questions
1
Solved
I'm trying to parse with XamlReader.Load() a DataTemplate (for a WPF datagrid) created dynamically in code behind :
DataTemplate dataTemplate;
StringReader template = new StringReader($@"
<...
Saturniid asked 22/11, 2021 at 22:56
4
Solved
I've managed to reduce this to a simple test case. An exception is thrown during the parsing of this XAML using XamlReader.Parse():
<DockPanel xmlns="http://schemas.microsoft.com/winfx/2006/xam...
Bellay asked 27/7, 2011 at 20:18
5
Solved
A WPF app has an operation of loading a user control from a separate file using XamlReader.Load() method:
StreamReader mysr = new StreamReader(pathToFile);
DependencyObject rootObject = XamlReader...
Judiejudith asked 22/3, 2011 at 17:20
2
Solved
I use FlowDocument with BlockUIContainer and InlineUIContainer elements containing (or as base classes) some custom blocks - SVG, math formulas etc.
Because of that using Selection.Load(stream, Dat...
Malemute asked 4/9, 2014 at 9:52
1
Solved
I would like to load vector graphics stored as XAML files (separate files, not in a dictionary), embedded in my application, and I have a few questions to do so:
XAML looks a bit ambiguous, since...
Vegetation asked 1/5, 2012 at 22:35
1
I'm using XamlReader successfully to load a xaml file and create a FrameworkElement to work with.
The xaml I'm loading has binding expressions in it such as:
<TextBlock Text="{Binding DataCont...
Spavin asked 22/9, 2011 at 13:17
2
Solved
I'm trying to implement the code below in my WPF project in order to generate DataTemplates on the fly for a DataGrid with dynamic columns. I found the code on StackOverflow here
public DataTempla...
Phox asked 24/8, 2011 at 5:42
1
Solved
The XamlReader is loading Xaml using types defined within the local assembly and the WPF assemblies without any problems.
If I include types defined within external assemblies then a XamlParseExce...
Frustrated asked 21/7, 2011 at 7:1
1
Solved
I have a class, containing a property Brush MyBrush marked as [XmlIgnore]. Nevertheless it is serialized in the stream causing trouble when trying to read via XamlReader.
I did some tests, e.g. wh...
Locale asked 1/1, 2011 at 20:9
1
Solved
I have some string representations of Xaml objects, and I want to build the controls. I'm using the XamlReader.Parse function to do this. For a simple control such as Button that has a default cons...
Canned asked 25/2, 2010 at 16:58
1
© 2022 - 2024 — McMap. All rights reserved.