Click here to Skip to main content
16,010,360 members

Comments by Cesitar Ps (Top 3 by date)

Cesitar Ps 28-Mar-16 11:46am View    
Thank you, this is what I was looking for

http://www.c-sharpcorner.com/UploadFile/736ca4/style-button-in-wpf/
Cesitar Ps 10-Sep-13 10:17am View    
Deleted
string xaml = "<grid margin="0" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><textblock text="Page one" fontsize="32" foreground="White" horizontalalignment="Center" verticalalignment="Center"> ";

StringReader stringReader = new StringReader(xaml);

XmlReader xmlReader = XmlReader.Create(stringReader);

UIElement MyVisualTree = (UIElement)XamlReader.Load(xmlReader);

Layout.Children.Add(MyVisualTree);

Pero cuando deseo definir la estructura del “string xaml=…” en un archivo XML de la siguiente manera:

<menuitem tipo="C" xaml=" <Grid> cualquier contenido </Grid>" estado="E">

Al tratar de procesarlo me indica que debo definirlo como:

<menuitem tipo="C" xaml=" <Grid> cualquier contenido </Grid>" estado="E">

Y no deseo hacerlo de esta manera porque ya no sería tan legible para mí (< >) al momento de editarlo.Tampoco deseo usar DataTemplates porque para mi caso son estaticos
Cesitar Ps 12-Aug-13 13:14pm View    
thank you very much my friend, this works