<?xml version="1.0"?>
-<Popper Name="popper" PopDirection="Bottom">
+<Popper Caption="{./SelectedItem}" Name="popper" PopDirection="Bottom" Foreground="{./Foreground}" Background="{./Background}">
<Template>
- <Border CornerRadius="0" Foreground="LightGray">
- <HorizontalStack Margin="0" Spacing="1">
- <TextBox MinimumSize="80,10" Margin="1" Foreground="Black" Background="White"
- Text="{../../../../SelectedItem}"/>
- <Button Width="14" Height="14" Focusable="false"
- Template="#Crow.Templates.ArrowBut.template">
- <Image Margin="0" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
- </Button>
- </HorizontalStack>
- </Border>
+ <CheckBox Caption="{./Caption}" IsChecked="{²./IsPopped}" Foreground="{./Foreground}" Background="{./Background}">
+ <Template>
+ <Border CornerRadius="0" Foreground="LightGray">
+ <HorizontalStack Margin="0" Spacing="1">
+ <TextBox MinimumSize="80,10" Margin="1" Foreground="Black" Background="White"
+ Text="{./Caption}"/>
+ <Button Width="14" Height="14" Focusable="false"
+ Template="#Crow.Templates.ArrowBut.template">
+ <Image Margin="0" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
+ </Button>
+ </HorizontalStack>
+ </Border>
+ </Template>
+ </CheckBox>
</Template>
<Border Background="DimGray" BorderWidth="1" Margin="1"
MinimumSize="{../../MinimumPopupSize}" Fit="true">
//testFiles = new string [] { @"Interfaces/Unsorted/testFileDialog.crow" };
//testFiles = new string [] { @"Interfaces/Divers/colorPicker.crow" };
- //testFiles = new string [] { @"Interfaces/Divers/welcome.crow" };
+ testFiles = new string [] { @"Interfaces/Divers/welcome.crow" };
//testFiles = new string [] { @"Interfaces/TemplatedContainer/testTabView.crow" };
//testFiles = new string [] { @"Interfaces/TemplatedControl/testSpinner.crow" };
- testFiles = new string [] { @"Interfaces/DragAndDrop/0.crow" };
+ //testFiles = new string [] { @"Interfaces/DragAndDrop/0.crow" };
//testFiles = new string [] { @"Interfaces/TemplatedControl/testItemTemplateTag.crow" };
- testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/DragAndDrop", "*.crow")).ToArray ();
+ testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedControl", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Divers", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Group", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Stack", "*.crow")).ToArray ();
- testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedControl", "*.crow")).ToArray ();
+
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedContainer", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedGroup", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Splitter", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Wrapper", "*.crow")).ToArray ();
+ testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/DragAndDrop", "*.crow")).ToArray ();
testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Unsorted", "*.crow")).ToArray ();
Load(testFiles[idx]).DataSource = this;
gr.Clip ();
}
- lock (Children) {
+ lock (children) {
foreach (GraphicObject c in Children) {
if (!c.Visible)
continue;
if (value == data)
return;
- //cancelLoadingThread ();
+ cancelLoadingThread ();
if (data is IObservableList) {
IObservableList ol = data as IObservableList;
if (data == null)
return;
-// loadingThread = new CrowThread (this, loading);
-// loadingThread.Finished += (object sender, EventArgs e) => (sender as TemplatedGroup).Loaded.Raise (sender, e);
-// loadingThread.Start ();
-
- loadPage (data, items, dataTest);
+ loadingThread = new CrowThread (this, loading);
+ loadingThread.Finished += (object sender, EventArgs e) => (sender as TemplatedGroup).Loaded.Raise (sender, e);
+ loadingThread.Start ();
NotifyValueChanged ("SelectedIndex", _selectedIndex);
NotifyValueChanged ("SelectedItem", SelectedItem);
/// <summary>
/// Items loading thread
/// </summary>
-// void loading(){
+ void loading(){
+ loadPage (data, items, dataTest);
+ }
// //if (!ItemTemplates.ContainsKey ("default"))
// // ItemTemplates ["default"] = Interface.GetItemTemplate (ItemTemplate);
//