{"id":21543849,"url":"https://github.com/radj307/xamltimers","last_synced_at":"2026-05-07T13:05:05.402Z","repository":{"id":56723282,"uuid":"523909302","full_name":"radj307/XamlTimers","owner":"radj307","description":"WPF behavior that updates data bindings on a timer, entirely from XAML","archived":false,"fork":false,"pushed_at":"2023-11-10T19:54:22.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T03:08:02.789Z","etag":null,"topics":["bindings","data-binding","databindings","dotnet","dotnet-","dotnet-core","interval","net6","netcore","netcore6","timer","timers","update","wpf","wpf-behaviors","xaml","xaml-timers","xamltimer","xamltimers"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radj307.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-08-12T00:38:03.000Z","updated_at":"2023-10-26T02:09:15.000Z","dependencies_parsed_at":"2023-11-10T20:45:34.396Z","dependency_job_id":null,"html_url":"https://github.com/radj307/XamlTimers","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.25,"last_synced_commit":"3fd02b71b2d822f1b0d448ad4ea7baa0c260a498"},"previous_names":["radj307/updatebindingoninterval"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/radj307/XamlTimers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2FXamlTimers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2FXamlTimers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2FXamlTimers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2FXamlTimers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radj307","download_url":"https://codeload.github.com/radj307/XamlTimers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radj307%2FXamlTimers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000774,"owners_count":26082911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bindings","data-binding","databindings","dotnet","dotnet-","dotnet-core","interval","net6","netcore","netcore6","timer","timers","update","wpf","wpf-behaviors","xaml","xaml-timers","xamltimer","xamltimers"],"created_at":"2024-11-24T05:15:51.319Z","updated_at":"2025-10-09T03:08:34.224Z","avatar_url":"https://github.com/radj307.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XamlTimers\n\nWPF behaviors that update bindings or execute a callback method on a configurable interval.  \nYou can toggle the timers at any time; or even bind the `EnableTimer` property to another control, such as a `CheckBox`.  \n\n# Usage\n\nRequires Microsoft's WPF Behaviors NuGet package:  \n\n - `Microsoft.Xaml.Behaviors.Wpf` *([GitHub](https://github.com/Microsoft/XamlBehaviorsWpf), [NuGet](https://www.nuget.org/packages/Microsoft.Xaml.Behaviors.Wpf))*\n \nTo use the above package in XAML, add this namespace to your Window:  \n`http://schemas.microsoft.com/xaml/behaviors`\n\n## Namespace\n\n### C#\n```csharp\nusing XamlTimers;\n```\n\n### XAML\n```xaml\nxmlns:behavior=\"clr-namespace:XamlTimers;assembly=XamlTimers\"\n```\n\n## Behaviors\n\n*Properties that don't have default values are **required**!*\n\n### `IntervalUpdateBinding`\n\n#### Properties\n\n| Property        | Type | Default Value | Description |\n|-----------------|------|---------|-------------|\n| `EnableTimer`   | `bool` | `true`  | When `true`, the timer is enabled \u0026 the specified binding is updated every time the `Interval` has elapsed;\u003cbr/\u003eWhen `false`, the timer is disabled \u0026 no updates occur. |\n| `Interval`      | `double` |         | The timer interval, in milliseconds. |\n| `Property`      | `DependencyProperty` |         | Specifies the target property of the attached object to update the databinding on.\u003cbr/\u003eThis should be specified in the form `\"{x:Static \u003cCONTROL\u003e.\u003cPROPERTYNAME\u003eProperty}\"`, where the `\u003cCONTROL\u003e` is the control that *defines* the property, **not the control that inherits it**.\u003cbr/\u003e *(i.e. `Slider.Value` =\u003e `RangeBase.ValueProperty`)* |\n| `ThrowWhenPropertyIsNull` | `bool` | `true` | When `true`, an `ArgumentNullException` is thrown by the update method when `Property` is `null`; when `false`, no exception is thrown and the binding update silently fails. |\n| `ThrowWhenPropertyIsMissing` | `bool` | `true` | When `true`, an `ArgumentNullException` is thrown by the update method when `Property` doesn't exist on the attached object; when `false`, no exception is thrown and the binding update silently fails. |\n\n### `IntervalCallback`\n\n#### Properties\n\n| Property        | Default | Description |\n|-----------------|---------|-------------|\n| `EnableTimer`   | `true`  | When `true`, the timer is enabled \u0026 `TimerCallback` is called every time the `Interval` has elapsed;\u003cbr/\u003eWhen `false`, the timer is disabled \u0026 `TimerCallback` is not called. |\n| `Interval`      |         | The timer interval, in milliseconds. *(type `double`)* |\n| `TimerCallback` |         | A callback delegate of type `System.Timers.ElapsedEventHandler` that will be invoked every time the timer is triggered. |\n\n### `BaseIntervalBehavior`\n\nIf you want to create your own timer class, you can inherit from the abstract base class with your own implementation.  \nSee the [source code](BaseIntervalBehavior.cs) for implementation details \u0026 examples.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradj307%2Fxamltimers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradj307%2Fxamltimers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradj307%2Fxamltimers/lists"}