private void TemplateDataSet_TemplateDataSetChanged(TemplateDataSetEventArgs e) { streamUrl = _mTemplate.TemplateDataSet.GetTemplateDataSetItemAsText(KeyTvUrl, string.Empty); var templatePath = _mTemplate.Attributes["TemplatePath"]; var libPath = Path.Combine(templatePath, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"); var libDirectory = new DirectoryInfo(libPath); vlcControl.BeginInit(); vlcControl.VlcLibDirectory = libDirectory; vlcControl.EndInit(); }
private void TemplateDataSet_TemplateDataSetChanged(TemplateDataSetEventArgs e) { _streamUrl = _template.TemplateDataSet.GetTemplateDataSetItemAsText(KeyTvUrl, string.Empty); }
private void TemplateDataSet_TemplateDataSetChanged2(object sender, TemplateDataSetEventArgs e) { this.myLabel.Content = e.TemplateDataSet.GetTemplateDataSetItemAsText("MyText"); }