Can someone please point me to a working example of how I'm supposed to do data binding in Silverlight for Windows Embedded (SWE). I have seen a showcase of it, so it appears to be possible. And I've read here that I need to implement IXRPropertyBag to make it work, but have yet to find (working) instructions on how to do it.
Data binding in Silverlight for Windows Embedded (SWE)
1.8k Views Asked by Kristoffer At
2
There are 2 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in DATA-BINDING
- Understanding Polymer data-binding and HTML tags
- WPF MessageBox Cancel checkbox check
- Binding to "this.property" object in VisualStateMenager
- Update ObservableCollection where the items are received from another List
- ObservableInt causes crash on DataBinding Library
- Polymer 1.0 Data Binding in <styles>
- Bind constraints in Input control of SAPUI5
- Access into a Binary Search Tree via a bound function in a function template
- Serve arbitrary html in angular data bind
- submit dropdown angularjs spring MVC
- Periodically update Polymer Binding
- MVC WPF DataContext for two UserControls
- Binding ComboBox to ViewModel in WinForms
- JavaFX binding: does BeanPathAdapter work?
- Resetting form controls after action in Angular
Related Questions in SILVERLIGHT-3.0
- Generate the infobulle with Silverlight
- Call Javascript function from Windows Phone 7/Silverlight
- Pass Type as a parameter to a function
- Data binding in Silverlight for Windows Embedded (SWE)
- Silverlight and VS2008 installation issue
- Silverlight 3 to 4 Risk Analysis
- Resource to learn good UI techniques, more intuitive and artistic and user friendly
- Facebook c# application: Facebook can not access my silverlight application on localhost
- Silverlight - How to incorporate usercontrol and master page
- Bind ObservableCollection to a DataGrid after assigning new value
- How to call a different state on second button click?
- Binding to Grid.columndefinition with MVVM
- Stop image caching in wP7
- Animating LinearGradientBrush Color in Code-Behind
- Allignment of controls in Datatemplate of listbox in silverlight
Related Questions in WINDOWS-CE
- Cannot find file path
- Communication between WinCE device and Windows PC over USB
- "Missing compiler required member" in Windows CE project
- MissingMethodException was unhandled. Could not load type 'Newtonsoft.json'
- Padarn OpennetCF Socket Connection is Closed
- WEC 7.0 platform builder OS design build errors
- How to set a specific timezone for windows CE By C#
- How to wake-up/resume after calling SetSystemPowerState in WINCE 7
- Importing root certificate on Windows CE and Windows Mobile devices via command line
- Bulk copy from SQL Server CE to SQL Server
- Get DST/STD dates and times for a given timezone (Javascript)
- (C#) How to Change InputLanguage in .NET CF?
- How to pass parameter at the time of WinCE app installation/deployment
- Not Run wince Lazarus TI Cortex-A9
- Form Navigation in Win CE 5 Application
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I managed to get data binding working between the
IsCheckedproperty of twoToggleButtonelements, based on the insanely bad example found in the help files that came with the WCE7 CTP. I would have expected to set the data context and data bindings in XAML, but the documentation told me to code it.First you have to create a class that implements
IXRPropertyBag. Then you have to set the data context and data binding to an instance of this property bag from code.I'm sorry for the lack of a naming convention in the code, but it is still far better than the example that was provided by Microsoft. It is also not as generic as it could be, but I'll leave that refactoring up to you.
MyPropertyBag.h:
MyPropertyBag.cpp:
Create the shared property bag and call BindDataToControl for both toggle buttons before calling StartDialog on the visual host:
This is what BindDataToControl would look like, to set the DataContext and the binding: