summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp/MainPage.xaml
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-05-08 22:04:34 -0700
committerRobin Watts <robin.watts@artifex.com>2013-05-16 19:25:54 +0100
commit8c3eb4b417ebb3e9bdd0c0ce12ffa4b22fd05621 (patch)
tree22b0d8ff21c2bd67df5899da78845fe0105319a1 /winrt/mupdf_cpp/MainPage.xaml
parent165a3528f5a48ba9c4f30d18330875b6070ddf96 (diff)
downloadmupdf-8c3eb4b417ebb3e9bdd0c0ce12ffa4b22fd05621.tar.xz
Text search working now. This is done in a similar fashion the the links
Still need a to fix a few minor issues including a progress bar
Diffstat (limited to 'winrt/mupdf_cpp/MainPage.xaml')
-rw-r--r--winrt/mupdf_cpp/MainPage.xaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/winrt/mupdf_cpp/MainPage.xaml b/winrt/mupdf_cpp/MainPage.xaml
index 23413db9..deb262cc 100644
--- a/winrt/mupdf_cpp/MainPage.xaml
+++ b/winrt/mupdf_cpp/MainPage.xaml
@@ -90,7 +90,7 @@
<!-- After much work, figured out how to have a binding for the rectangles. TextBox and LinkBox are
a collection that is in the other main collection used for the scroll viewer. It works
nicely and cleanly once you figure out how to set up all the templates and the bindings -->
- <ItemsControl ItemsSource="{Binding Path=TextBox}">
+ <ItemsControl ItemsSource="{Binding Path=TextBox}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Canvas/>
@@ -104,7 +104,7 @@
</ItemsControl.ItemContainerStyle>
<ItemsControl.ItemTemplate>
<DataTemplate>
- <Rectangle Name="{Binding Index}" Width="{Binding Path=Width}" Height="{Binding Path=Height}" Fill="{Binding Path=Color}">
+ <Rectangle Tag="{Binding Path=Index}" Width="{Binding Path=Width}" Height="{Binding Path=Height}" Fill="{Binding Path=Color}">
<Rectangle.RenderTransform>
<TranslateTransform X="{Binding Path=X}" Y="{Binding Path=Y}"/>
</Rectangle.RenderTransform>