我有一个简单的wpf窗口,它有一个Scrollviewer,里面是一个Web浏览器.
<Window x:Class="WpfApplication9.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Background="Gainsboro">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<ScrollViewer Width="300" Grid.Column="1" Height="200" HorizontalScrollBarVisibility="Auto">
<WebBrowser Width="400" Margin="2" Source="C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg" />
</ScrollViewer>
</Grid>
Run Code Online (Sandbox Code Playgroud)
由于我给浏览器一个宽度超过滚动查看器宽度的宽度,我希望滚动查看器显示水平滚动条并在滚动查看器中显示Web浏览器.
但是当我向右水平滚动时,Web浏览器会移出滚动viwer.
难道我做错了什么?或者有任何解决方法吗?
任何帮助都非常感谢.谢谢.
我正在使用WCF(使用回调契约)和netTcpBinding创建聊天应用程序.我将该服务作为Windows服务托管,并通过客户端应用程序从其他计算机访问它.
我现在面临的问题是客户端连接在10分钟后进入故障状态,这似乎是某种超时发生.我已经尝试增加收到的超时并在服务和客户端发送超时但不起作用.
应该更改哪个设置以增加此超时期限以及应用程序,服务或客户端?
以下是我的配置文件,
服务
<system.serviceModel>
<services>
<service behaviorConfiguration="PeerTalk.Service.ChatServiceBehavior"
name="PeerTalk.Service.ChatService">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="PeerTalk.Service.ServiceContracts.IChat">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:7920/ChatService" />
<add baseAddress="net.tcp://localhost:7921/ChatService" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="PeerTalk.Service.ChatServiceBehavior">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="tcpBinding"
maxBufferSize="67108864"
maxReceivedMessageSize="67108864"
maxBufferPoolSize="67108864"
transferMode="Buffered"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:00:10"
sendTimeout="00:00:10"
maxConnections="100">
<readerQuotas maxDepth="64"
maxStringContentLength="67108864"
maxArrayLength="67108864"
maxBytesPerRead="67108864"
maxNameTableCharCount="16384"/>
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows"/>
</security> …
Run Code Online (Sandbox Code Playgroud) 我有一个强类型的用户控件,我用它来搜索特定的对象列表.以下代码显示了用户控件,
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PeercoreCRM.ViewModels.CustomerFilterViewModel>" %>
<div style="width: 100%;vertical-align:top;background-color:White">
<fieldset>
<legend>Criteria</legend>
<table cellspacing="0">
<tr>
<td style="width: 100px">
<div class="editor-label">
<%: Html.LabelFor(m => m.LeadName) %>
</div>
</td>
<td>
<div class="editor-field">
<%: Html.TextBoxFor(m => m.LeadName) %>
</div>
</td>
</tr>
<tr>
<td style="width: 60px">
<div class="editor-label">
<%: Html.LabelFor(m => m.CustomerCode) %>
</div>
</td>
<td>
<div class="editor-field">
<%: Html.TextBoxFor(m => m.CustomerCode)%>
</div>
</td>
</tr>
<tr>
<td>
<input type="submit" name="btnSearch" value="Search" />
<input type="submit" name="btnCancel" value="Cancel" />
</td>
<td>
</td>
</tr>
</table>
</fieldset> …
Run Code Online (Sandbox Code Playgroud) 我使用VisualSVN服务器在服务器中创建了一个存储库.我在我的本地机器上安装了AnkhSVN,现在我正在尝试将我的本地源添加到存储库中.我右键单击Soulution并单击Add"Solution to Subversion",然后出现"Add to subversion"弹出窗口.一旦我输入了Repository Url,它就不会在下面显示存储库,我无法将其添加到存储库中.
网址是https://GP-WS16.gp.com.lk/svn/test
我尝试了端口号以及https://GP-WS16.gp.com.lk:443/svn/test
我检查了服务器,SVN服务器正在那里运行.
我没有在AnkhSVN以外的本地机器上安装TortoiseSVN或任何其他设备.我需要吗?我究竟做错了什么?
谢谢.