3.1.0 ScrollView problem pink and not scrolling
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
This problem i'm have on use
i'm created test sample for view problem
MainWindow1.xaml
.NET 5.0,
NoesisGUI 3.1
Windows 10 x64 19043.1165
This problem i'm have on use
too...<ScrollViewer Margin="0"
x:Name="PART_ContentHost" />
i'm created test sample for view problem
MainWindow1.xaml
App.xaml - empty for test<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>
<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>
Re: 3.1.0 ScrollView problem pink and not scrolling
This problem i'm have in ListView with ScrollViewer.CanContentScroll="True"
Console return
From stackoverflow post i'm change properties to
Console return
may-be this be helping[NOESIS/W] Virtualization disabled: items control CanContentScroll is False
From stackoverflow post i'm change properties to
but this not helpedScrollViewer.CanContentScroll="True" VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.ScrollUnit="Pixel"
-
sfernandez
Site Admin
- Posts: 3005
- Joined:
Re: 3.1.0 ScrollView problem pink and not scrolling
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:
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.
You can use our theme by adding this to your App.xaml as we do in some of our samples:
Code: Select all
<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>
Re: 3.1.0 ScrollView problem pink and not scrolling
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
-
sfernandez
Site Admin
- Posts: 3005
- Joined:
Re: 3.1.0 ScrollView problem pink and not scrolling
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:
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.
Code: Select all
<ListView ItesmsSource="{Binding SomeItems}"/>
Re: 3.1.0 ScrollView problem pink and not scrolling
Thanks, the solution for my problem, Have another problems - but this in new topic
-
sfernandez
Site Admin
- Posts: 3005
- Joined:
Re: 3.1.0 ScrollView problem pink and not scrolling
Marked this as solved, thanks.
Who is online
Users browsing this forum: Ahrefs [Bot] and 6 guests