c# Programming Glossary: observable
ObservableCollection Databinding performance http://stackoverflow.com/questions/1007691/observablecollection-databinding-performance I would like to know why according to this article and observable collection binds significantly faster 20 ms vs 1685ms that's.. T So what's going on here c# wpf data binding collections observablecollection share improve this question The comparison in..
How to autoscroll on WPF datagrid http://stackoverflow.com/questions/1027051/how-to-autoscroll-on-wpf-datagrid and the WPF Toolkit DataGrid. My grid gets updated when my observable collection changes works perfectly. Now my DataGrid is located..
How to expose IObservable<T> properties without using Subject<T> backing field http://stackoverflow.com/questions/12053709/how-to-expose-iobservablet-properties-without-using-subjectt-backing-field subscriptions each observer has its own session the cold observable model so an exception from an observer is nothing more than..
Method vs Property in C# - what's the difference [duplicate] http://stackoverflow.com/questions/1294152/method-vs-property-in-c-sharp-whats-the-difference be settable in any order The getter does not have an observable side effect Note this guideline doesn't preclude some forms..
When to use properties instead of functions http://stackoverflow.com/questions/1374273/when-to-use-properties-instead-of-functions a property value using the get accessor would have an observable side effect. Calling the member twice in succession produces..
Write an Rx “RetryAfter” extension method http://stackoverflow.com/questions/18978523/write-an-rx-retryafter-extension-method key to this implementation of a back off retry is deferred observables . A deferred observable won't execute its factory until someone.. of a back off retry is deferred observables . A deferred observable won't execute its factory until someone subscribes to it. And.. we shouldn't retry past the .Retry . We've made the inner observable be an IObservable Tuple bool WebResponse Exception where the..
How do I sort an observable collection? http://stackoverflow.com/questions/1945461/how-do-i-sort-an-observable-collection do I sort an observable collection I have a following class DataContract public class.. new Pair 6 fty Q How do I sort it by key c# .net sorting observablecollection share improve this question You can use linq as..
Is object creation in getters bad practice? http://stackoverflow.com/questions/2101646/is-object-creation-in-getters-bad-practice values if a property setter throws an exception Avoid observable side effects. Allow properties to be set in any order even if..
ObservableCollection that also monitors changes on the elements in collection http://stackoverflow.com/questions/269073/observablecollection-that-also-monitors-changes-on-the-elements-in-collection also monitoring the elements for changes. I could wrap an observable collection my self and do the event subscribe unsubscribe when..
Update a ObservableCollection with a background worker in mvvm http://stackoverflow.com/questions/3628477/update-a-observablecollection-with-a-background-worker-in-mvvm seperate background worker thread. c# wpf multithreading observablecollection share improve this question Where you've got code.. Where you've got code which adds the item to the observable collection presumably in the view model wrap that Add call in..
ObservableCollection tutorial? [closed] http://stackoverflow.com/questions/4450582/observablecollection-tutorial esentially when an object is added to or removed from an observable collection the UI is automatically updated. This happens because.. updated. This happens because when binding to an observable collection WPF automatically adds an event handler to the ObservableCollecion..
Rx IObservable buffering to smooth out bursts of events http://stackoverflow.com/questions/4505529/rx-iobservable-buffering-to-smooth-out-bursts-of-events out how to then combine that timer with my raw unbuffered observable sequence. IObservable.Zip is close to doing what I want but.. like a fairly standard one. c# buffering system.reactive iobservable share improve this question This is actually a duplicate..
Implementing CollectionChanged http://stackoverflow.com/questions/4588359/implementing-collectionchanged to get notification about editing objects in a observable list. public ObservableCollection Item Names get set public..
How do I get the _real_ thread id in a CLR “friendly” way? http://stackoverflow.com/questions/5624128/how-do-i-get-the-real-thread-id-in-a-clr-friendly-way a thread's lifetime. In many applications this is not an observable phenomenon. In a UI application this won't actually happen because..
Sorting ObservableCollection http://stackoverflow.com/questions/5803786/sorting-observablecollection MobileNumber etc ¦].. and it is required to get back sorted observable collection Means it should not be in form of œvar it should be.. of œItemsControl code p Thanks ¦â€ p c# .net wpf sorting observablecollection share improve this question You can sort the view..
Is there a reason for C#'s reuse of the variable in a foreach? http://stackoverflow.com/questions/8898925/is-there-a-reason-for-cs-reuse-of-the-variable-in-a-foreach variable was inside or outside the loop body as it made no observable difference. When closure semantics were introduced in C# 2.0..
Observable Collection Property Changed on Item in the Collection http://stackoverflow.com/questions/1015126/observable-collection-property-changed-on-item-in-the-collection Collection Property Changed on Item in the Collection I have.. Property Changed on Item in the Collection I have an ObservableCollection T . I've bound it to a ListBox control and I've added..
General Observable Dictionary Class for DataBinding/WPF C# http://stackoverflow.com/questions/1098663/general-observable-dictionary-class-for-databinding-wpf-c-sharp Observable Dictionary Class for DataBinding WPF C# I'm trying to create.. Class for DataBinding WPF C# I'm trying to create a Observable Dictionary Class for WPF DataBinding in C#. I found a nice example.. to that I tried to change the code to following class ObservableDictionary ViewModelBase public ObservableDictionary Dictionary..
C# - how do I refresh DataGridView after removing rows http://stackoverflow.com/questions/1560559/c-sharp-how-do-i-refresh-datagridview-after-removing-rows this question If you have bound your datagrid to an Observable Collection if not then you should then you will need to implement..
Long List Selector Observable Collection and Visual Tree - problems? http://stackoverflow.com/questions/19356668/long-list-selector-observable-collection-and-visual-tree-problems List Selector Observable Collection and Visual Tree problems I've made a short example.. some problems. They concers LongsListSelector bound to ObservableCollection no matter what type items are . I've set long list.. public partial class MainPage PhoneApplicationPage private ObservableCollection string collection new ObservableCollection string..
Observable Stack and Queue http://stackoverflow.com/questions/3127136/observable-stack-and-queue Stack and Queue I'm looking for an INotifyCollectionChanged.. you could write your own I would do it by deriving from ObservableCollection then in the case of a stack implementing the Push.. and RemoveAt operations would be called on the underlying ObservableCollection and so cause the CollectionChanged event to be fired...
How to throttle event stream using RX? http://stackoverflow.com/questions/3211134/how-to-throttle-event-stream-using-rx string args Console.WriteLine Running... var generator Observable .GenerateWithTime 1 x x 100 x x x TimeSpan.FromMilliseconds.. the above idea can be implemented as such public static IObservable T SampleResponsive T this IObservable T source TimeSpan delay.. such public static IObservable T SampleResponsive T this IObservable T source TimeSpan delay return source.Publish src var fire..
Update a ObservableCollection with a background worker in mvvm http://stackoverflow.com/questions/3628477/update-a-observablecollection-with-a-background-worker-in-mvvm a ObservableCollection with a background worker in mvvm Ok I recently implemented.. tackle this So currently I have a class that Inherits from Observable collection public class ThreadSafeObservableCollection ObservableCollection.. Inherits from Observable collection public class ThreadSafeObservableCollection ObservableCollection public ThreadSafeObservableCollection..
DataGrid Cell.Style binding http://stackoverflow.com/questions/4254266/datagrid-cell-style-binding .net 4.0 first some details I have a datagrid with an Observable collection as ItemsSource. this observableCollection itself.. 780 Top 60 Left 200 DataGrid dg new DataGrid Content dg ObservableCollection Row Source new ObservableCollection Row dg.ItemsSource.. DataGrid Content dg ObservableCollection Row Source new ObservableCollection Row dg.ItemsSource Source dg.SelectionMode DataGridSelectionMode.Extended..
Rx IObservable buffering to smooth out bursts of events http://stackoverflow.com/questions/4505529/rx-iobservable-buffering-to-smooth-out-bursts-of-events IObservable buffering to smooth out bursts of events I have an Observable.. buffering to smooth out bursts of events I have an Observable sequence that produces events in rapid bursts ie five events.. current approach is to generate a metronome like timer via Observable.Interval that signals when it's ok to pull another event from..
ObservableCollection Doesn't support AddRange method, so I get notified for each item added, besides what about INotifyCollectionChanging? http://stackoverflow.com/questions/670577/observablecollection-doesnt-support-addrange-method-so-i-get-notified-for-each Doesn't support AddRange method so I get notified.. ''' summary ''' typeparam name T typeparam Public Class ObservableRangeCollection Of T Inherits System.Collections.ObjectModel.ObservableCollection.. Of T Inherits System.Collections.ObjectModel.ObservableCollection Of T ''' summary ''' Adds the elements of the specified..
|