Skip to content

Commit b1f7d86

Browse files
committed
Replace MasonryPanels with WrapPanels
1 parent d6dec80 commit b1f7d86

File tree

8 files changed

+26
-14
lines changed

8 files changed

+26
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Windows.Controls;
2+
3+
namespace OpenSilver.Samples.TelerikUI
4+
{
5+
public class WrapPanelWithProgressiveLoading : WrapPanel
6+
{
7+
public WrapPanelWithProgressiveLoading()
8+
{
9+
ProgressiveRenderingChunkSize = 3;
10+
}
11+
}
12+
}

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Charts.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<StackPanel>
88
<TextBlock Text="Charts" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadCartesianChart_AreaSeries_Demo HorizontalAlignment="Center"/>
1111
<local:RadCartesianChart_BarSeries_Demo HorizontalAlignment="Center"/>
1212
<local:RadCartesianChart_BubbleSeries_Demo HorizontalAlignment="Center"/>
@@ -20,6 +20,6 @@
2020
<local:RadCartesianChart_RangeSplineSeries_Demo HorizontalAlignment="Center"/>
2121
<local:RadCartesianChart_SplineAreaSeries_Demo HorizontalAlignment="Center"/>
2222
<local:RadCartesianChart_StepAreaSeries_Demo HorizontalAlignment="Center"/>
23-
</local:MasonryPanelWithProgressiveLoading>
23+
</local:WrapPanelWithProgressiveLoading>
2424
</StackPanel>
2525
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Controls/Controls.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<StackPanel>
88
<TextBlock Text="All Telerik UI Controls" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadButton_Demo HorizontalAlignment="Center"/>
1111
<local:RadExpander_Demo HorizontalAlignment="Center"/>
1212
<local:RadPathButton_Demo HorizontalAlignment="Center"/>
@@ -70,6 +70,6 @@
7070
<local:RadCartesianChart_SplineAreaSeries_Demo HorizontalAlignment="Center"/>
7171
<local:RadCartesianChart_StepAreaSeries_Demo HorizontalAlignment="Center"/>
7272
<!--End Charts Part-->
73-
</local:MasonryPanelWithProgressiveLoading>
73+
</local:WrapPanelWithProgressiveLoading>
7474
</StackPanel>
7575
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/DataManagement.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
<StackPanel>
88
<TextBlock Text="DataManagement" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadGridView_Demo HorizontalAlignment="Center"/>
1111
<local:RadTreeListView_Demo HorizontalAlignment="Center"/>
1212
<local:RadListBox_Demo HorizontalAlignment="Center"/>
13-
</local:MasonryPanelWithProgressiveLoading>
13+
</local:WrapPanelWithProgressiveLoading>
1414
</StackPanel>
1515
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Editors.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<StackPanel>
88
<TextBlock Text="Editors" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadRadioButton_Demo HorizontalAlignment="Center"/>
1111
<local:RadSlider_Demo HorizontalAlignment="Center"/>
1212
<local:RadDatePicker_Demo HorizontalAlignment="Center"/>
@@ -19,7 +19,7 @@
1919
<local:RadDropDownButton_Demo HorizontalAlignment="Center"/>
2020
<local:RadNumericUpDown_Demo HorizontalAlignment="Center"/>
2121
<local:RadColorPicker_Demo HorizontalAlignment="Center"/>
22-
</local:MasonryPanelWithProgressiveLoading>
22+
</local:WrapPanelWithProgressiveLoading>
2323
</StackPanel>
2424

2525
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Layouts.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<StackPanel>
88
<TextBlock Text="Layouts" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:GroupBox_Demo HorizontalAlignment="Center"/>
1111
<local:RadDockPanel_Demo HorizontalAlignment="Center"/>
1212
<local:RadGallery_Demo HorizontalAlignment="Center"/>
@@ -17,6 +17,6 @@
1717
<local:RadProgressBar_Demo HorizontalAlignment="Center"/>
1818
<local:RadTickBar_Demo HorizontalAlignment="Center"/>
1919
<local:RadAlert_Demo HorizontalAlignment="Center"/>
20-
</local:MasonryPanelWithProgressiveLoading>
20+
</local:WrapPanelWithProgressiveLoading>
2121
</StackPanel>
2222
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Navigations.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<StackPanel>
88
<TextBlock Text="Navigations" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadTabControl_Demo HorizontalAlignment="Center"/>
1111
<local:RadExpander_Demo HorizontalAlignment="Center"/>
1212
<local:RadRibbonView_Demo HorizontalAlignment="Center"/>
@@ -20,7 +20,7 @@
2020
<local:RadTransitionControl_Demo HorizontalAlignment="Center"/>
2121
<local:RadPanelBar_Demo HorizontalAlignment="Center"/>
2222
<local:RadDocking_Demo HorizontalAlignment="Center"/>
23-
</local:MasonryPanelWithProgressiveLoading>
23+
</local:WrapPanelWithProgressiveLoading>
2424
</StackPanel>
2525

2626
</UserControl>

OpenSilver.Samples.TelerikUI/OpenSilver.Samples.TelerikUI/Samples/Scheduling.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
<StackPanel>
88
<TextBlock Text="Scheduling" Style="{StaticResource PageHeader_Style}"/>
9-
<local:MasonryPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
9+
<local:WrapPanelWithProgressiveLoading Style="{StaticResource Panel_Style}">
1010
<local:RadScheduleView_Demo HorizontalAlignment="Center"/>
1111
<local:RadCalendar_Demo HorizontalAlignment="Center"/>
12-
</local:MasonryPanelWithProgressiveLoading>
12+
</local:WrapPanelWithProgressiveLoading>
1313
</StackPanel>
1414
</UserControl>

0 commit comments

Comments
 (0)