home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morpheus_xx" data-source="post: 853468" data-attributes="member: 48495"><p>I've checked your plugin. The text is not updated after button click, because you are missing a Property.</p><p> </p><p>If you add</p><p>[CODE] public AbstractProperty FunctionButtonLabelProperty</p><p> {</p><p> get { return _functionButtonProperty; }</p><p> }[/CODE]</p><p>to code it works.</p><p> </p><p>Background is the databinding: <strong>FunctionButtonLabel</strong> exposes the string, the skin engine's databinding always tries to attach to FunctionButtonLabel<strong>Property</strong>, so that it is able to react on property change events<strong>.</strong></p><p> </p><p>If you want to make debugging easier, add this commands to the project "post build actions":</p><p>[CODE]xcopy /Y "$(ProjectDir)plugin.xml" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\"</p><p>mkdir "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Language"</p><p>robocopy "$(ProjectDir)Language" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Language" /MIR /NP</p><p>mkdir "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Skin"</p><p>robocopy "$(ProjectDir)Skin" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Skin" /MIR /NP</p><p>xcopy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\"</p><p>[/CODE], add the project to the MP2-Client solution.This way the required plugin files are copied to MP2-Client plugins on build.</p><p> </p><p>Then you can debug directly inside VS2010.</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 853468, member: 48495"] I've checked your plugin. The text is not updated after button click, because you are missing a Property. If you add [CODE] public AbstractProperty FunctionButtonLabelProperty { get { return _functionButtonProperty; } }[/CODE] to code it works. Background is the databinding: [B]FunctionButtonLabel[/B] exposes the string, the skin engine's databinding always tries to attach to FunctionButtonLabel[B]Property[/B], so that it is able to react on property change events[B].[/B] If you want to make debugging easier, add this commands to the project "post build actions": [CODE]xcopy /Y "$(ProjectDir)plugin.xml" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\" mkdir "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Language" robocopy "$(ProjectDir)Language" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Language" /MIR /NP mkdir "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Skin" robocopy "$(ProjectDir)Skin" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\Skin" /MIR /NP xcopy /Y "$(TargetDir)$(ProjectName).dll" "$(SolutionDir)..\Bin\$(SolutionName)\$(OutDir)Plugins\$(ProjectName)\" [/CODE], add the project to the MP2-Client solution.This way the required plugin files are copied to MP2-Client plugins on build. Then you can debug directly inside VS2010. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Questions on writing my first plugin
Contact us
RSS
Top
Bottom