Solved! Go to Solution.
Dominique,
I tried that, but this only fires on load. I put a breakpoint in the sample and it only fired when the dialog loaded. Is there a way to catch the extent change on the map in the dialog?
Chris
mapPrinter.DataItems["MyIdentifyResult"] = MyIdentifyResult();
private void mapPrinter_PageChanged(object sender, PageChangedEventArgs e) { var mapPrinter = sender as MapPrinter; if (mapPrinter != null) { mapPrinter.DataItems["MyIdentifyResult"] = MyIdentifyResultFromPage(e.Page); // MyIdentifyResultFromPage to write depending on your context } }
<TextBlock TextWrapping="Wrap" Text="{Binding DataItems[MyIdentifyResult], RelativeSource={RelativeSource TemplatedParent}}"/>
Dominique,
I tried that, but this only fires on load. I put a breakpoint in the sample and it only fired when the dialog loaded. Is there a way to catch the extent change on the map in the dialog?
Chris
mapPrinter.DataItems["MyIdentifyResult"] = MyIdentifyResult();
Dominique,
I am mainly interested in unique maps. Where do I put that code to have it fire with the extent change?