mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2024-12-22 09:12:42 -06:00
23 lines
No EOL
9.2 KiB
HTML
23 lines
No EOL
9.2 KiB
HTML
<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-1.11.0.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-5717-c691ef57e6ea.htm" title="OnPropertyChanged Method " tocid="eedea241-4ddb-bac9-5717-c691ef57e6ea">OnPropertyChanged Method </a></div></div><div id="tocResizableEW" onmousedown="OnMouseDown(event);"></div><div id="TocResize" class="tocResize"><img id="ResizeImageIncrease" src="../icons/TocOpen.gif" onclick="OnIncreaseToc()" alt="Click or drag to resize" title="Click or drag to resize" /><img id="ResizeImageReset" src="../icons/TocClose.gif" style="display:none" onclick="OnResetToc()" alt="Click or drag to resize" title="Click or drag to resize" /></div></div><div class="topicContent" id="TopicContent"><table class="titleTable"><tr><td class="titleColumn"><h1>PropertyChangedAlerter<span id="LSTFABA9A3D_0"></span><script type="text/javascript">AddLanguageSpecificTextSet("LSTFABA9A3D_0?cpp=::|nu=.");</script>OnPropertyChanged Method </h1></td></tr></table><span class="introStyle"></span> <div class="summary">
|
||
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>
|
||
butterflow-ui (in butterflow-ui.exe) Version: 1.0.2.31734 (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">CallerMemberNameAttribute</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="http://msdn2.microsoft.com/en-us/library/s1wwdcbf" target="_blank">System<span id="LSTFABA9A3D_1"></span><script type="text/javascript">AddLanguageSpecificTextSet("LSTFABA9A3D_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">
|
||
This will automatically pass in "SomeProperty" as the property name, derived useing the
|
||
<a href="http://msdn2.microsoft.com/en-us/library/hh551816" target="_blank">CallerMemberNameAttribute</a> attribute.
|
||
<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();
|
||
}
|
||
}</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></body></html> |