Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Generating the name of each control in XAM automatically??

$
0
0

Hi all of you,

How can I do that? I've got a bunch of controls around my view and I'd like to assign name automatically taking other properties already defined like "Content". So this way I'll avoid write every time the Name.

<CheckBox IsChecked="False" Name="??????????" Content="{Resx OrExpander_EntradaOption2}" />

I mean, the name of this CheckBox should be built base on resource OrExpander_EntradaOption2...

Automatically get the same name for Name property.

<CheckBox IsChecked="False" Name="OrExpander_EntradaOption2" Content="{Resx OrExpander_EntradaOption2}" />


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>