本文整理汇总了C#中System.Windows.Controls.SelectionChangedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# SelectionChangedEventArgs类的具体用法?C# SelectionChangedEventArgs怎么用?C# SelectionChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SelectionChangedEventArgs类属于System.Windows.Controls命名空间,在下文中一共展示了SelectionChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: checkerGrid_SelectionChanged
/// <summary>
/// 安检单列表选择改变
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void checkerGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
GeneralObject item = checkerGrid.SelectedItem as GeneralObject;
if (item == null)
return;
GeneralObject go = new GeneralObject();
go.WebClientInfo = Application.Current.Resources["dbclient"] as WebClientInfo;
go.EntityType = "T_INSPECTION";
if (!item.GetPropertyValue("CONDITION").Equals("未检"))
{
go.Path = "one/select distinct t from T_INSPECTION t left join fetch t.LINES where t.id ='" + item.GetPropertyValue("id").ToString() + "'";
go.DataLoaded += go_DataLoaded;
//if (!item.GetPropertyValue("CONDITION").Equals("正常"))
// userfile.IsEnabled = false;
//else
// userfile.IsEnabled = true;
go.Load();
}
else
{
userfile.DataContext = null;
ClearAll();
//userfile.IsEnabled = false;
}
}
开发者ID:DuBin1988,项目名称:anjian_phone_server,代码行数:30,代码来源:燃气表故障明细.xaml.cs
示例2: LongListSelector_SelectionChanged
private void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
LongListSelector selector = sender as LongListSelector;
//verifying our sender is actually a LongListSelector
if (selector == null)
return;
SoundData data = selector.SelectedItem as SoundData;
//verifying our sender is actually SoundData
if (data == null)
return;
if (File.Exists(data.FilePath))
{
AudioPlayer.Source = new Uri(data.FilePath, UriKind.RelativeOrAbsolute);
}
else
{
using (var storageFolder = IsolatedStorageFile.GetUserStoreForApplication())
{
using (var stream = new IsolatedStorageFileStream(data.FilePath, FileMode.Open, storageFolder))
{
AudioPlayer.SetSource(stream);
}
}
}
selector.SelectedItem = null;
}
开发者ID:njlxyaoxinwei,项目名称:SoundBoard,代码行数:27,代码来源:MainPage.xaml.cs
示例3: SelectionChanged
private void SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (directDeleteRadioButton.IsChecked == true)
{
RemoveItem();
}
}
开发者ID:ohnoitsfraa,项目名称:1TIN_dotNetEssentials,代码行数:7,代码来源:MainWindow.xaml.cs
示例4: Purpose_Combo_SelectionChanged
private void Purpose_Combo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (this.IsInitialized)
{
refresh();
}
}
开发者ID:Stankim,项目名称:Onion,代码行数:7,代码来源:ClassList.xaml.cs
示例5: combo1_SelectionChanged
private void combo1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var classType = combo1.SelectedValue as Type;
shapeWidth.IsEnabled = true;
int argCount = NumberOfArguments(classType.Name);
shapeHeight.IsEnabled = (argCount > 1);
}
开发者ID:jcockhren,项目名称:SharpShapes,代码行数:7,代码来源:MainWindow.xaml.cs
示例6: OnSelectionChanged
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
{
base.OnSelectionChanged(e);
if (this.SelectedIndex != CompilerMessageView.Instance.SelectedCategoryIndex) {
CompilerMessageView.Instance.SelectedCategoryIndex = this.SelectedIndex;
}
}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:7,代码来源:CompilerMessageViewToolbarCommands.cs
示例7: Student_Combo_SelectionChanged
private void Student_Combo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (event_running) return;
event_running = true;
runEvent();
event_running = false;
}
开发者ID:GrayJumba,项目名称:Onion,代码行数:7,代码来源:ExtendedStudentPicker.xaml.cs
示例8: Help3CatalogsSelectionChanged
void Help3CatalogsSelectionChanged(object sender, SelectionChangedEventArgs e)
{
string item = (string)help3Catalogs.SelectedValue;
if (!string.IsNullOrEmpty(item)) {
Help3Service.ActiveCatalogId = item;
}
}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:7,代码来源:Help3OptionsPanel.xaml.cs
示例9: symbolCombo_SelectionChanged
// Cancel current shape request when the symbol selection changes
private async void symbolCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (MyMapView.Editor.IsActive)
MyMapView.Editor.Cancel.Execute(null);
await AcceptPointsAsync();
}
开发者ID:MagicWang,项目名称:arcgis-runtime-samples-dotnet,代码行数:8,代码来源:LineFillSymbols.xaml.cs
示例10: Letters_SelectionChanged
private void Letters_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (this.listLetters.SelectedIndex == -1)
return;
NavigationService.Navigate(new Uri("/Views/Words.xaml?nid=0&l=" + AppSettings.CyrillicLetters[this.listLetters.SelectedIndex], UriKind.Relative));
this.listLetters.SelectedIndex = -1;
}
开发者ID:supudo,项目名称:Neolog-WP,代码行数:7,代码来源:NestsAndLetters.xaml.cs
示例11: ArrangementList_SelectionChanged
private void ArrangementList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
curArr = ArrangementList.SelectedIndex;
if (curArr < 0)
return;
UpdateArrangement();
}
开发者ID:Herringway,项目名称:EBArrangementViewer,代码行数:7,代码来源:MainWindow.xaml.cs
示例12: lstGroups_SelectionChanged
private void lstGroups_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (lstGroups.SelectedIndex > -1)
{
NavigationService.Navigate(new Uri("/GroupDetailPage.xaml?ID=" + (lstGroups.SelectedItem as RecipeDataGroup).UniqueId, UriKind.Relative));
}
}
开发者ID:WindowsPhone-8-TrainingKit,项目名称:HOL-PortingWindows8AppToWP8,代码行数:7,代码来源:MainPage.xaml.cs
示例13: lstAdapters_SelectionChanged
private void lstAdapters_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
lstAdapterItem selItem = ((lstAdapterItem)lstAdapters.SelectedItem);
TextBox dnsBox = new TextBox() { Text = selItem.PrimaryDNS };
TiltEffect.SetIsTiltEnabled(dnsBox, true);
CustomMessageBox messageBox = new CustomMessageBox()
{
Caption = "Edit DNS for " + selItem.Name,
Message = "Primary DNS Server:",
Content = dnsBox,
LeftButtonContent = "save",
RightButtonContent = "cancel",
IsFullScreen = false
};
messageBox.Dismissed += (s1, e1) =>
{
if (e1.Result == CustomMessageBoxResult.LeftButton)
{
Registry.SetMultiStringValue(selItem.KeyRoot, selItem.KeyPath, "DNS", new string[] { dnsBox.Text });
//TODO: Clear the list first
refreshAdapters();
}
//TODO: Fix this
//lstAdapters.SelectedIndex = -1;
};
messageBox.Show();
}
开发者ID:Digiex,项目名称:DNSChangerWP7,代码行数:31,代码来源:MainPage.xaml.cs
示例14: comboBoxCameras_SelectionChanged
private void comboBoxCameras_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
_cameraFrameSource.Camera = comboBoxCameras.SelectedItem as Camera;
panelCameraInfo.Visibility = comboBoxCameras.SelectedItem != null
? Visibility.Visible
: Visibility.Collapsed;
}
开发者ID:donnaknew,项目名称:programmingProject,代码行数:7,代码来源:CameraFrameSourceConfigurationElement.xaml.cs
示例15: lvItems_SelectionChanged
private void lvItems_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
StockList.Value v = (StockList.Value)lvItems.SelectedItem;
if (v != null)
{
XmlDataProvider provider = (XmlDataProvider)grdRssFeed.FindResource("rssData");
switch (v.Market)
{
case "NASDAQ":
provider.Source = new Uri("http://articlefeeds.nasdaq.com/nasdaq/symbols?symbol=" + v.Symbol);
break;
case "LSE":
provider.Source = new Uri("http://www.londonstockexchange.com/exchange/CompanyNewsRSS.html?newsSource=RNS&indexSymbol=ASX");
break;
case "DAX":
provider.Source = new Uri("http://feeds.finance.yahoo.com/rss/2.0/headline?s=" + v.Symbol + "®ion=US&lang=en-US");
break;
}
if (!couchDb.isMyStock(v.Symbol))
{
btnDelete.Visibility = System.Windows.Visibility.Collapsed;
btnAdd.Visibility = System.Windows.Visibility.Visible;
}
else
{
btnDelete.Visibility = System.Windows.Visibility.Visible;
btnAdd.Visibility = System.Windows.Visibility.Collapsed;
}
wbChart.Navigate(new Uri("http://83.254.83.56:8001/files/highcharts/chart.html?symbol=" + v.Symbol + "&market=" + v.Market.ToLower()));
}
}
开发者ID:JohnBurchell,项目名称:School,代码行数:34,代码来源:MainWindow.xaml.cs
示例16: availableTradeListView__SelectionChanged
private void availableTradeListView__SelectionChanged(object sender, SelectionChangedEventArgs e)
{
clsTRADABLE_OTC_VANILLA_IRS_TB clstb
= this.availableTradeListView_.SelectedItem as clsTRADABLE_OTC_VANILLA_IRS_TB;
string availableTradeCD = clstb.INST_CD;
bool fixedPayFlag = true;
double notional = 1000000000;
DateTime effective = this.ViewModel_.HedgeTradingViewModel_.TradeMaker_.TradingDate_;
double fixedRate = 0.04;
VanillaIRS_instrument inst
= VanillaIRS_instrument.CreateTradableCode(availableTradeCD,
fixedPayFlag,
notional,
1,
effective,
fixedRate);
if (clstb != null)
{
this.tradeDetailGrid_.Children.Clear();
this.tradeDetailGrid_.Children.Add(inst.view());
}
}
开发者ID:minikie,项目名称:test,代码行数:25,代码来源:VanillaIRS_TradeView.xaml.cs
示例17: Panorama_OnSelectionChanged
private async void Panorama_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
Debug.WriteLine("SelectionChanged Fired." + e.AddedItems);
var currentPanoramaItem = e.AddedItems[0] as PanoramaItem;
if (currentPanoramaItem == RecentReadingItem)
{
await ViewModel.UpdateRecentViewAsync();
}
else if (currentPanoramaItem == SeriesIndexItem && !ViewModel.IsIndexDataLoaded)
{
await ViewModel.LoadSeriesIndexDataAsync();
}
else if (currentPanoramaItem == RecommandItem && !ViewModel.IsRecommandLoaded)
{
await ViewModel.LoadRecommandDataAsync();
}
else if (ContentPanorama.SelectedItem == FavoriteSection && !ViewModel.IsFavoriteLoaded)
{
await ViewModel.LoadUserFavouriateAsync();
}
//else if (ContentPanorama.SelectedItem == UserRecentSection && !ViewModel.IsUserRecentLoaded)
//{
// await ViewModel.LoadUserRecentAsync();
//}
}
开发者ID:fuchu,项目名称:LightNovelClientWindows,代码行数:25,代码来源:MainPage.xaml.cs
示例18: comboBox_SelectionChanged
private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBoxItem cbi = (ComboBoxItem)comboBox.SelectedItem;
string selectedText = cbi.Content.ToString();
grado = selectedText;
label10.Content = grado;
}
开发者ID:maravenag,项目名称:Sistema_Chowa_Dojo,代码行数:7,代码来源:formulario_alumno.xaml.cs
示例19: Pivot_SelectionChanged
private void Pivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (_loaded)
updateButtons();
_indexSelected = true;
}
开发者ID:CLAP-Project,项目名称:ClapApp,代码行数:7,代码来源:PerfilPivot.xaml.cs
示例20: comboBox1_SelectionChanged
private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
ComboBoxItem cbi = (ComboBoxItem)comboBox1.SelectedItem;
string selectedText = cbi.Content.ToString();
categoria = selectedText;
label10.Content = categoria;
}
开发者ID:maravenag,项目名称:Sistema_Chowa_Dojo,代码行数:7,代码来源:formulario_alumno.xaml.cs
注:本文中的System.Windows.Controls.SelectionChangedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论