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
Xaml question
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="doskabouter" data-source="post: 1131394" data-attributes="member: 98267"><p>Hi all, </p><p></p><p>I've been investigating this for quite a while now, but I'm not having any success here.</p><p>What I want to achieve is that I have a screen with a textbox on it, and an "Ok" and "Cancel" button.</p><p>When the screen shows, it should display a dynamically generated text, and when I click "Ok" it should execute a method of my class with the entered text in a parameter.</p><p></p><p>As a test, I added</p><p>[CODE]</p><p>private string te="testing";</p><p></p><p> public string TestEdit</p><p> {</p><p> get { return te; }</p><p> set { te = value; }</p><p> }</p><p>[/CODE]</p><p>to the GuiTestModel.cs, and added </p><p>[CODE]</p><p>Text="{Binding Path=TestEdit, Mode=TwoWay}"</p><p>[/CODE] as an attribute to one of the textboxes in test-virtualkeyboardcontrol.xaml in the GUITestPlugin's skin-folder</p><p>Also tried </p><p>[CODE]</p><p>Text="{Binding Path=GUITestModel.TestEdit, Mode=TwoWay}"</p><p>[/CODE] but none of those attempts shows "testing" in a textbox when I enter the "VirtualKeyboard test" screen.</p><p></p><p>In the PartyMusicPlayer it does seem to work for the EscapePassword property, but I can't figure out what the missing piece in my guitestplugin is.</p><p></p><p>This is only one aspect of my dialog, the other one is the okbutton triggering a method call with correct parameter, but perhaps if I understand what the issue is with my first test, I can manage to get the okbutton working. And if not, you'll be the first to know <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="doskabouter, post: 1131394, member: 98267"] Hi all, I've been investigating this for quite a while now, but I'm not having any success here. What I want to achieve is that I have a screen with a textbox on it, and an "Ok" and "Cancel" button. When the screen shows, it should display a dynamically generated text, and when I click "Ok" it should execute a method of my class with the entered text in a parameter. As a test, I added [CODE] private string te="testing"; public string TestEdit { get { return te; } set { te = value; } } [/CODE] to the GuiTestModel.cs, and added [CODE] Text="{Binding Path=TestEdit, Mode=TwoWay}" [/CODE] as an attribute to one of the textboxes in test-virtualkeyboardcontrol.xaml in the GUITestPlugin's skin-folder Also tried [CODE] Text="{Binding Path=GUITestModel.TestEdit, Mode=TwoWay}" [/CODE] but none of those attempts shows "testing" in a textbox when I enter the "VirtualKeyboard test" screen. In the PartyMusicPlayer it does seem to work for the EscapePassword property, but I can't figure out what the missing piece in my guitestplugin is. This is only one aspect of my dialog, the other one is the okbutton triggering a method call with correct parameter, but perhaps if I understand what the issue is with my first test, I can manage to get the okbutton working. And if not, you'll be the first to know :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Xaml question
Contact us
RSS
Top
Bottom