Category / Section
How to expand the popup of ColorPickerPalette at startup of Silverlight application?
1 min read
To expand the popup of ColorPickerPallette, the IsExpanded property of ColorPickerPallete can be used. The same has been demonstrated in the following code example:
XAML:
<Window x:Class="NewText_WPfapplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:syncfusion="http://schemas.syncfusion.com/wpf" Title="MainWindow" Height="350" Width="525"> <Grid x:Name="Grid1"> <syncfusion:ColorPickerPalette x:Name="color1" Width="200" IsExpanded="True"/> </Grid> </Window>
C#:
using Syncfusion.Windows.Tools.Controls; using Syncfusion.Windows.Shared; namespace NewText_WPfapplication { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); ColorPickerPalette _colorpickerpalette = new ColorPickerPalette(); _colorpickerpalette.Width = 150; _colorpickerpalette.IsExpanded = true; Grid1.Children.Add(_colorpickerpalette); } } }
Output:
The following output shows the colorpickerpalette popup expanded.