POST
|
Composition over Inheritance http://en.wikipedia.org/wiki/Composition_over_inheritance would be a valid OOP solution to your issue.
... View more
10-06-2014
05:17 PM
|
1
|
1
|
495
|
POST
|
The documentation mentions :
You can also specify whether or not the proxy should always be used for communication using alwaysUseProxy
esriConfig.defaults.io.alwaysUseProxy = false;
If it is possible for you to specify specific proxy rules for all services that need a proxy and want to disable it for everything else then theoretically the above should do the trick for you. What seems to not be supported from the looks of it is disabling the use of the proxy on specific services when a global proxy for all requests is enabled meaning you are forced to know all the proxy-friendly services up front.
... View more
09-24-2014
12:08 PM
|
0
|
2
|
655
|
POST
|
Nope. I'm pretty confident it's an issue with the Map control though. I'm hoping someone from ESRI can shed some light on this. It doesn't have anything to do with the Map or ESRI's API in general. It's purely a Silvelight XAML issue specifically with nested TabControls. I noticed that it does not work when you use a direct binding but instead works if i use a Path. When i changed the binding to {Binding Path=Name, ElementName=map_TestMap} it worked. I am not sure what's really going on there. Here's a workaround for you though: <sdk:TabControl x:Name="tc_SidePanel" HorizontalAlignment="Right" Width="300"> <sdk:TabControl.Resources> <ContentControl x:Key="IShouldNotHaveToDoThis" Tag="{Binding ElementName=map_TestMap}"/> </sdk:TabControl.Resources> and then inside your nested control bind the Map this way : <nestedTabControlControls:TestControl x:Name="test_5" VerticalAlignment="Top" Map="{Binding Tag, Source={StaticResource IShouldNotHaveToDoThis}}" Test="{Binding Text, ElementName=txt_TestValue}"/> Let me know if it works for you. Anargyros
... View more
03-20-2014
02:05 PM
|
0
|
0
|
325
|
POST
|
Hi Christopher, You would need to disable FIPSAlgorithmPolicy enforcement on your machine by setting the value to 0 for this registry key : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy. Removal of this requirement is indeed something we are looking into and are considering for future releases. If you are unable to make those changes to your machine to make Operations Dashboard work then i would encourage you to log the issue with our Support services. Let me know if it works for you. Anargyros
... View more
03-19-2014
05:15 PM
|
0
|
0
|
256
|
POST
|
Hi Federer, You can introduce a boolean IsSelected property in your List ViewModels and Two-Way bind them to the IsSelected DP property of the generated ListBoxItem's. Here's the XAML part :
<ListBox ItemsSource="{Binding ItemVMs}">
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
Hope this helps.
... View more
02-24-2014
03:27 PM
|
0
|
0
|
554
|
POST
|
Can you also try deleting everything under the "C:\Users\<username>\AppData\Local\Apps\2.0" folder.
... View more
02-03-2014
01:02 PM
|
0
|
5
|
626
|
POST
|
Hi Patrick, Did you start getting this error after upgrading the Operations Dashboard App?
... View more
02-03-2014
10:56 AM
|
0
|
0
|
626
|
POST
|
That's a very reasonable suggestion and we would like to add support for that in future releases. Until then, this could be solved programmatically client side with a custom widget.
... View more
12-30-2013
02:08 PM
|
0
|
0
|
376
|
POST
|
This appears to be a well known ClickOnce issue. See this ClickOnce through Proxy with Authentication and this clickonce (in .NETv3.5) - does it support working through a proxy server with username and password? Does your proxy use Windows authentication (NTLM) ? If yes then can you try changing your machine.config file to include this as the last entry <system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"/>
</system.net> Otherwise, for Http-Authenticated proxies (Basic/Digest), there might be a workaround out there. Take a look at this SO question How can I use my Proxy credentials when installing a Clickonce application?. Disclaimer: Use this workaround at your own risk. This is just a link i found while browsing the net. [ATTACH=CONFIG]30151[/ATTACH] Let me know if this helps.
... View more
12-30-2013
09:12 AM
|
0
|
0
|
479
|
POST
|
Hi, I have been following this post since a long time and saw the examples above. It is really great work. However from what I perceive of MVVM, my viewmodel should actually be totally unaware of the view. While when I try to implement the same in ESRI's SDK for WPF, it makes me use instance of Map in the ViewModel. Has someone found a way to create a viewmodel that does not include a reference to ESRI? This somehow is the first requirement for the application I am developing. You can always delegate more work (through indirections) to the View. Make a MapViewModel for what is bindable and for anything that isn't you can: listen for custom VM events/propertychanges in the View that tells it , indirectly, what to do with the Map. similarly but with the use of attached properties like here where a property change event is used to indirectly signal a ZoomTo call on the Map through an AttachedDP. This reminds me a bit of Prism's InteractionRequest trick which essentially is a Action Triggered by a property change Another solution might be to make you own custom wrapper control (MapControl) that this time IS bindable. You are free to design the interface of the control and therefore how its ViewModel will look like. This is btw similar to what had to be done by all WinPhone devs to bypass the fact that the ApplicationBar control on WinPhone is not bindable!! They made a bindable wrapper. Another solution is to embrace the fact that not everything can and will be bindable and use a hybrid approach which I am very fond off called PresentationModel, which is essentially the parent of MVVM (think bindable Presenter), along with the option of having a interface for the View. An elegant way of setting this up is similar to how GWT does it :
public class PresentationModel
{
public interface View
{
void ZoomTo(Geometry geom);
}
public View View {get; set;}
}
Now, if all these seem to be too much work then... If you find that going pure MVVM is too much of a hassle in some cases then I personally don't mind making a wrapper ViewModel (think MapViewModel that wraps the Map). I know it breaks "rules" but I can get the job done whilst respecting the MVVM goal and retaining the fundamental benefits. It's going to look, feel and smell like a VM but in reality it wont bind to anything. This way I still code against a ViewModel, I can mock it, test code that uses it etc etc. 1) I keep the benefits of using a ViewModel, 2) I have the flexibility of changing the interface I code against completely if I wish so. For example I could provide a LocationViewModel (or DrawViewModel) off the MapViewModel to simulate the new Map.LocationDisplay coming in the WinStore and WP8 instead of dealing with a GpsLayer (WP7/WPF API) thus making my code more portable also (since I can hide some API differences behind my interface).. 3) You have less to worry about concerning trying to workaround the non-bindable scenarios. Hope this helps Cheers 🙂
... View more
04-02-2013
12:27 PM
|
0
|
0
|
554
|
Title | Kudos | Posted |
---|---|---|
1 | 10-06-2014 05:17 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|