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

Assigning a key resource from code-behind

$
0
0

hi,

I need to replicate in code-behind the assignment for the Header (LABEL):

XAML:


<Label Content="{Resx OrExpander_ActionsSave}" Name="Guardar"  Style="{StaticResource ActionLabelStyle}"

Code-behind:


I've got the assignment for the style:


 
Dim estilet As System.Windows.Style = Me.FindResource("ActionLabelStyle")

  Dim label2 As New Label

label2.Style = estilet


But how can I assign the key named "OrExpander_ActionsSave"?

TIA,




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


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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