I am newbie to Window mobile 8 development . I have page with 5 user controls and in one of the user control i want to set text of textbox which is present in some other user control, how can i do this . Is there a way where i can get list of the ui elements visible to user ?
I am using visualTreeHelper to get list of all the elements present on screen ,irrespective of which user control they are present in .
Panel theParent = VisualTreeHelper.GetParent(this) as Panel;
theParent.FindName("Name of the element")
Hope you are using MVVM pattern .If yes , add a view model property for the text and bind this to the textbox .
Update this property whenever you want to change the value of the text box.
Use a visibility converter if you want to change the visibility also.
Related
Currently, i have a few number of fields that shows up and hides on a button click.
I want to transfer some of those fields to a pop-Up (preferably using angular material) . Can you help me with some links?
Also this is in Angular !
Set id on parent tag and on button click hide show functionality.
Otherwise use [Toggle]: https://www.w3schools.com/jquery/event_toggle.asp functunality.
User would be initially shown a screen with a card placeholder. There would be a plus button on the card.
On clicking the plus button, the user would be prompted to select an image.
Once the user selects an image, it would be shown in place of the card and a new placeholder card would be generated with a plus icon.
Each image card would have a close button which on click should remove that particular image from the list.
please help me how to approach this above problem
here you can find very basic and simple implementation: ngRepeat error when removing child directive from parent directive. And here is my modifies version: http://codepen.io/anon/pen/mrZOre?editors=1010
I have two tabs in my tabbed control and want to hide the tabs / tab names at the top of it as I want users to access the each tab using dedicated sidebar buttons (which I have created and which work).
Is it possible to hide the tabs at the top of the form?
The default Format > Style = "Tabs". If you set this to "None" the tabs row will not appear.
Alternatively, have oyu considered using a Navigation form?
You can set the TabFixedHeight property to something very small, like 0.001 cm.
This works for me in Access 2010 with UseTheme = True.
I have a stackpanel a TextBlock. When i tap on it,I want to display a couple of text boxes right below TextBlock and within the stack panel. And when I tap on TextBlock again the textboxes should not be visible. How can I accompalish this by just using XAML?
By just using XAML and nothing else, you can't. You have to have either a code behind or a view model bound to the page.
Add all textboxes to the StackPanel and set their Visibility to Collapsed. Also give each one a name using the x:Name property. As for your TextBlock, set IsHitTestVisible to true and add Tap handler. In the tap handler change the visibility of the previously added and named TextBoxes.
In case you want to use MVVM, bind visibility to some bool value and add converter from bool to visibility. Also add an event to command trigger to the text block element and handle it in your view model - there you will toggle the same bool property that all those text boxes are bound to.
I have created a custom TitleWindow whcih i use as a popup. The contents of the popup are created dynamically depending on a selection a user makes from a datagrid.
My problem is, my datagrid is in another custom component whcih is toward the bottom of my page so when a user clicks one of the items the popup is displayed however with half of it out of sight at the bottom of the page.
Is there a way to position a popup so that it displays at the top of the page?
I know at least two things you can use to position a popup, though there might be more.
When you place a popup you can choose in which parent component to place the popup:
PopUpManager.createPopUp(this.parent, TitleWindowComponent);
In the component itself:
PopUpManager.centerPopUp(this);
I wanted a help tooltip type popup (with help text) to appear next to the icon that opened it. In the end I used move(x,y) to move the window where I wanted it. To get the coordinates to place it, use globalToLocal:
var globalX:Number = localToGlobal(new Point(myIcon.x, myIcon.y)).x;
var globalY:Number = localToGlobal(new Point(myIcon.x, myIcon.y)).y;
toolTip.move(globalX + myIcon.width, globalY);
That puts the window just to the right of the icon, myIcon.