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++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in DATA-BINDING
- Binding forecolour and ToolTip to a DataGrid
- Assigning an object to another doesn't raise PropertyChanged event in WPF
- Binding data with unknown columns to a DataGrid in WinUI 3
- How to Display UserControl as SplitView Content? - Avalonia C#
- How to bind to the DataContext ViewModel of another view?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- The radgridview row data count in WPF
- Problem with the use of converters in WPF
- I'm having trouble binding one control to another. Why?
- Binding Multiple Classes to a WPF Treeview
- WinForms data binding without properties
- Error XFC0045 - How to bind a CarouselView to ObservableCollection in Maui?
- I cannot navigate to a second page more than once
- How to access fields of ObservableCollection<Object> in xaml file
- Synchronize a bindable property with a command
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: