|
POST
|
Where does the ShowCoordinatesBehavior inherit its background color from and how can I change it? It should be transparent... but I am seeing a back box behind the coordinates... Thanks!!!
... View more
10-04-2010
10:21 AM
|
0
|
4
|
994
|
|
POST
|
The best way to describe this is by looking at the attached two screen shots... The one that is a square has the correct area, but the one that obviously should be larger, is actually smaller... The line distances seem just fine, but the area is not correct... seems to be when the polygon is more convex. Is this a bug? Thanks!
... View more
10-01-2010
03:54 PM
|
0
|
5
|
2603
|
|
POST
|
How come the Layers Extent is almost the same as the Services Full Extent when the layers should be much smaller (the services should be too for that matter)? Where are ArcGIS Server and REST getting its extent information from? Does it not obey definition queries in the layer? Is there a way to change these extents? Thanks a lot for any info!
... View more
10-01-2010
03:32 PM
|
0
|
0
|
528
|
|
POST
|
So we have a raster in an SDE Oracle database... the "NoData Value" property is set to 256 and should be set to 255... WHY can I not find a way to change this property value? I DO NOT want to recalculate all the 255 pixels in the map (this is a huge raster), I simply want to change the "NoData Value" property. The closest thing I have found is to have our DBA run: sderaster -o update -l <table,column> -v <raster_id> -a 255 But not real sure for one if this does what I want or if it recalculates all the pixels, and two what to put for <table,column> and <raster_id>... Any help or ideas would be great! Thanks a lot!
... View more
09-28-2010
03:49 PM
|
0
|
2
|
1270
|
|
POST
|
Still have this same issue with 10 final... time seems to work fine for a feature layer, but not a raster catalog 😞
... View more
09-21-2010
04:34 PM
|
0
|
0
|
1004
|
|
POST
|
Great, that helps a lot... I should be able to use some of that code! Thank you!
... View more
09-17-2010
09:25 AM
|
0
|
0
|
353
|
|
POST
|
Is there any way to deep clone a Map control? What I am trying to achieve: Have a button on the toolbar that splits the window up to four times... so you could have up to four copies of the map all in view. There is then a time slider that will be attached to each map so you can control the time extent of each map independently and see different data at different times. I am trying to achieve this functionality in a reusable toolkit, so ideally don???t want the toolkit user to have to create 4 maps to feed the control. Thanks a lot for any help!
... View more
09-17-2010
08:12 AM
|
0
|
2
|
2052
|
|
POST
|
of whatever type Bookmark.Bookmarks is) Bookmark.Bookmarks is an ObservableCollection<BookmarkItem>... hmm, i know there are issues with ObservableCollection in xaml, not sure how to use it... I tried making it a List too, but still not sure... Thanks
... View more
09-13-2010
12:48 PM
|
0
|
0
|
301
|
|
POST
|
Thanks a lot Jennifer! That is great, and I see what they are doing there... but how do I add/bind an existing map into the collection in XAML? I don't want to create a new map in the collection, but bind an existing one... I probably could create a map container class with a map property inside it and then bind to that I suppose... but would be nice to just stick a reference to the map right in a map collection. Thanks!
... View more
09-13-2010
07:15 AM
|
0
|
0
|
381
|
|
POST
|
I have a template control Bookmark (not the one from the ESRI toolkit), and in MainWindow.xaml, this works just fine:
<sdl:Bookmark>
<sdl:Bookmark.Bookmarks>
<sdl:BookmarkItem Name="test" Extent="-121.89,33.60,-117.09,36.32">
</sdl:BookmarkItem>
</sdl:Bookmark.Bookmarks>
</sdl:Bookmark>
But, I also have a template control Titlebar which inside of its XAML contains one of these Bookmark controls, and in MainWindow.xaml, this does NOT work:
<sdl:Titlebar x:Name="Titlebar">
<sdl:Titlebar.Bookmark>
<sdl:Bookmark.Bookmarks> <!-- Doesn't like this -->
<sdl:BookmarkItem Name="test" Extent="-121.89,33.60,-117.09,36.32">
</sdl:BookmarkItem>
</sdl:Bookmark.Bookmarks>
</sdl:Titlebar.Bookmark>
</sdl:Titlebar>
I get this error: Error 11 The tag 'Bookmark.Bookmarks' does not exist in XML namespace 'clr-namespace:SDL.ArcGIS.Client.Toolkit;assembly=SDL.ArcGIS.Client.Toolkit'. Line 45 Position 22. C:\Projects\SDL.ArcGIS.Client.Toolkit\SDL.ArcGIS.Client.Toolkit.WPFTestApplication\MainWindow.xaml 45 22 SDL.ArcGIS.Client.Toolkit.WPFTestApplication Bookmark does have a member property in the Titlebar class that is set to the template bookmark in OnApplyTemplate(). I tried making a dependency property for the Bookmark property too, but that didn't help either. Is this a Known limitation? Or most likley, what am I doing wrong? Thanks a lot for any help!!! *EDIT - Additional info: Also, when doing the following, it compiles and launchs without error, but the BookmarkItems never appear in the ObservableCollection:
<sdl:Titlebar x:Name="Titlebar">
<sdl:Titlebar.Bookmark>
<sdl:Bookmark>
<sdl:Bookmark.Bookmarks>
<sdl:BookmarkItem Name="test" Extent="-121.89,33.60,-117.09,36.32">
</sdl:BookmarkItem>
</sdl:Bookmark.Bookmarks>
</sdl:Bookmark>
</sdl:Titlebar.Bookmark>
</sdl:Titlebar>
Even though it compiles, this doesn't seem right to me though... having to redeclare the Bookmark. It feels like a bookmark is being created inside a bookmark.
... View more
09-12-2010
08:50 AM
|
0
|
2
|
1226
|
|
POST
|
So our in house toolkit originally just supported one map, and the following example worked great:
<sdl:ViewToolbar x:Name="ViewToolbar" Map="{Binding ElementName=Map1}" />
But now, instead of the ViewToolbar having just a Map property, it has a Maps property, which is an ObservableCollection<Map> (could be any collection type really). So the control can now support working with multiple maps. I can set this Maps collection in the code behind, and it works, but I would like to set it in the XAML similar to the above example. I would like to do something like this:
<sdl:ViewToolbar x:Name="ViewToolbar">
<sdl:ViewToolbar.Maps>
<!-- How do I bind to multiple existing maps here? -->
</sdl:ViewToolbar.Maps>
</sdl:ViewToolbar>
Is this possible? Can I create a ObservableCollection resource or something and bind to that? Or do I have to do it in code? Thanks a lot for any help!
... View more
09-12-2010
08:40 AM
|
0
|
2
|
727
|
|
POST
|
Figured it out!!! I was "linking" to the XAML files in the Silverlight project (for code reuse)... Apparently in both VS2008 and VS2010 there is a bug that if a linked XAML file is in a sub folder, it doesn't compile... Looking at the ESRI Toolkit, I see they pulled all the linked files out to the root! What I did was put both the Silverlight and WPF projects in the same folder for now (so no linking required), I'll see what issues that brings up, but so far so good. If this has issues I will just pull the linked files to the root like the ESRI toolkit (I hate things not being organized though). Hope this helps someone else out... Thanks!
... View more
09-07-2010
12:05 PM
|
0
|
0
|
743
|
|
POST
|
It has something to do with using the controls out of a DLL, like its not using the Generic.xaml in the DLL... The below test control works fine if it is in the Application and using the apps generic.xaml to merged dictionaries. But if I move the control, the template, and the merged dictionary to the DLL, it compiles and all, but I do not see the control in the app then. Test.Theme.xaml
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:inputToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:local="clr-namespace:SDL.ArcGIS.Client.Toolkit">
<!-- Dialog Window Style -->
<Style TargetType="local:Test">
<!-- Existing Properties -->
<Setter Property="Width" Value="Auto" />
<Setter Property="Height" Value="Auto" />
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Background" Value="#BBAF1E2D" />
<Setter Property="Foreground" Value="White" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="FontSize" Value="12" />
<Setter Property="FontFamily" Value="Verdana" />
<Setter Property="FontWeight" Value="Bold" />
<!-- Template -->
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:Test">
<StackPanel Orientation="Horizontal" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
<TextBlock Text="Test Control" Foreground="{TemplateBinding BorderBrush}" VerticalAlignment="Center" Margin="0,0,5,0" />
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
Test.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Data;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media.Imaging;
using System.Windows.Media;
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
namespace SDL.ArcGIS.Client.Toolkit
{
public class Test : Control
{
//Constructors
public Test()
{
#if SILVERLIGHT
this.DefaultStyleKey = typeof(Test);
#endif
}
static Test()
{
#if !SILVERLIGHT
DefaultStyleKeyProperty.OverrideMetadata(typeof(Test), new FrameworkPropertyMetadata(typeof(Test)));
#endif
}
//Methods
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
}
}
}
Generic.xaml
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SDL.ArcGIS.Client.Toolkit">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Titlebar/Splitter.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Titlebar/Titlebar.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Toolbar/Toolbar.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Windows/AccordionWindow.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Windows/DialogWindow.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Table Of Contents/TableOfContents.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Grid Splitter/MapDataSplitter.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Grid Splitter/MapDataTabControl.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Bookmark/Bookmark.Theme.xaml" />
<ResourceDictionary Source="/SDL.ArcGIS.Client.Toolkit;component/Test/Test.Theme.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Thanks for the help!
... View more
09-07-2010
09:02 AM
|
0
|
0
|
743
|
|
POST
|
I am porting a Silverlight Library to a WPF Library (SL4, .NET4)... Got all the issues resolved so that I could compile the WPF library without errors. I am now trying to use the WPF library in a WPF application. I add a control from the library in XAML, it compiles just fine and the app launches, but I never see the controls... it is like the templates from the dll are not being used or something. The library has a Generic.xaml that merges all the different control themes together. The controls show just fine in the corresponding Silverlight library and a Silverlight app. Things I have tried: 1) In AssemblyInfo.cs, I changed [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)] To [assembly: ThemeInfo(ResourceDictionaryLocation.SourceAssembly, ResourceDictionaryLocation.SourceAssembly)] I tried this in both the dll and the Apps AssembyInfo.cs 2) All template controls declare their styles like this:
public Bookmark()
{
#if SILVERLIGHT
this.DefaultStyleKey = typeof(Bookmark);
#endif
}
static Bookmark()
{
#if !SILVERLIGHT
DefaultStyleKeyProperty.OverrideMetadata(typeof(Bookmark), new FrameworkPropertyMetadata(typeof(Bookmark)));
#endif
}
Any ideas? What am I forgetting?... I have been doing the Silverlight for awhile now, but this is my first WPF app. Looking through the ArcGIS Silverlight/WPF toolkit, it is doing what I am trying to, but I can not find anything that I am missing... and the ArcGIS controls show up just fine in the WPF app. Thanks a lot for any help or ideas!
... View more
09-04-2010
03:53 PM
|
0
|
3
|
3271
|
|
POST
|
Ahhh, sure sounds like a similar problem... And to answer your other question, when I set the time to "null,null" I get back the wireframes of the images... as expected since more than 9 should be showing. Same behavior as specifying no time.
... View more
07-07-2010
09:51 AM
|
0
|
0
|
1004
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:43 AM | |
| 1 | 10-02-2023 02:23 PM | |
| 1 | 11-16-2016 02:05 PM | |
| 1 | 07-05-2017 09:30 AM | |
| 15 | 11-19-2010 08:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
08:25 PM
|