relife87
Topic Author
Posts: 8
Joined: 17 Aug 2021, 18:27

3.1.0 ScrollView problem pink and not scrolling

09 Sep 2021, 18:37

Hi, i'm new in noesisgui, and cannot find answer for this problem, after move wpf template to noesis have the problems with ScrollViewer
.NET 5.0,
NoesisGUI 3.1
Windows 10 x64 19043.1165

Image

This problem i'm have on use
<ScrollViewer Margin="0"
x:Name="PART_ContentHost" />
too...

i'm created test sample for view problem

MainWindow1.xaml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/marku ... ility/2006"
mc:Ignorable="d"
ResizeMode="NoResize"
Background="#FFFFFF"
Foreground="#000000"
x:Class="Sample.MainWindow1" WindowStyle="None" WindowStartupLocation="CenterScreen"
MinHeight="740" MaxHeight="740" MinWidth="1024"
x:Name="mainWnd">
<Viewbox MinHeight="740" d:MaxHeight="740" MinWidth="1024">
<Grid>
<ScrollViewer IsManipulationEnabled="True" PanningMode="VerticalOnly" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">

<StackPanel Orientation="Vertical">
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
<TextBlock>111</TextBlock>
<TextBlock>112</TextBlock>
<TextBlock>113</TextBlock>
<TextBlock>114</TextBlock>
<TextBlock>115</TextBlock>
<TextBlock>116</TextBlock>
</StackPanel>
</ScrollViewer>
</Grid>
</Viewbox>
</Window>
App.xaml - empty for test
<Application xmlns="http://schemas.microsoft.com/winfx/2006 ... esentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow1.xaml"
x:Class="Sample.App">

</Application>
 
relife87
Topic Author
Posts: 8
Joined: 17 Aug 2021, 18:27

Re: 3.1.0 ScrollView problem pink and not scrolling

10 Sep 2021, 10:55

This problem i'm have in ListView with ScrollViewer.CanContentScroll="True"
Console return
[NOESIS/W] Virtualization disabled: items control CanContentScroll is False
may-be this be helping
From stackoverflow post i'm change properties to
ScrollViewer.CanContentScroll="True" VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.ScrollUnit="Pixel"
but this not helped
 
User avatar
sfernandez
Site Admin
Posts: 2537
Joined: 22 Dec 2011, 19:20

Re: 3.1.0 ScrollView problem pink and not scrolling

10 Sep 2021, 11:13

When you see pink controls it means you are not specifying any styles for your application and it is falling back to our internal default styles.

You can use our theme by adding this to your App.xaml as we do in some of our samples:
<Application x:Class="UserControls.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
  <Application.Resources>
    <ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml" />
  </Application.Resources>
</Application>
Regarding the ListView, the problem is also related to not using a theme with complete styles. You should be able to use virtualization in a ListBox/ListView after adding our theme.
 
relife87
Topic Author
Posts: 8
Joined: 17 Aug 2021, 18:27

Re: 3.1.0 ScrollView problem pink and not scrolling

11 Sep 2021, 08:11

Yes, this have resolution my problem, but i'm have this error in log, this normal? i'm first time removed default style after return this problem
[NOESIS/W] Dependency property 'ListView.View' returned null
[NOESIS/E] Binding failed: Path=TemplatedParent.View.ColumnHeaderContextMenu, Source=ScrollViewer(''), Target=GridViewHeaderRowPresenter(''), TargetProperty=GridView.ColumnHeaderContextMenu
 
User avatar
sfernandez
Site Admin
Posts: 2537
Joined: 22 Dec 2011, 19:20

Re: 3.1.0 ScrollView problem pink and not scrolling

13 Sep 2021, 11:56

This is just a binding error that indicates that you are not specifying a View in your ListView (so it behaves like a simple ListBox without columns). You probably have something like this:
<ListView ItesmsSource="{Binding SomeItems}"/>
If you want to show several columns for each item you have to specify a View with the columns definition like we do in our ListView sample in the Gallery.
 
relife87
Topic Author
Posts: 8
Joined: 17 Aug 2021, 18:27

Re: 3.1.0 ScrollView problem pink and not scrolling

14 Sep 2021, 09:53

Thanks, the solution for my problem, Have another problems - but this in new topic
 
User avatar
sfernandez
Site Admin
Posts: 2537
Joined: 22 Dec 2011, 19:20

Re: 3.1.0 ScrollView problem pink and not scrolling

16 Sep 2021, 12:30

Marked this as solved, thanks.

Who is online

Users browsing this forum: No registered users and 2 guests