How can I see whether a scrollviewer child element is visible, and make it visible if it isn't?



In a scrollviewer I have a textblock with 1000 inlines e.g.


XAML


<Grid>
<ScrollViewer>
<TextBlock Name="textBlock1" TextWrapping="Wrap" />
</ScrollViewer>
</Grid>

C#


public MainWindow()
{
InitializeComponent();
for (int i = 0; i < 1000; i++)
{
textBlock1.Inlines.Add(new Run("Inline number " + i.ToString() + ". "));
}
}

How do I see if a particular inline element (e.g. number 850) is vis


Related to : How can I see whether a scrollviewer child element is visible, and make it visible if it isn't?
How can I see whether a scrollviewer child element is visible, and make it visible if it isn't?
Programming Languages

In a scrollviewer I have a textblock with 1000 inlines e.g.


XAML


<Grid>
<ScrollViewer>
<TextBlock Name="textBlock1" TextWrapping="Wrap" />
</ScrollViewer>
</Grid>

C#


public MainWindow()
{
InitializeComponent();
for (int i = 0; i < 1000; i++)
{
textBlock1.Inlines.Add(new Run("Inline number " + i.ToString() + ". "));
}
}

How do I see if a particular inline element (e.g. number 850) is vis

Panel.Visible = True also make child controls visible.
Programming Languages

Hi There.
I have a panel that i display to the user after they have entered some data.
On that panel is a label which is set to visible = false at design time. If
i make the panel visible however it shows the label. This is no big deal, i
just set the label back to false again after i show the panel.
I just wanted to check this is normal behviour or is there an overrride. I
really only want to show the panel and any of its visible child controls
not all of them. I dont want this bubble down effect.
TIA
Richard
Nov 18 05
jQuery make child div visible on hover (on effective li element only, not parent!)
Programming Languages

I've already tried all of the existing posts related to this, but they doesn't work as I want it...


The HTML:


<ol class="sortable">
<li>
<div>
<a href="#">Start Page</a>
<div class="li_options">
<a href="#"><img src="img/icons/small_add.png" /></a>
<a href="#" onClick="[..]"><img src="img/icons/small_remove.png" /></a>
</div>
<div class="clear"></div>
</div>
<ol>
<li>
<div>
jQuery toggle doesn't change child element.style of visible elements when parent and child both toggled?
Programming Languages

In jQuery - I have a visible parent and child element - both have the same class.


If I toggle() using the class as the selector the child's style isn't updated to display: none; - even though it has the selector.


However if I have a hidden element and a hidden child element - both with the same class - both element.styles are updated to display: block; upon toggle(). When toggled a second time the now visible elements act in the same way as the original visible elements and the child's element.style isn't updated to show that it is hidden.


This results in what appears to be d



HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .