2021-03-25 00:02:54 -05:00
< html > < head > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" / > < link rel = "shortcut icon" href = "../icons/favicon.ico" / > < link rel = "stylesheet" type = "text/css" href = "../styles/branding.css" / > < link rel = "stylesheet" type = "text/css" href = "../styles/branding-en-US.css" / > < script type = "text/javascript" src = "../scripts/branding.js" > < / script > < meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" / > < title > PropertyChangedAlerter.OnPropertyChanged Method < / title > < meta name = "Language" content = "en-us" / > < meta name = "System.Keywords" content = "OnPropertyChanged method" / > < meta name = "System.Keywords" content = "PropertyChangedAlerter.OnPropertyChanged method" / > < meta name = "Microsoft.Help.F1" content = "butterflow_ui.PropertyChangedAlerter.OnPropertyChanged" / > < meta name = "Microsoft.Help.Id" content = "M:butterflow_ui.PropertyChangedAlerter.OnPropertyChanged(System.String)" / > < meta name = "Description" content = "Executes the property changed action. This alerts subscribers to its change in value." / > < meta name = "Microsoft.Help.ContentType" content = "Reference" / > < meta name = "BrandingAware" content = "true" / > < meta name = "container" content = "butterflow_ui" / > < meta name = "file" content = "eedea241-4ddb-bac9-5717-c691ef57e6ea" / > < meta name = "guid" content = "eedea241-4ddb-bac9-5717-c691ef57e6ea" / > < link type = "text/css" rel = "stylesheet" href = "../styles/highlight.css" / > < script type = "text/javascript" src = "../scripts/highlight.js" > < / script > < link rel = "stylesheet" type = "text/css" href = "../styles/branding-Website.css" / > < script type = "text/javascript" src = "../scripts/jquery-3.3.1.min.js" > < / script > < script type = "text/javascript" src = "../scripts/branding-Website.js" > < / script > < script type = "text/javascript" src = "../scripts/clipboard.min.js" > < / script > < / head > < body onload = "OnLoad('cs')" > < input type = "hidden" id = "userDataCache" class = "userDataStyle" / > < div class = "pageHeader" id = "PageHeader" > A Sandcastle Documented Class Library< form id = "SearchForm" method = "get" action = "#" onsubmit = "javascript:TransferToSearchPage(); return false;" > < input id = "SearchTextBox" type = "text" maxlength = "200" / > < button id = "SearchButton" type = "submit" > < / button > < / form > < / div > < div class = "pageBody" > < div class = "leftNav" id = "leftNav" > < div id = "tocNav" > < div class = "toclevel0" data-toclevel = "0" > < a class = "tocCollapsed" onclick = "javascript: Toggle(this);" href = "#!" / > < a data-tochassubtree = "true" href = "../html/e151fc72-f3cc-1740-7ea1-73c21ce1fa93.htm" title = "A Sandcastle Documented Class Library" tocid = "roottoc" > A Sandcastle Documented Class Library< / a > < / div > < div class = "toclevel0" data-toclevel = "0" > < a class = "tocCollapsed" onclick = "javascript: Toggle(this);" href = "#!" / > < a data-tochassubtree = "true" href = "../html/e151fc72-f3cc-1740-7ea1-73c21ce1fa93.htm" title = "butterflow_ui" tocid = "e151fc72-f3cc-1740-7ea1-73c21ce1fa93" > butterflow_ui< / a > < / div > < div class = "toclevel0" data-toclevel = "0" > < a class = "tocCollapsed" onclick = "javascript: Toggle(this);" href = "#!" / > < a data-tochassubtree = "true" href = "../html/229e6869-f14d-a176-5ac6-d0d28dc43a71.htm" title = "PropertyChangedAlerter Class" tocid = "229e6869-f14d-a176-5ac6-d0d28dc43a71" > PropertyChangedAlerter Class< / a > < / div > < div class = "toclevel1" data-toclevel = "1" data-childrenloaded = "true" > < a class = "tocExpanded" onclick = "javascript: Toggle(this);" href = "#!" / > < a data-tochassubtree = "true" href = "../html/1a0b274b-3529-1902-9922-af6e09ecea11.htm" title = "PropertyChangedAlerter Methods" tocid = "1a0b274b-3529-1902-9922-af6e09ecea11" > PropertyChangedAlerter Methods< / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "../html/94283020-fd41-a0ab-0e86-5d285dc72cff.htm" title = "AddConstantCallProperty Method " tocid = "94283020-fd41-a0ab-0e86-5d285dc72cff" > AddConstantCallProperty Method < / a > < / div > < div class = "toclevel2" data-toclevel = "2" > < a data-tochassubtree = "false" href = "../html/f4ce3949-e7fd-ce94-51cc-3c3698c097b5.htm" title = "OnAllPropertiesChanged Method " tocid = "f4ce3949-e7fd-ce94-51cc-3c3698c097b5" > OnAllPropertiesChanged Method < / a > < / div > < div class = "toclevel2 current" data-toclevel = "2" > < a data-tochassubtree = "false" href = "../html/eedea241-4ddb-bac9
2018-07-09 14:50:36 -05:00
Executes the property changed action. This alerts subscribers to its change in value.
< / div > < p > < / p >
< strong > Namespace:< / strong >
< a href = "e151fc72-f3cc-1740-7ea1-73c21ce1fa93.htm" > butterflow_ui< / a > < br / >
< strong > Assembly:< / strong >
2021-03-25 00:02:54 -05:00
butterflow-ui (in butterflow-ui.exe) Version: 1.1.0.42906 (1.0.0.0)< div class = "collapsibleAreaRegion" > < span class = "collapsibleRegionTitle" onclick = "SectionExpandCollapse('ID1RB')" onkeypress = "SectionExpandCollapse_CheckKey('ID1RB', event)" tabindex = "0" > < img id = "ID1RBToggle" class = "collapseToggle" src = "../icons/SectionExpanded.png" / > Syntax< / span > < / div > < div id = "ID1RBSection" class = "collapsibleSection" > < div class = "codeSnippetContainer" > < div class = "codeSnippetContainerTabs" > < div id = "ID0EACA_tab1" class = "codeSnippetContainerTabSingle" > C#< / div > < / div > < div class = "codeSnippetContainerCodeContainer" > < div class = "codeSnippetToolBar" > < div class = "codeSnippetToolBarText" > < a id = "ID0EACA_copyCode" href = "#" class = "copyCodeSnippet" onclick = "javascript:CopyToClipboard('ID0EACA');return false;" title = "Copy" > Copy< / a > < / div > < / div > < div id = "ID0EACA_code_Div1" class = "codeSnippetContainerCode" style = "display: block" > < pre xml:space = "preserve" > < span class = "keyword" > protected< / span > < span class = "keyword" > virtual< / span > < span class = "keyword" > void< / span > < span class = "identifier" > OnPropertyChanged< / span > (
< span class = "identifier" > string< / span > < span class = "parameter" > name< / span > = < span class = "keyword" > null< / span >
)< / pre > < / div > < / div > < / div > < script type = "text/javascript" > AddLanguageTabSet ( "ID0EACA" ) ; < / script > < h4 class = "subHeading" > Parameters< / h4 > < dl > < dt > < span class = "parameter" > name< / span > (Optional)< / dt > < dd > Type: < a href = "https://docs.microsoft.com/dotnet/api/system.string" target = "_blank" > System< span id = "LST7F6F65EF_1" > < / span > < script type = "text/javascript" > AddLanguageSpecificTextSet ( "LST7F6F65EF_1?cs=.|vb=.|cpp=::|nu=.|fs=." ) ; < / script > String< / a > < br / > (Optional) The name of the property. < / dd > < / dl > < / div > < div class = "collapsibleAreaRegion" > < span class = "collapsibleRegionTitle" onclick = "SectionExpandCollapse('ID2RB')" onkeypress = "SectionExpandCollapse_CheckKey('ID2RB', event)" tabindex = "0" > < img id = "ID2RBToggle" class = "collapseToggle" src = "../icons/SectionExpanded.png" / > Examples< / span > < / div > < div id = "ID2RBSection" class = "collapsibleSection" >
2018-07-09 14:50:36 -05:00
This will automatically pass in "SomeProperty" as the property name, derived useing the
2021-03-25 00:02:54 -05:00
< a href = "https://docs.microsoft.com/dotnet/api/system.runtime.compilerservices.callermembernameattribute" target = "_blank" > CallerMemberNameAttribute< / a > attribute.
2018-07-09 14:50:36 -05:00
< div class = "codeSnippetContainer" > < div class = "codeSnippetContainerTabs" > < div id = "ID0EAAABA_tab1" class = "codeSnippetContainerTabSingle" > Automatic Property Detection< / div > < / div > < div class = "codeSnippetContainerCodeContainer" > < div class = "codeSnippetToolBar" > < div class = "codeSnippetToolBarText" > < a id = "ID0EAAABA_copyCode" href = "#" class = "copyCodeSnippet" onclick = "javascript:CopyToClipboard('ID0EAAABA');return false;" title = "Copy" > Copy< / a > < / div > < / div > < div id = "ID0EAAABA_code_Div1" class = "codeSnippetContainerCode" style = "display: block" > < pre xml:space = "preserve" > < span class = "highlight-keyword" > public< / span > < span class = "highlight-keyword" > bool< / span > SomeProperty
{
< span class = "highlight-keyword" > get< / span >
{
< span class = "highlight-keyword" > return< / span > < span class = "highlight-keyword" > this< / span > .someProperty;
}
< span class = "highlight-keyword" > set< / span >
{
< span class = "highlight-keyword" > this< / span > .someProperty = < span class = "highlight-keyword" > value< / span > ;
OnPropertyChanged();
}
2021-03-25 03:21:03 -05:00
}< / pre > < / div > < / div > < / div > < script type = "text/javascript" > AddLanguageTabSet ( "ID0EAAABA" ) ; < / script > < / div > < div class = "collapsibleAreaRegion" id = "seeAlsoSection" > < span class = "collapsibleRegionTitle" onclick = "SectionExpandCollapse('ID3RB')" onkeypress = "SectionExpandCollapse_CheckKey('ID3RB', event)" tabindex = "0" > < img id = "ID3RBToggle" class = "collapseToggle" src = "../icons/SectionExpanded.png" / > See Also< / span > < / div > < div id = "ID3RBSection" class = "collapsibleSection" > < h4 class = "subHeading" > Reference< / h4 > < div class = "seeAlsoStyle" > < a href = "229e6869-f14d-a176-5ac6-d0d28dc43a71.htm" > PropertyChangedAlerter Class< / a > < / div > < div class = "seeAlsoStyle" > < a href = "e151fc72-f3cc-1740-7ea1-73c21ce1fa93.htm" > butterflow_ui Namespace< / a > < / div > < / div > < / div > < / div > < div id = "pageFooter" class = "pageFooter" > < / div > <!-- Matomo -->
< script type = "text/javascript" >
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//t.thebreadsticks.com/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '7']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
< / script >
<!-- End Matomo Code --> < / body > < / html >