index > Windows Presentation Foundation ("Avalon") > how to access resource directory from c# code?

how to access resource directory from c# code?

hi,

i have a resource directory with some MeshGeometry3D objects and i want to access them from c# code, how it can be done?

Thanks,

omri

omrivm

you can use loadcomponent,there are many threads that talk about it, here is one

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=638857&SiteID=1

lee d
Brush b = (Brush) this, FindResouse("resourceKey");


Thank You
Mike Greenway
reply 3

You can use google to search for other answers

 

More Articles

• DataTemplate vs. ControlTemplate
• dev setup for Vista RC2?
• How do I catch a PropertyChange event in XAML and take an action?
• Tearing in WPF
• DesiredSize of Control is not set, even if width/height is explic...
• How to apply Sorting in a List view control???
• How to generate XSD from custom XAML serialization
• HitTest Custom Control
• HorizontalAlignment on DataTemplate in GridView (bug?)
• WPF Novice Programmers Catch 22.
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Where can i get information about Attrib
• XamlWriter, MarkupObject How to ?
• converting frameworkElement to Xaml, mod
• How can I control the internal WebBrowse
• ToolBar - OverflowGrid style?
• How to prevent duplicate items in Listvi
• What's the recommended way to save an bi
• Unbound validation
• I am not able to install Orcas Technolog
• my experiences using WPF in a live envir
• WPF TextBox disable or handle paste
• Binding to a non string - possible?
• Help me design my .Net 3.0 application?
• Code formatting on Forum
• Data Binding question - Converter not be

Hot Articles

• Working with events that are coming from
• Fontsize relative to the window size
• BAML stream has version number '0.96' bu
• Customizing WPF DataTemplates....
• LocBaml doesn't work when ResourceDictio
• Costumzing/using Costum control in a res
• New XBAP launch screen
• Please help with package signing
• XBAP application not picking relative path
• Polygon.Points Binding TwoWay
• Minimum threshold for the Thumb
• Property trigger ExitActions
• GridViewColumn + 1
• I want trap attached property change not
• Navigation between pages

Recommend Articles

• Databinding controls
• I'm starting a WPF/WCF/WF game...
• TextRange
• Data Binding and Threading
• Issue with LostFocus UpdateSourceTrigger
• Possible Bug.... WPF throws excpetion wh
• strange behaviour frame in window
• I don't like xaml :-)
• Custom RoutedEvents
• FindResource Problem
• Animating a ListBox Scrolling Text
• Window Management
• Custom Window
• How to create an instance of ObservableC
• How to get reference of treeviewitem?