Questions tagged [childviews]

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

58 questions
1
vote
0 answers

MVVM - pass info from MainWindow ViewModel to WinForms based child UserControl

I'm working on a WPF/MVVM application that will host a WinForms graphical control for the display of CAD-type geometry. First, a little background. Basically, I have a MainWindow with a TreeView on the left and a TabControl on the right. The…
Jeff Godfrey
  • 718
  • 8
  • 18
1
vote
1 answer

Scrolling on MFC

I'm working on an SDI app without Doc/View structure. I have spent so much time on this project, and now I would like to implement vertical & horizontal scroll bars (not mandatory, but they can be so useful). I've been searching for it, and the only…
JDV
  • 21
  • 4
1
vote
3 answers

ContextMenu in ExpandableListView

hi frnds in my application i use expandableListView. an i need to integrate a contextMenu for the expandable listView. in my expandable ListView i inflate different layouts for different child. so when i do a long click on each childView i need to…
Vikky
  • 933
  • 2
  • 15
  • 29
1
vote
1 answer

iOS add a CollectionView to a another view within the storyboard UI builder

Just getting started with iOS, and trying to make the collection view on the right be a child view of the view on the left. I cant seem to drag it in. I think part of the problem is that on the left hand part of the nav (immediate left of the work…
hvgotcodes
  • 118,147
  • 33
  • 203
  • 236
0
votes
0 answers

Creating a Child View for custom item fields

I ran into a problem with my TPL template. The problem was the result of me adding hundreds of lines of model.item fields that I was getting a template error when I deployed. In order to combat that, I need to make a child view for the model.item…
flexdev
  • 13
  • 4
0
votes
0 answers

Angular: ChildView vs. getDocumentById

I try to play with SVG and Angular. Can anyone tell me why this is not working with ChildView but fine with getDocumentById? import { Component, ViewChild } from '@angular/core'; @Component({ selector: 'a', template: `
chris01
  • 10,921
  • 9
  • 54
  • 93
0
votes
3 answers

VideoPlayer in SwiftUI stops playing when parent-View updates

Using Swift5.3.2, iOS14.4.1, Xcode 12.4, I am successfully running a VideoPlayer in SwiftUI. I am calling the Player view with this code: VideoPlayer(player: AVPlayer(url: url)). The problem is that the video stops playing whenever a parent-View of…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
2 answers

C# ASP.NET MVC error sharing model between parent and child view using Html.RenderPartial

While invoking @Html.RenderPartial("_ChildPartialView"), I am getting the following error : System.Collections.Generic.ICollection' has no applicable method named 'ElementAt' but appears to have an extension method by that name. Extension methods…
Sujoy
  • 1,051
  • 13
  • 26
0
votes
1 answer

Find child of a LinearLayout inside a LinearLayout

I have a LinearLayout ("ll") that is already created in xml and the app dynamically creates another LinearLayout inside of it and creates an EditText and a Button inside of that view. The button makes the whole LinearLayout destroy itself along with…
Ethan Shoe
  • 466
  • 1
  • 7
  • 20
0
votes
1 answer

AngularJS Child view not showing

I am trying to render a child view. However it is not showing, here is a sample of code below. Most examples I see have the entire state template in a single template; however I have several views in different templates which composed each states…
uniXVanXcel
  • 807
  • 1
  • 10
  • 25
0
votes
1 answer

Swift 3 - addChildViewController on UIWindow of another view controller

I have to add second view controller's view on UIWindow of the first view controller using addChildViewController. but I'm getting issue when I'm trying to do that. My query is, it is possible to add that another view controller's view on UIWindow? …
ssowri1
  • 1,299
  • 2
  • 14
  • 31
0
votes
1 answer

Last row on child view controller's table view cannot select

I'm trying to make a view container with table view. That's works fine, but if i select the last row, the method didSelectRowAt indexPath: cannot be triggered. This is my code: let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) …
Alfredo Luco G
  • 876
  • 7
  • 18
0
votes
2 answers

Is there anyway to find out what type of View a View is?

So if I were to have a LinearLayout and had several children Views inside of it, say like a couple of Buttons a TextView and a CheckBox, using the LinearLayout's getChildAt(x) I would then get an unspecified View. To note, I'm not using an xml in…
Crimson Bloom
  • 287
  • 2
  • 13
0
votes
0 answers

child view in percent relative layout visibility change

my aim is to change the visibility of the included layouts in each tablerow based on a single if condition. i changed the code onResume() method. but the second tablerow is not visible to me. even i printed the logs. i got View.Visible only.
0
votes
0 answers

Child view container don't match to desired width in swift

I have a view container to show only 1 screen with phone and 2 with tab. So, in ViewDidLoad(), I use a the method func addListController(){ self.addChildViewController(listController!) listController?.view.frame = defineListSize() …
Turvy
  • 882
  • 1
  • 8
  • 23